Skip to content

test: add e2e coverage for faculty assignments and grading#33

Open
ishad05 wants to merge 2 commits into
feat/faculty-assignmentsfrom
test/faculty-assignments-e2e
Open

test: add e2e coverage for faculty assignments and grading#33
ishad05 wants to merge 2 commits into
feat/faculty-assignmentsfrom
test/faculty-assignments-e2e

Conversation

@ishad05

@ishad05 ishad05 commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

What this tests

  • API level (faculty-assignments.spec.ts, 7 tests)
    • Creating an assignment as a draft, publishing it now, and scheduling it for later
    • Rejecting a scheduled assignment when no publish date is given
    • Correct naming series for graded vs not graded assignments
    • Listing a cohort's assignments with the right submission counts
    • Grading a submission and publishing the grade now, or saving it as a draft

UI level (faculty-assignments-ui.spec.ts, 2 tests)

  • A faculty member creates and publishes an assignment from the create sheet and sees it in the list
  • A faculty member grades a submission from the detail page and sees the grade published

How it is set up

  • New faculty.setup.ts logs in a seeded faculty user and saves its session, same pattern as the existing student setup
  • New helpers: createTestFaculty, createTestSubmission, cleanupTestGrades
  • playwright.config.ts gains faculty-setup and chromium-faculty projects so the UI spec runs in a real faculty browser session
  • The test faculty user gets CS17 Faculty plus System Manager, matching how real faculty accounts are provisioned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant