Skip to content

[Bugfix:Testing] grade_inquiries spec race condition#12999

Merged
williamjallen merged 9 commits into
mainfrom
fix-grade-inquries
Jul 3, 2026
Merged

[Bugfix:Testing] grade_inquiries spec race condition#12999
williamjallen merged 9 commits into
mainfrom
fix-grade-inquries

Conversation

@roye2

@roye2 roye2 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Why is this Change Important & Necessary?

The grade inquiries spec was failing when calling the function verifyWebSocketStatus() because, for some reason, it attempted to edit/redefine a const variable in the testcase-output.js file. Specifically, loading_test_cases_xml_http_requests. I believe this was down to a race condition in the end of this part of the test.

What is the New Behavior?

The grade_inquires spec should now pass. The test simply navigates away from the page once it is finished testing 'Test cases revolving around grade inquiries'.

What steps should a reviewer take to reproduce or test the bug or new feature?

On main:

  1. run grade_inquries.spec.js locally and observe this:
image

On the branch:

  1. Verify regular usage of cypress works as intended.
  2. Especially, run grade_inquiries.spec.js and observe that it works.

Automated Testing & Documentation

Other information

If there is some other bug with grade_inquiries or the grade_inquiries spec that is causing this, I was unable to determine what it was.

@codecov

codecov Bot commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.41%. Comparing base (c33d434) to head (ea547b3).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #12999   +/-   ##
=========================================
  Coverage     21.41%   21.41%           
  Complexity    10002    10002           
=========================================
  Files           277      277           
  Lines         37418    37418           
  Branches        512      512           
=========================================
  Hits           8013     8013           
  Misses        28904    28904           
  Partials        501      501           
Flag Coverage Δ
autograder 21.16% <ø> (ø)
js 1.98% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.37% <ø> (ø)
python_submitty_utils 80.08% <ø> (ø)
submitty_daemon_jobs 91.13% <ø> (ø)
vue 100.00% <ø> (ø)

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.

@williamjallen
williamjallen merged commit ad4238e into main Jul 3, 2026
27 of 28 checks passed
@williamjallen
williamjallen deleted the fix-grade-inquries branch July 3, 2026 17:44
@github-project-automation github-project-automation Bot moved this from Seeking Reviewer to Done in Submitty Development Jul 3, 2026
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.

2 participants