-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test/documentation): add snapshot command
- Loading branch information
1 parent
f29f847
commit 8d428c4
Showing
6 changed files
with
136 additions
and
54 deletions.
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
12 changes: 9 additions & 3 deletions
12
packages/documentation/cypress/snapshots/components/button.snapshot.ts
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 |
---|---|---|
@@ -1,7 +1,13 @@ | ||
describe('Button', () => { | ||
it('default', () => { | ||
cy.visit('/iframe.html?id=snapshots--button'); | ||
cy.get('button post-icon', { timeout: 30000 }).should('be.visible'); | ||
cy.percySnapshot('Buttons', { widths: [1440] }); | ||
// cy.visit('/iframe.html?id=snapshots--button'); | ||
// cy.get('button post-icon', { timeout: 30000 }).should('be.visible'); | ||
// cy.percySnapshot('Buttons', { widths: [1440] }); | ||
|
||
cy.snapshot({ | ||
url: { story: 'button' }, | ||
page: { selector: 'button post-icon' }, | ||
snapshot: { name: 'Buttons' }, | ||
}); | ||
}); | ||
}); |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.