-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Percy Page Screenshots * Add missing space
- Loading branch information
1 parent
c31cb01
commit 37821ee
Showing
4 changed files
with
23 additions
and
5 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
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,21 @@ | ||
const pages = [ | ||
{ name: 'Create Data Source - Types', url: '/data_sources/new' }, | ||
{ name: 'Edit Data Source - PostgreSQL', url: '/data_sources/1' }, | ||
{ name: 'Users', url: '/users' }, | ||
{ name: 'Groups', url: '/groups' }, | ||
{ name: 'Group', url: '/groups/1' }, | ||
{ name: 'Create Destination - Types', url: '/destinations/new' }, | ||
{ name: 'Organization Settings', url: '/settings/organization' }, | ||
{ name: 'User Profile', url: '/users/me' }, | ||
]; | ||
|
||
describe('Percy Page Screenshots', () => { | ||
pages.forEach((page) => { | ||
it(`takes a screenshot of ${page.name}`, () => { | ||
cy.login(); | ||
cy.visit(page.url); | ||
cy.wait(1000); | ||
cy.percySnapshot(page.name); | ||
}); | ||
}); | ||
}); |
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