generated from cfpb/open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 5
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
[Snapshot testing] Improve test consistency #1103
Merged
Merged
Changes from 14 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
74227a6
e2e: Snapshot - Ignore footer
meissadia ea15cdf
e2e: Snapshot - Update screenshots for complete-user-profile
meissadia d11e927
e2e: Snapshot - Update screenshots for filing-details
meissadia ded20a5
e2e: Snapshot - Update screenshots for filing-step-routing
meissadia 9043ab5
e2e: Snapshot - Update screenshots for formAlerts
meissadia d41e1b4
e2e: Snapshot - Update screenshots for sign-and-submit
meissadia b1f600f
e2e: Snapshot - Update screenshots for unavailableApis
meissadia 84c67d2
e2e: Snapshot - Update screenshots for uploadFile
meissadia 9d4cd10
e2e: Snapshot - Update screenshots for shared-lending-platform
meissadia 4cb575d
e2e: Snapshot - Improve test consistency by adjusting runtime CSS
meissadia ecb8779
e2e: Snapshot - Update all snapshots
meissadia bd8addb
Merge branch 'main' into 1099-e2e-mask-footer
tanner-ricks 9c5e037
Merge branch 'main' into 1099-e2e-mask-footer
meissadia c0a3502
e2e: Update Navigation.spec to match recent CFGov updates
meissadia 4653392
Merge branch 'main' into 1099-e2e-mask-footer
meissadia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file modified
BIN
-2.09 KB
(99%)
...User-Profile-Checking-for-form-errors-based-on-user-input-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.87 KB
(99%)
...User-Profile-Checking-for-form-errors-based-on-user-input-2-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.03 KB
(99%)
...te-the-User-Profile-Checking-for-input-length-restriction-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.97 KB
(99%)
...te-the-User-Profile-Checking-for-input-length-restriction-2-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.26 KB
(100%)
...t-of-Contact-Checking-for-form-errors-based-on-user-input-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-929 Bytes
(100%)
...t-of-Contact-Checking-for-form-errors-based-on-user-input-2-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.94 KB
(100%)
...ontact-Checking-for-unicode-tolerance-based-on-user-input-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-921 Bytes
(100%)
...ontact-Checking-for-unicode-tolerance-based-on-user-input-2-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-762 Bytes
(100%)
...sLogic.spec.ts-snapshots/Filing-step-routing-Errors-Logic-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-742 Bytes
(100%)
...yntax.spec.ts-snapshots/Filing-step-routing-Errors-Syntax-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-854 Bytes
(100%)
...ing/noUpload.spec.ts-snapshots/Filing-step-routing-Upload-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-870 Bytes
(100%)
...ct.spec.ts-snapshots/Filing-step-routing-Point-of-Contact-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-792 Bytes
(100%)
...g/warnings.spec.ts-snapshots/Filing-step-routing-Warnings-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-768 Bytes
(100%)
...pages/filing-app/formAlerts.spec.ts-snapshots/Form-Alerts-1-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-895 Bytes
(100%)
...ages/filing-app/formAlerts.spec.ts-snapshots/Form-Alerts-10-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-913 Bytes
(99%)
...ages/filing-app/formAlerts.spec.ts-snapshots/Form-Alerts-11-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-697 Bytes
(100%)
...ages/filing-app/formAlerts.spec.ts-snapshots/Form-Alerts-12-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-830 Bytes
(100%)
...ages/filing-app/formAlerts.spec.ts-snapshots/Form-Alerts-13-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.06 KB
(100%)
...ages/filing-app/formAlerts.spec.ts-snapshots/Form-Alerts-14-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.04 KB
(100%)
...ages/filing-app/formAlerts.spec.ts-snapshots/Form-Alerts-15-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1001 Bytes
(100%)
...ages/filing-app/formAlerts.spec.ts-snapshots/Form-Alerts-16-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.02 KB
(100%)
...ages/filing-app/formAlerts.spec.ts-snapshots/Form-Alerts-17-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-713 Bytes
(100%)
...pages/filing-app/formAlerts.spec.ts-snapshots/Form-Alerts-2-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-865 Bytes
(100%)
...pages/filing-app/formAlerts.spec.ts-snapshots/Form-Alerts-3-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-941 Bytes
(100%)
...pages/filing-app/formAlerts.spec.ts-snapshots/Form-Alerts-4-chromium-darwin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1015 Bytes
(100%)
...pages/filing-app/formAlerts.spec.ts-snapshots/Form-Alerts-5-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-950 Bytes
(100%)
...pages/filing-app/formAlerts.spec.ts-snapshots/Form-Alerts-6-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-895 Bytes
(100%)
...pages/filing-app/formAlerts.spec.ts-snapshots/Form-Alerts-7-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-964 Bytes
(100%)
...pages/filing-app/formAlerts.spec.ts-snapshots/Form-Alerts-8-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-972 Bytes
(100%)
...pages/filing-app/formAlerts.spec.ts-snapshots/Form-Alerts-9-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
+74.3 KB
(110%)
...s/Sign-and-submit-complete-filing-flow-with-only-warnings-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-765 Bytes
(99%)
...s.spec.ts-snapshots/Blocking-API-Calls---Error-Boundaries-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-744 Bytes
(99%)
...s.spec.ts-snapshots/Blocking-API-Calls---Error-Boundaries-2-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-678 Bytes
(100%)
...s.spec.ts-snapshots/Blocking-API-Calls---Error-Boundaries-3-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-830 Bytes
(100%)
...s.spec.ts-snapshots/Blocking-API-Calls---Error-Boundaries-4-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-776 Bytes
(99%)
...s.spec.ts-snapshots/Blocking-API-Calls---Error-Boundaries-5-chromium-darwin.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-762 Bytes
(100%)
...eUploadLogicErrors.spec.ts-snapshots/Resolve-Errors-Logic-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-876 Bytes
(100%)
...eUploadLogicErrors.spec.ts-snapshots/Resolve-Errors-Logic-2-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-884 Bytes
(100%)
...eUploadLogicErrors.spec.ts-snapshots/Resolve-Errors-Logic-3-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-882 Bytes
(100%)
...eUploadLogicErrors.spec.ts-snapshots/Resolve-Errors-Logic-4-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-882 Bytes
(100%)
...eUploadLogicErrors.spec.ts-snapshots/Resolve-Errors-Logic-5-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-882 Bytes
(100%)
...eUploadLogicErrors.spec.ts-snapshots/Resolve-Errors-Logic-6-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-941 Bytes
(100%)
...ploadSyntaxErrors.spec.ts-snapshots/Resolve-Errors-Syntax-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-1007 Bytes
(100%)
...itutionProfile.spec.ts-snapshots/Institution-Profile-Page-1-chromium-darwin.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-845 Bytes
(100%)
...-lending-platform/Navigation.spec.ts-snapshots/Navigation-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-587 Bytes
(100%)
...-lending-platform/Navigation.spec.ts-snapshots/Navigation-2-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-891 Bytes
(99%)
...-lending-platform/Navigation.spec.ts-snapshots/Navigation-3-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-1007 Bytes
(100%)
...-lending-platform/Navigation.spec.ts-snapshots/Navigation-4-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-982 Bytes
(100%)
...-lending-platform/Navigation.spec.ts-snapshots/Navigation-5-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-986 Bytes
(100%)
...-lending-platform/Navigation.spec.ts-snapshots/Navigation-6-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-1.98 KB
(99%)
...shots/Complete-User-Profile----No-Associations----process-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-1.91 KB
(98%)
...shots/Complete-User-Profile----No-Associations----process-2-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-2.64 KB
(99%)
...er-Profile-with-Bad-Unicode----No-Associations----process-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-1007 Bytes
(100%)
...Profile.spec.ts-snapshots/Update-Institution-Profile-Page-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-982 Bytes
(100%)
...Profile.spec.ts-snapshots/Update-Institution-Profile-Page-2-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-905 Bytes
(100%)
...Profile.spec.ts-snapshots/Update-Institution-Profile-Page-3-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-980 Bytes
(100%)
...Profile.spec.ts-snapshots/Update-Institution-Profile-Page-4-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-662 Bytes
(99%)
...Profile.spec.ts-snapshots/Update-Institution-Profile-Page-5-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-852 Bytes
(100%)
...ts/Update-Institution-Profile-Page-Check-Character-Limits-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-937 Bytes
(99%)
...-platform/UserProfile.spec.ts-snapshots/User-Profile-Page-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-1.91 KB
(99%)
...ticated-homepage-Registering-with-an-invalid-email-domain-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-986 Bytes
(100%)
...napshots/Unauthenticated-homepage-Paperwork-Reduction-Act-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-949 Bytes
(100%)
...spec.ts-snapshots/Unauthenticated-homepage-Privacy-Notice-1-chromium-darwin.png
Oops, something went wrong.
Binary file modified
BIN
-763 Bytes
(99%)
...spec.ts-snapshots/Unauthenticated-homepage-Privacy-Notice-2-chromium-darwin.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
a { | ||
/* | ||
Dotted borders are inconsistently rendered, causing test flake. | ||
Since this is a border style defined in the CFPB Design System, | ||
we should be safe not validating this styling as part of our app testing. | ||
*/ | ||
border-style: solid; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,9 +60,7 @@ const config: PlaywrightTestConfig = { | |
timeout: TIMEOUT_EXPECT, | ||
/* Snapshot testing */ | ||
toHaveScreenshot: { | ||
// High enough to ignore dotted border flakiness | ||
// but low enough to catch meaningful diffs?? | ||
maxDiffPixels: 25, | ||
maxDiffPixels: 0, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is incredible! |
||
}, | ||
}, | ||
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */ | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea @meissadia!