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

fix(frontend:e2e): update tests and snapshots #941

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

ErvinRacz
Copy link
Contributor

Update flaky tests and snapshots due

  • Removed redundant test setup for application creation dialog in global.setup.ts.
  • Updated screenshot masking in instance.spec.ts to include additional elements, improving test reliability.
  • Updated snapshot images for instance-history and instance-info to reflect changes.

Testing done

Executed the e2e locally a dozen times.

- Removed redundant test setup for application creation dialog in `global.setup.ts`.
- Updated screenshot masking in `instance.spec.ts` to include additional elements, improving test reliability.
- Updated snapshot images for `instance-history` and `instance-info` to reflect changes.

Choose a reason for hiding this comment

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

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

Copy link
Contributor

@tormath1 tormath1 left a comment

Choose a reason for hiding this comment

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

Ok, so if I understand correctly we're masking datetime values on the screenshot as they are not predictable when running the tests?

@ErvinRacz
Copy link
Contributor Author

ErvinRacz commented Feb 13, 2025

Ok, so if I understand correctly, we're masking datetime values on the screenshot as they are not predictable when running the tests?

Yes, if we make a screenshot of the pages where the status of the instances is timestamped now, tomorrow they will be different.

Also, it is not predictable how much time it takes for the test suit to perform certain actions, for example to create entities, therefore just masking these values seems to be an easier and more reliable solution than trying to fix the datetime values in the database.

@ErvinRacz ErvinRacz merged commit 7f0860c into main Feb 13, 2025
3 checks passed
@ErvinRacz ErvinRacz deleted the fix/928-flaky-end-to-end-test branch February 13, 2025 11:03
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.

2 participants