Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E2E for alert #325

Closed
5 tasks
agonzalez-r opened this issue Dec 16, 2024 · 0 comments · Fixed by #357
Closed
5 tasks

E2E for alert #325

agonzalez-r opened this issue Dec 16, 2024 · 0 comments · Fixed by #357
Assignees

Comments

@agonzalez-r
Copy link
Member

agonzalez-r commented Dec 16, 2024

Description

The purpose of this task is to create an end-to-end test for the Alert flow:

  • Create Alert in CreateAlert
  • Assert display in myAlerts tab in AlertLists
  • Edit Alert
  • Assert update of the Alert

The focus of this E2E is to test the normal user flow, edge cases are tested in unit tests for each class.

Done

Specific, measurable criteria to confirm the task is complete.
Functional Requirements:

  • The end-to-end test must:
    • Create an Alert using the CreateAlert component.
    • Verify the created Alert is displayed correctly in the myAlerts tab of the AlertLists component.
    • Edit the Alert (e.g., modify the urgency, message, or status).
    • Verify the Alert's updated details are displayed accurately in the myAlerts tab.
    • Delete the Alert
    • Verify proper deletion.

Quality Standards:

  • Clean, readable, and maintainable code.

Testing Requirements:

  • The test should run reliably in both local and CI environments.
  • Mock any network calls or dependencies where necessary to ensure predictable test behavior.

Preconditions

  • Authentication for E2E tests Test/e2e/authentication/adapt #323
  • The CreateAlert and AlertLists components must be implemented and functioning correctly.
  • Existing functionality for creating, editing and deleting Alerts must work as expected.
  • Access to a test user account and appropriate permissions for creating and managing alerts.

Steps to Completion

  • Set up the Test: sign in
  • Write test for creating an Alert
  • Write test for editing an Alert
  • Write test for deleting an Alert
  • Validate functionality

Points to Consider / Known Risks

Ensure the authentication (set-up for the test) is properly done

@agonzalez-r agonzalez-r self-assigned this Dec 16, 2024
@charliemangano charliemangano linked a pull request Dec 20, 2024 that will close this issue
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 a pull request may close this issue.

1 participant