-
Notifications
You must be signed in to change notification settings - Fork 116
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
Component-Specific CSS Selector Tests #1574
Merged
Merged
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
03537e3
added first pass at making a working css selector test for components
mxriverlynn 2cb6eca
working on a bit more code organization and error message for failed …
mxriverlynn fee5bf6
loop through all the components with previews, and test the selectors…
mxriverlynn 500f9a6
correcting the test method name generation
mxriverlynn 4586618
Merge remote-tracking branch 'origin/main' into mxriverlynn/component…
mxriverlynn 558a8c8
better failure message and code to generate it
mxriverlynn f0f2e28
improving assertion so it doesn't muddy failure messages with the def…
mxriverlynn 59773f3
further improvements to the failure message
mxriverlynn 23576d5
ignored 'to' selector
mxriverlynn 63dea07
rubocop cleanup
mxriverlynn fde18ee
code cleanup for remaining selectors
mxriverlynn b517060
update ignored_selectors to allow global vs component specific ignore…
mxriverlynn 68675cd
added a few comments about the dynamic test generation
mxriverlynn 5e4c78a
adding a few previews to banner, to help coverage of the selectors an…
mxriverlynn 20f01b0
another round of previews for banner
mxriverlynn 1e6572d
correcting rendering of banner previews
mxriverlynn 0c189a6
typo
mxriverlynn b4f5e79
Update test/components/css/css_selector_test.rb
mxriverlynn b11c361
Merge remote-tracking branch 'origin/main' into mxriverlynn/component…
mxriverlynn aa3d7c5
rubocop cleanup
mxriverlynn 12c23e3
improving test comments
mxriverlynn 1613097
correcting banner to alpha in preview
mxriverlynn 34ae502
added dismissable preview for banner
mxriverlynn c00343f
Merge remote-tracking branch 'origin/main' into mxriverlynn/component…
mxriverlynn a089996
ignore the banner close selector since it's not used at the moment
mxriverlynn 43e8c0c
correcting comment style
mxriverlynn 66373d2
rebuilt segmented control preview to include more of the available op…
mxriverlynn bc741d0
segmented control selector ignore and question
mxriverlynn 1bfae15
correcting method named, and adding full width icon only preview
mxriverlynn 4ca094f
full width sizes for segmented previews
mxriverlynn 6e7bcd0
correcting full width examples for segmented control
mxriverlynn 6c2b5c7
added changeset
mxriverlynn 4610aa1
adding progress bar size previews
mxriverlynn 809b13f
Merge remote-tracking branch 'origin/main' into mxriverlynn/component…
mxriverlynn 83495b7
added Counter previews to demonstrate various rounding options
mxriverlynn aeeae66
ignore Counter .ociton selector
mxriverlynn e533709
added some preview groups to banner preview
mxriverlynn 085ddf9
moved component specific css test to new folder
mxriverlynn e366725
added component css specific test run
mxriverlynn 36d2b19
Update .github/workflows/test_css.yml
mxriverlynn 50f9c4f
Merge remote-tracking branch 'origin/main' into mxriverlynn/component…
mxriverlynn d59febe
move css tests into test.yml
mxriverlynn fa3a4de
Generating component snapshots
mxriverlynn c2d1677
Merge remote-tracking branch 'origin/mxriverlynn/component-css-select…
mxriverlynn 2abdde5
correcting preview rendering for segmented control tests
mxriverlynn 49ed298
removing comment that included an ampersand, because it was causing a…
mxriverlynn 91187ee
reset folder what's on main
mxriverlynn fa62e91
Generating component snapshots
mxriverlynn 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
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,5 @@ | ||
--- | ||
'@primer/view-components': patch | ||
--- | ||
|
||
adding a test suite to show all component-specific selectors are used in previews, and updating various component previews for lookbook |
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
-73 Bytes
(98%)
.playwright/screenshots/previews.test.ts-snapshots/primer/alpha/banner/default.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
-73 Bytes
(98%)
.playwright/screenshots/previews.test.ts-snapshots/primer/alpha/banner/focused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
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.
with this commented out, PCSS copies it as a literal comment with no parsing into the final css output. this was causing
test/components/component_css_test.rb
to fail in the test suite, because that test looks for the presence of any&
regardless of context