Skip to content

[Bugfix:Developer] Cypress test for TA Grading#12272

Merged
bmcutler merged 4 commits into
mainfrom
ta-grading-cypress-test
Dec 15, 2025
Merged

[Bugfix:Developer] Cypress test for TA Grading#12272
bmcutler merged 4 commits into
mainfrom
ta-grading-cypress-test

Conversation

@Rkoester47

@Rkoester47 Rkoester47 commented Dec 4, 2025

Copy link
Copy Markdown
Contributor

Why is this Change Important & Necessary?

Fixes #12220

Previously, there was an issue #12083, where the collapsed view of a graded component for a TA did not match the student's view. This was resolved by PR #12131 .

What is the New Behavior?

To ensure this problem remains fully resolved, this Cypress test logs in as a TA, assigns a mark that is not marked "show to all students", and then collapses the component. The test verifies that only the assigned mark, and the show-to-all mark, are the only two visible in this graded component.

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

Review the code and make sure test is passing.

Automated Testing & Documentation

Other information

This is not a breaking change.

@codecov

codecov Bot commented Dec 4, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.69%. Comparing base (9ce63f0) to head (fb3c4bc).
⚠️ Report is 17 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #12272   +/-   ##
=========================================
  Coverage     21.69%   21.69%           
  Complexity     9617     9617           
=========================================
  Files           268      268           
  Lines         36113    36113           
  Branches        478      478           
=========================================
  Hits           7835     7835           
  Misses        27804    27804           
  Partials        474      474           
Flag Coverage Δ
autograder 21.39% <ø> (ø)
js 2.07% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.69% <ø> (ø)
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.

@JManion32 JManion32 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Everything works good, but you have to revert any changes the test made to the sample course after completion.

This is an important convention in E2E tests, especially for Submitty. Our Cypress tests use the sample course when we run them locally. If your test modifies data in that course and doesn't revert it, other tests may fail as well.

I tested locally and rubric_grading passed with a 3/3 initially, but only received a 1/3 for every subsequent test (with the only one passing being your test).

To fix, you just need to add more to the bottom of your test that reverts any changes you made to the sample course.

@github-project-automation github-project-automation Bot moved this from Seeking Reviewer to Work in Progress in Submitty Development Dec 9, 2025

@JManion32 JManion32 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The Cypress test is self-contained, and prevents the issue from occurring in the future. Great work!

@github-project-automation github-project-automation Bot moved this from Work in Progress to Awaiting Maintainer Review in Submitty Development Dec 15, 2025
@bmcutler
bmcutler merged commit 3439602 into main Dec 15, 2025
25 checks passed
@bmcutler
bmcutler deleted the ta-grading-cypress-test branch December 15, 2025 18:43
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.

Add Cypress test for TA grading page

3 participants