Describe the bug
In certain situations, likely when all the test cases are hidden, and the assignment is past due, the "Late resubmit" button shows in red. This behavior is only intended when the user has a visible score (with visible test cases) less than 50%. However, when all test cases are hidden, this button will appear red no matter what if "late resubmit" is an option. This behavior has been seen in the wild in specific courses, such as CSCI 4380 Database systems, where lecture exercises with all their test cases hidden are used.
Expected behavior
The button should appear gray for "resubmit" and "late resubmit" UNLESS the user has a total of less than 50% on the visible test cases from the auto-grader. If that is the case, then it should appear red. Also, the submit button should always be blue. Generally speaking, blue = I encourage you to do this, grey = no immediate actions necessary, red = something is wrong.
To Reproduce
Steps to reproduce the behavior:
- Create a notebook gradeable with any set of multiple choice questions
- Enable autograding for that gradeable and set up an autograding config
- Make sure to set all test cases to HIDDEN
- Make sure the gradeable is open to submissions and make a test submission
- Wait for the autograder to complete
- Set the due date to be in the past
- Go to gradeable page and observe the "Late resubmit" button
- See error
Configuration
- OS: [e.g. Windows, Linux, ...] Windows
- Browser [e.g. Chrome, Safari] Chrome
Screenshots

Additional context
More people should verify if this ug appears under any other circumstances.
Describe the bug
In certain situations, likely when all the test cases are hidden, and the assignment is past due, the "Late resubmit" button shows in red. This behavior is only intended when the user has a visible score (with visible test cases) less than 50%. However, when all test cases are hidden, this button will appear red no matter what if "late resubmit" is an option. This behavior has been seen in the wild in specific courses, such as CSCI 4380 Database systems, where lecture exercises with all their test cases hidden are used.
Expected behavior
The button should appear gray for "resubmit" and "late resubmit" UNLESS the user has a total of less than 50% on the visible test cases from the auto-grader. If that is the case, then it should appear red. Also, the submit button should always be blue. Generally speaking, blue = I encourage you to do this, grey = no immediate actions necessary, red = something is wrong.
To Reproduce
Steps to reproduce the behavior:
Configuration
Screenshots

Additional context
More people should verify if this ug appears under any other circumstances.