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

test(e2e) : for all common scenarios #2650

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Draft

test(e2e) : for all common scenarios #2650

wants to merge 12 commits into from

Conversation

sadaf895
Copy link
Contributor

@sadaf895 sadaf895 commented Nov 6, 2024

closes: #2612


  • adapt expect to not rely on the exact date in demo data
  • can we init the app (open it and generate demo data) only once and then run all the tests there (instead of generating data every time)?

- Added coverage for navigation and content checks on Attendance page
- Verified elements load correctly and interactions behave as expected
- Ensured handling of edge cases like NaN values in counts
Copy link

github-actions bot commented Nov 6, 2024

Deployed to https://pr-2650.aam-digital.net/

@tomwwinter
Copy link
Contributor

@sadaf895 Hey, i just pushed some updates. I restructured some files and removed cypress. Can you please take a look into the failing tests? It's not necessary to start the app anymore, just run npm run e2e

// Verify that the task names and due dates are displayed
const taskNames = await page
.locator("app-widget-content")
.filter({ hasText: "get signed agreement Nov 19," })
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this test pass, even now (when 19th Nov is a long time in the past)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have restructured it.

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.

e2e Tests for all common app scenarios
3 participants