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(frontend): homepage snapshots (logged in and logged out states) #2027

Closed
wants to merge 5 commits into from

Conversation

DenysKarmazynDFINITY
Copy link
Contributor

Motivation

The goal of this PR is to add basic snapshot tests for homepage (user logged in and logged out states).

Changes

  1. Basic Playwright code.
  2. To properly compare homepage screenshots, I deactivate the infinite Hero background animation before taking a snapshot.
  3. Added data-tid to the related elements on the page.
  4. Added generated screenshots to git to have a baseline for future comparisons.

Tests

Please see the committed screenshots.

@DenysKarmazynDFINITY
Copy link
Contributor Author

Dockerfile.e2e fails with a similar error I faced yesterday while setting up the project locally. On it.

@DenysKarmazynDFINITY DenysKarmazynDFINITY marked this pull request as draft August 15, 2024 10:10
@DenysKarmazynDFINITY DenysKarmazynDFINITY force-pushed the test(frontend)/homepage-snapshots branch 5 times, most recently from 9ab22f0 to 0d5a4d0 Compare August 15, 2024 16:00
@DenysKarmazynDFINITY DenysKarmazynDFINITY force-pushed the test(frontend)/homepage-snapshots branch 2 times, most recently from e64f95a to 928f741 Compare August 16, 2024 08:04
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