Repository navigation
test(button): add missing coverage and consolidate snapshots #31627
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
Open
+641
−803
Open
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
f69a1b8
test(button): add missing coverage and consolidate snapshots
thetaPC 26460d7
test(button): freeze ripples on activated elements in screenshots
thetaPC 123fd6e
chore(): add updated snapshots
Ionitron 7938a15
test(button): track the md dark pressed outline contrast under FW-6417
thetaPC ccd43e9
test(button): show the disabled state for each color
thetaPC 45837f2
test(button): add the medium size to the size page
thetaPC c525f60
chore(): add updated snapshots
Ionitron d2468d2
test(button): cover spinner in every theme and medium size
thetaPC 6369c14
chore(): add updated snapshots
Ionitron 7b0cf03
Merge remote-tracking branch 'origin/ionic-modular' into FW-6838-tests
thetaPC 4de9d19
Merge remote-tracking branch 'origin/ionic-modular' into FW-6838-tests
thetaPC db9bda4
chore(): add updated snapshots
Ionitron afd632e
test(snapshots): update ionic-md and item baselines that were missing…
thetaPC 3bbc932
test(scripts): freeze ripples only in test runs
thetaPC f10ce0f
test(button): disable only color-contrast for the md dark toolbar check
thetaPC e30db52
Revert "test(scripts): freeze ripples only in test runs"
thetaPC 2e1778d
Merge remote-tracking branch 'origin/ionic-modular' into FW-6838-tests
thetaPC 8e86b49
chore(): add updated snapshots
thetaPC a840db3
test(button): add sized spinners to the spinner page
thetaPC e8df464
Merge remote-tracking branch 'origin/ionic-modular' into FW-6838-tests
thetaPC 94b9b89
test(scripts): define components after the theme config is set
thetaPC e8bb570
test(scripts): wait for the held components to load before the page i…
thetaPC e545fdd
test(scripts): release the held definitions when ready settles
thetaPC 836fa7a
Merge remote-tracking branch 'origin/ionic-modular' into FW-6838-tests
thetaPC b8cb6b9
test(scripts): connect held components in document order
thetaPC 6f5f6c8
test(scripts): note that held definitions only affect test pages
thetaPC File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 removed
BIN
-3.33 KB
...a11y/button.e2e.ts-snapshots/button-clear-scale-ios-ltr-Mobile-Chrome-linux.png
Binary file not shown.
Binary file removed
BIN
-4.5 KB
...11y/button.e2e.ts-snapshots/button-clear-scale-ios-ltr-Mobile-Firefox-linux.png
Binary file not shown.
Binary file removed
BIN
-3.68 KB
...a11y/button.e2e.ts-snapshots/button-clear-scale-ios-ltr-Mobile-Safari-linux.png
Binary file not shown.
Binary file removed
BIN
-2.43 KB
.../a11y/button.e2e.ts-snapshots/button-clear-scale-md-ltr-Mobile-Chrome-linux.png
Binary file not shown.
Binary file removed
BIN
-2.95 KB
...a11y/button.e2e.ts-snapshots/button-clear-scale-md-ltr-Mobile-Firefox-linux.png
Binary file not shown.
Binary file removed
BIN
-2.64 KB
.../a11y/button.e2e.ts-snapshots/button-clear-scale-md-ltr-Mobile-Safari-linux.png
Binary file not shown.
Binary file removed
BIN
-3.58 KB
...1y/button.e2e.ts-snapshots/button-default-scale-ios-ltr-Mobile-Chrome-linux.png
Binary file not shown.
Binary file removed
BIN
-5.05 KB
...y/button.e2e.ts-snapshots/button-default-scale-ios-ltr-Mobile-Firefox-linux.png
Binary file not shown.
Binary file removed
BIN
-3.91 KB
...1y/button.e2e.ts-snapshots/button-default-scale-ios-ltr-Mobile-Safari-linux.png
Binary file not shown.
Binary file removed
BIN
-3.51 KB
...11y/button.e2e.ts-snapshots/button-default-scale-md-ltr-Mobile-Chrome-linux.png
Binary file not shown.
Binary file removed
BIN
-4.61 KB
...1y/button.e2e.ts-snapshots/button-default-scale-md-ltr-Mobile-Firefox-linux.png
Binary file not shown.
Binary file removed
BIN
-4.08 KB
...11y/button.e2e.ts-snapshots/button-default-scale-md-ltr-Mobile-Safari-linux.png
Binary file not shown.
Binary file removed
BIN
-4.29 KB
...a11y/button.e2e.ts-snapshots/button-large-scale-ios-ltr-Mobile-Chrome-linux.png
Binary file not shown.
Binary file removed
BIN
-5.89 KB
...11y/button.e2e.ts-snapshots/button-large-scale-ios-ltr-Mobile-Firefox-linux.png
Binary file not shown.
Binary file removed
BIN
-4.77 KB
...a11y/button.e2e.ts-snapshots/button-large-scale-ios-ltr-Mobile-Safari-linux.png
Binary file not shown.
Binary file removed
BIN
-7.9 KB
.../a11y/button.e2e.ts-snapshots/button-large-scale-md-ltr-Mobile-Chrome-linux.png
Binary file not shown.
Binary file removed
BIN
-11.5 KB
...a11y/button.e2e.ts-snapshots/button-large-scale-md-ltr-Mobile-Firefox-linux.png
Binary file not shown.
Binary file removed
BIN
-9.03 KB
.../a11y/button.e2e.ts-snapshots/button-large-scale-md-ltr-Mobile-Safari-linux.png
Binary file not shown.
Binary file added
BIN
+14 KB
.../test/a11y/button.e2e.ts-snapshots/button-scale-ios-ltr-Mobile-Chrome-linux.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 added
BIN
+17.5 KB
...test/a11y/button.e2e.ts-snapshots/button-scale-ios-ltr-Mobile-Firefox-linux.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 added
BIN
+15.8 KB
.../test/a11y/button.e2e.ts-snapshots/button-scale-ios-ltr-Mobile-Safari-linux.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 added
BIN
+19.8 KB
...n/test/a11y/button.e2e.ts-snapshots/button-scale-md-ltr-Mobile-Chrome-linux.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 added
BIN
+25.3 KB
.../test/a11y/button.e2e.ts-snapshots/button-scale-md-ltr-Mobile-Firefox-linux.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 added
BIN
+22.4 KB
...n/test/a11y/button.e2e.ts-snapshots/button-scale-md-ltr-Mobile-Safari-linux.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 removed
BIN
-2.37 KB
...a11y/button.e2e.ts-snapshots/button-small-scale-ios-ltr-Mobile-Chrome-linux.png
Binary file not shown.
Binary file removed
BIN
-2.9 KB
...11y/button.e2e.ts-snapshots/button-small-scale-ios-ltr-Mobile-Firefox-linux.png
Diff not rendered.
Binary file removed
BIN
-2.7 KB
...a11y/button.e2e.ts-snapshots/button-small-scale-ios-ltr-Mobile-Safari-linux.png
Diff not rendered.
Binary file removed
BIN
-4.43 KB
.../a11y/button.e2e.ts-snapshots/button-small-scale-md-ltr-Mobile-Chrome-linux.png
Diff not rendered.
Binary file removed
BIN
-5.86 KB
...a11y/button.e2e.ts-snapshots/button-small-scale-md-ltr-Mobile-Firefox-linux.png
Diff not rendered.
Binary file removed
BIN
-5.18 KB
.../a11y/button.e2e.ts-snapshots/button-small-scale-md-ltr-Mobile-Safari-linux.png
Diff not rendered.
Oops, something went wrong.
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.
Hand-opened pages without
ionic:theme=in the query don't get the hold, so they can still render with the base config when the tokens are slow. With no params or just?ionic:mode=md, the md chips inchip/test/basiccame out subtle and round instead of bold and soft once the tokens were delayed 400ms. CI never hits this sincegotoalways addsionic:theme=, but it's the same hand-opened vs snapshot mismatch you brought up on the ripple thread. I'm not sure what the right gate is though, since setContent pages load at a bare#and can't be told apart by the hash. Checkinglocation.pathname !== '/'worked when I tried it, but it feels pretty fragile. How do you want to handle these pages? Totally fine to leave it as is too.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.
I'll leave it as is. CI always passes the theme, and so do the compare and probe scripts and the How to test links in the PR descriptions, so only a bare URL typed by hand can hit it, and adding
?ionic:theme=mdfixes it. Those pages can't be told apart fromsetContentpages without a check like the pathname one, which I'd rather not depend on.