-
Notifications
You must be signed in to change notification settings - Fork 34
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(atomic): styling smoke tests #4978
base: KIT-3925
Are you sure you want to change the base?
Conversation
Pull Request ReportPR Title✅ Title follows the conventional commit spec. Live demo linksBundle Size
|
f08466d
to
a280fab
Compare
/* Test against mobile viewports. */ | ||
// { | ||
// name: 'Mobile Chrome', | ||
// use: { ...devices['Pixel 5'] }, | ||
// }, | ||
// { | ||
// name: 'Mobile Safari', | ||
// use: { ...devices['iPhone 12'] }, | ||
// }, | ||
|
||
/* Test against branded browsers. */ | ||
// { | ||
// name: 'Microsoft Edge', | ||
// use: { ...devices['Desktop Edge'], channel: 'msedge' }, | ||
// }, | ||
// { | ||
// name: 'Google Chrome', | ||
// use: { ...devices['Desktop Chrome'], channel: 'chrome' }, | ||
// }, |
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.
The switch is to comment and uncomment parts of the config ?
We cannot do more elegant and practical than this ?
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.
Same as atomic-hosted-page, this is directly from the playwright config examples:
https://github.com/microsoft/playwright/blob/main/examples/todomvc/playwright.config.ts
// Add/modify a translation | ||
// searchInterface.i18n.addResourceBundle('en', 'translation', { | ||
// search: 'Make me feel lucky!' | ||
// }); | ||
|
||
// Change the language of the interface dynamically | ||
// searchInterface.language = 'fr'; | ||
|
||
// Interact with the engine | ||
// searchInterface.engine.dispatch(...); | ||
|
||
// Get all translated strings for a language/namespace | ||
// const allStrings = searchInterface.i18n.getResourceBundle('en', 'translation'); | ||
|
||
// Add field value captions, using caption-[field] | ||
// searchInterface.i18n.addResourceBundle('en', 'caption-author', { | ||
// 'BBC News': 'The BBC', | ||
// amoreau: 'Alexandre Moreau', | ||
// }); |
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.
Is this another switch ?
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.
This is what we have in the main example page (index.html), themingTests.html is a duplicate of it with the only difference being a custom theme applied
I wonder if proper playwright visual testing https://playwright.dev/docs/test-snapshots |
@dmgauthier not sure how this would let us test that the colors of the variables are getting applied to the components |
This PR adds tests to ensure our components styles can be customized using our
--atomic-*
css variables. Tests to verify that our styles dont escape our components have also been added.https://coveord.atlassian.net/browse/KIT-3966
https://coveord.atlassian.net/browse/KIT-3965