Skip to content

Update seeds for E2E tests - #983

Merged
mwtrew merged 2 commits into
mainfrom
excs-sso-join-codes
Aug 26, 2026
Merged

Update seeds for E2E tests#983
mwtrew merged 2 commits into
mainfrom
excs-sso-join-codes

Conversation

@mwtrew

@mwtrew mwtrew commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Status

What's changed?

  • Adds a teacher with no associated class to the test school
  • Adds an allow-listed email domain example.com to the test school

@cla-bot cla-bot Bot added the cla-signed label Aug 25, 2026
@github-actions

github-actions Bot commented Aug 25, 2026

Copy link
Copy Markdown

Test coverage

93.43% line coverage reported by SimpleCov.
Run: https://github.com/RaspberryPiFoundation/editor-api/actions/runs/32951634547

@raspberrypiherokubot
raspberrypiherokubot temporarily deployed to editor-api-p-excs-sso-j-fnih91 August 25, 2026 17:07 Inactive
@mwtrew
mwtrew marked this pull request as ready for review August 26, 2026 09:10
Copilot AI lite review requested due to automatic review settings August 26, 2026 09:10
@mwtrew
mwtrew temporarily deployed to editor-api-p-excs-sso-j-fnih91 August 26, 2026 09:11 Inactive

Copilot AI 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.

Pull request overview

Updates the Rails rake-based E2E seeding tasks to create additional school setup data used by end-to-end scenarios.

Changes:

  • Adds a new “unassigned teacher” test user ID and ensures their roles are cleaned up during seed teardown.
  • Seeds an example.com school email domain and assigns the additional teacher to the seeded school.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
lib/tasks/test_seeds.rake Adds an extra teacher seed user, cleans up their roles on destroy, and seeds a school email domain + teacher assignment.
lib/tasks/seeds_helper.rb Introduces a new TEST_USERS[:johan_doe] entry for the additional seeded teacher user.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lib/tasks/test_seeds.rake
@mwtrew
mwtrew merged commit 8917f2b into main Aug 26, 2026
9 checks passed
@mwtrew
mwtrew deleted the excs-sso-join-codes branch August 26, 2026 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants