Skip to content

[Bugfix:Developer] Fix Registration Test#12215

Merged
bmcutler merged 6 commits intomainfrom
fix-reg-test
Nov 19, 2025
Merged

[Bugfix:Developer] Fix Registration Test#12215
bmcutler merged 6 commits intomainfrom
fix-reg-test

Conversation

@IDzyre
Copy link
Copy Markdown
Member

@IDzyre IDzyre commented Nov 17, 2025

Why is this Change Important & Necessary?

CI is failing due to registration.spec.js. This was caused in #12154 from nesting a <button> inside of an <h1> element, so when Cypress went to assert that the header said "My Courses", it returned "My Courses  " instead, causing the test to fail.

What is the New Behavior?

Take the <button> out of the <h1>, and adjust the CSS to remain the same.

@github-project-automation github-project-automation bot moved this to Seeking Reviewer in Submitty Development Nov 17, 2025
@automateprojectmangement automateprojectmangement bot moved this from Seeking Reviewer to Work in Progress in Submitty Development Nov 17, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.71%. Comparing base (bf048c6) to head (cc55b9a).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #12215   +/-   ##
=========================================
  Coverage     21.71%   21.71%           
  Complexity     9612     9612           
=========================================
  Files           268      268           
  Lines         36073    36070    -3     
  Branches        475      475           
=========================================
  Hits           7832     7832           
+ Misses        27770    27767    -3     
  Partials        471      471           
Flag Coverage Δ
autograder 21.39% <ø> (ø)
js 2.07% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.71% <ø> (+<0.01%) ⬆️
python_submitty_utils 80.08% <ø> (ø)
submitty_daemon_jobs 90.72% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

williamschen23
williamschen23 previously approved these changes Nov 17, 2025
@github-project-automation github-project-automation bot moved this from Work in Progress to Awaiting Maintainer Review in Submitty Development Nov 17, 2025
@williamschen23 williamschen23 moved this from Awaiting Maintainer Review to Work in Progress in Submitty Development Nov 17, 2025
@williamschen23 williamschen23 dismissed their stale review November 17, 2025 23:32

Did not see that it was still failing

.contain isn't as strict as have.text. Since we know the issue was called by improper nesting, we can revert to the stricter test.
@JManion32 JManion32 marked this pull request as ready for review November 18, 2025 22:28
@automateprojectmangement automateprojectmangement bot moved this from Work in Progress to Seeking Reviewer in Submitty Development Nov 18, 2025
Implement flex-grow
Since I added a div for flex grow, I need to adjust the login test, which relies on #courses > div > h1, to become #courses > div > div > h1
Copy link
Copy Markdown
Contributor

@JManion32 JManion32 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The registration test is passing

@github-project-automation github-project-automation bot moved this from Seeking Reviewer to Awaiting Maintainer Review in Submitty Development Nov 19, 2025
@bmcutler bmcutler merged commit d7f9077 into main Nov 19, 2025
48 of 49 checks passed
@bmcutler bmcutler deleted the fix-reg-test branch November 19, 2025 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants