Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

tests(ui): test security event form submission#6020

Merged
whitdog47 merged 2 commits into
mainfrom
tests/add-playwright-test-for-event-report-form
May 29, 2025
Merged

tests(ui): test security event form submission#6020
whitdog47 merged 2 commits into
mainfrom
tests/add-playwright-test-for-event-report-form

Conversation

@whitdog47

@whitdog47 whitdog47 commented May 28, 2025

Copy link
Copy Markdown
Contributor

Adds end-to-end tests for the security event reporting flow in the Dispatch application’s UI.

  • Introduces a new ReportEvent route entry.
  • Implements Playwright tests covering standard and urgent event submissions.
  • Adds a ReportEventPage page object and updates fixtures to include it.

@whitdog47 whitdog47 requested a review from Copilot May 28, 2025 01:14
@whitdog47 whitdog47 self-assigned this May 28, 2025

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

Adds end-to-end tests for the security event reporting flow in the Dispatch application’s UI.

  • Introduces a new ReportEvent route entry.
  • Implements Playwright tests covering standard and urgent event submissions.
  • Adds a ReportEventPage page object and updates fixtures to include it.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.

File Description
tests/static/e2e/routes.ts Added ReportEvent route to the Routes enum.
tests/static/e2e/report-event.spec.ts Created E2E tests to verify reporting a security event.
tests/static/e2e/pages/report-event-page.ts Added ReportEventPage page object class.
tests/static/e2e/fixtures/dispatch-fixtures.ts Registered reportEventPage fixture.
Comments suppressed due to low confidence (1)

tests/static/e2e/report-event.spec.ts:7

  • The comma after test.beforeEach(...) is invalid syntax in this context and may cause unexpected behavior; replace it with a semicolon or remove it.
  }),

Comment thread tests/static/e2e/report-event.spec.ts Outdated
Comment thread tests/static/e2e/report-event.spec.ts
Comment thread tests/static/e2e/pages/report-event-page.ts
Comment thread tests/static/e2e/pages/report-event-page.ts
Comment thread tests/static/e2e/pages/report-event-page.ts
Comment thread tests/static/e2e/pages/report-event-page.ts
Comment thread tests/static/e2e/pages/report-event-page.ts
@whitdog47 whitdog47 requested a review from a user May 28, 2025 20:44
@whitdog47 whitdog47 merged commit 8f31acb into main May 29, 2025
9 checks passed
@whitdog47 whitdog47 deleted the tests/add-playwright-test-for-event-report-form branch May 29, 2025 18:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants