Skip to content

[Bugfix:System] Create Account Test Randomization Fix#12898

Merged
bmcutler merged 1 commit into
mainfrom
self-account-creation-test-randomization-fix
Jun 10, 2026
Merged

[Bugfix:System] Create Account Test Randomization Fix#12898
bmcutler merged 1 commit into
mainfrom
self-account-creation-test-randomization-fix

Conversation

@NicholasCiuica

@NicholasCiuica NicholasCiuica commented Jun 10, 2026

Copy link
Copy Markdown
Member

Why is this Change Important & Necessary?

Relates to #12455

What is the New Behavior?

The self_create_account Cypress test now randomizes the user id and email used when trying to create a new account during testing, so that the database contents of the testing VM don't affect this test. Originally, this test would break whenever it was run more than once locally or in CI, because the new user that the first attempt at the test made affects how the next attempts run.

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

enable DatabaseAuthentication and create_user_account to test the features added, https://submitty.org/sysadmin/configuration/self_account_creation
run the self_create_account Cypress test locally multiple times.
You will see the "User ID or email already attached to an account" display where it shouldn't be.

Screenshot 2026-06-08 170523

Other information

This PR is a portion of the changes I have committed to #12455, but this bugfix is important for working on other database-related PRs.

@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.64%. Comparing base (b9135e9) to head (e0fe6bd).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##               main   #12898   +/-   ##
=========================================
  Coverage     21.64%   21.64%           
  Complexity     9861     9861           
=========================================
  Files           268      268           
  Lines         36920    36920           
  Branches        495      495           
=========================================
  Hits           7990     7990           
  Misses        28439    28439           
  Partials        491      491           
Flag Coverage Δ
autograder 21.32% <ø> (ø)
js 2.01% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.70% <ø> (ø)
python_submitty_utils 80.08% <ø> (ø)
submitty_daemon_jobs 91.13% <ø> (ø)

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.

@NicholasCiuica NicholasCiuica changed the title [Bugfix:System] Randomized userid and email for Create Account test [Bugfix:System] Create Account Test Randomization Fix Jun 10, 2026

@dandrecollins07-ctrl dandrecollins07-ctrl 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.

Test cases pass, besides the usual common failures. Approving.

@github-project-automation github-project-automation Bot moved this from Seeking Reviewer to Awaiting Maintainer Review in Submitty Development Jun 10, 2026
@bmcutler
bmcutler merged commit 719b0c7 into main Jun 10, 2026
26 of 30 checks passed
@bmcutler
bmcutler deleted the self-account-creation-test-randomization-fix branch June 10, 2026 21:36
@github-project-automation github-project-automation Bot moved this from Awaiting Maintainer Review to Done in Submitty Development Jun 10, 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.

3 participants