-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Spinner): use controlActivatedInverse token as default when used …
…inside inverse variant (#1133)
- Loading branch information
1 parent
034097e
commit 38a192d
Showing
9 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
Binary file added
BIN
+718 Bytes
...mage_snapshots__/spinner-screenshot-test-tsx-spinner-default-desktop-1-snap.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
+1.35 KB
...apshots__/spinner-screenshot-test-tsx-spinner-default-mobile-android-1-snap.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
+930 Bytes
...e_snapshots__/spinner-screenshot-test-tsx-spinner-default-mobile-ios-1-snap.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
+706 Bytes
...mage_snapshots__/spinner-screenshot-test-tsx-spinner-inverse-desktop-1-snap.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
+1.29 KB
...apshots__/spinner-screenshot-test-tsx-spinner-inverse-mobile-android-1-snap.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
+929 Bytes
...e_snapshots__/spinner-screenshot-test-tsx-spinner-inverse-mobile-ios-1-snap.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import {openStoryPage, screen} from '../test-utils'; | ||
|
||
const DEVICES = ['DESKTOP', 'MOBILE_ANDROID', 'MOBILE_IOS'] as const; | ||
|
||
test.each(DEVICES)('Spinner - default %s', async (device) => { | ||
await openStoryPage({ | ||
id: 'components-spinner--default', | ||
device, | ||
}); | ||
|
||
const spinner = await screen.findByLabelText('Cargando'); | ||
|
||
const image = await spinner.screenshot(); | ||
expect(image).toMatchImageSnapshot(); | ||
}); | ||
|
||
test.each(DEVICES)('Spinner - inverse %s', async (device) => { | ||
await openStoryPage({ | ||
id: 'components-spinner--default', | ||
device, | ||
args: {inverse: true}, | ||
}); | ||
|
||
const spinner = await screen.findByLabelText('Cargando'); | ||
|
||
const image = await spinner.screenshot(); | ||
expect(image).toMatchImageSnapshot(); | ||
}); |
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
38a192d
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.
Deploy preview for mistica-web ready!
✅ Preview
https://mistica-3cxivirwc-flows-projects-65bb050e.vercel.app
Built with commit 38a192d.
This pull request is being automatically deployed with vercel-action