-
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.
fix(docs): increase timeout for the snapshot tests
- Loading branch information
1 parent
bc19352
commit 2c02d28
Showing
18 changed files
with
18 additions
and
18 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
packages/documentation/cypress/snapshots/components/alert.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,7 @@ | ||
describe('Alert', () => { | ||
it('default', () => { | ||
cy.visit('/iframe.html?id=snapshots--alert'); | ||
cy.get('.alert').should('be.visible'); | ||
cy.get('.alert', { timeout: 30000 }).should('be.visible'); | ||
cy.percySnapshot('Alerts', { widths: [320, 1440] }); | ||
}); | ||
}); |
2 changes: 1 addition & 1 deletion
2
packages/documentation/cypress/snapshots/components/badge.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,7 @@ | ||
describe('Badge', () => { | ||
it('default', () => { | ||
cy.visit('/iframe.html?id=snapshots--badge'); | ||
cy.get('.badge').should('be.visible'); | ||
cy.get('.badge', { timeout: 30000 }).should('be.visible'); | ||
cy.percySnapshot('Badges', { widths: [400] }); | ||
}); | ||
}); |
2 changes: 1 addition & 1 deletion
2
packages/documentation/cypress/snapshots/components/blockquote.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,7 @@ | ||
describe('Blockquote', () => { | ||
it('default', () => { | ||
cy.visit('/iframe.html?id=snapshots--blockquote'); | ||
cy.get('.blockquote').should('be.visible'); | ||
cy.get('.blockquote', { timeout: 30000 }).should('be.visible'); | ||
cy.percySnapshot('Blockquotes', { widths: [320, 1440] }); | ||
}); | ||
}); |
2 changes: 1 addition & 1 deletion
2
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,7 @@ | ||
describe('Button', () => { | ||
it('default', () => { | ||
cy.visit('/iframe.html?id=snapshots--button'); | ||
cy.get('button').should('be.visible'); | ||
cy.get('button', { timeout: 30000 }).should('be.visible'); | ||
cy.percySnapshot('Buttons', { widths: [1440] }); | ||
}); | ||
}); |
2 changes: 1 addition & 1 deletion
2
packages/documentation/cypress/snapshots/components/card.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,7 @@ | ||
describe('Card', () => { | ||
it('default', () => { | ||
cy.visit('/iframe.html?id=snapshots--card'); | ||
cy.get('.card').should('be.visible'); | ||
cy.get('.card', { timeout: 30000 }).should('be.visible'); | ||
cy.percySnapshot('Cards', { widths: [1440] }); | ||
}); | ||
}); |
2 changes: 1 addition & 1 deletion
2
packages/documentation/cypress/snapshots/components/checkbox.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,7 @@ | ||
describe('Checkbox', () => { | ||
it('default', () => { | ||
cy.visit('/iframe.html?id=snapshots--checkbox'); | ||
cy.get('.form-check').should('be.visible'); | ||
cy.get('.form-check', { timeout: 30000 }).should('be.visible'); | ||
cy.percySnapshot('Checkboxes', { widths: [400] }); | ||
}); | ||
}); |
2 changes: 1 addition & 1 deletion
2
packages/documentation/cypress/snapshots/components/choice-card.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,7 @@ | ||
describe('Choice card', () => { | ||
it('default', () => { | ||
cy.visit('/iframe.html?id=snapshots--choice-card'); | ||
cy.get('.radio-button-card').should('be.visible'); | ||
cy.get('.radio-button-card', { timeout: 30000 }).should('be.visible'); | ||
cy.percySnapshot('Choice cards', { widths: [1440] }); | ||
}); | ||
}); |
2 changes: 1 addition & 1 deletion
2
packages/documentation/cypress/snapshots/components/collapsible.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,7 @@ | ||
describe('Collapsible', () => { | ||
it('default', () => { | ||
cy.visit('/iframe.html?id=snapshots--collapsible'); | ||
cy.get('post-collapsible.hydrated').should('be.visible'); | ||
cy.get('post-collapsible.hydrated', { timeout: 30000 }).should('be.visible'); | ||
cy.percySnapshot('Collapsible'); | ||
}); | ||
}); |
2 changes: 1 addition & 1 deletion
2
packages/documentation/cypress/snapshots/components/header.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,7 @@ | ||
describe('Header', () => { | ||
it('default', () => { | ||
cy.visit('/iframe.html?id=internet-header-header-component--default'); | ||
cy.get('swisspost-internet-header.hydrated').should('be.visible'); | ||
cy.get('swisspost-internet-header.hydrated', { timeout: 30000 }).should('be.visible'); | ||
cy.percySnapshot('Header', { widths: [1440] }); | ||
}); | ||
}); |
2 changes: 1 addition & 1 deletion
2
packages/documentation/cypress/snapshots/components/headings.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,7 @@ | ||
describe('Headings', () => { | ||
it('default', () => { | ||
cy.visit('/iframe.html?id=snapshots--heading'); | ||
cy.get('h1').should('be.visible'); | ||
cy.get('h1', { timeout: 30000 }).should('be.visible'); | ||
cy.percySnapshot('Headings', { widths: [1024] }); | ||
}); | ||
}); |
2 changes: 1 addition & 1 deletion
2
packages/documentation/cypress/snapshots/components/radio.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,7 @@ | ||
describe('Radio', () => { | ||
it('default', () => { | ||
cy.visit('/iframe.html?id=snapshots--radio'); | ||
cy.get('.form-check').should('be.visible'); | ||
cy.get('.form-check', { timeout: 30000 }).should('be.visible'); | ||
cy.percySnapshot('Radios', { widths: [400] }); | ||
}); | ||
}); |
2 changes: 1 addition & 1 deletion
2
packages/documentation/cypress/snapshots/components/range.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,7 @@ | ||
describe('Range', () => { | ||
it('default', () => { | ||
cy.visit('/iframe.html?id=snapshots--range'); | ||
cy.get('.form-range').should('be.visible'); | ||
cy.get('.form-range', { timeout: 30000 }).should('be.visible'); | ||
cy.percySnapshot('Ranges', { widths: [400] }); | ||
}); | ||
}); |
2 changes: 1 addition & 1 deletion
2
packages/documentation/cypress/snapshots/components/select.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,7 @@ | ||
describe('Select', () => { | ||
it('default', () => { | ||
cy.visit('/iframe.html?id=snapshots--select'); | ||
cy.get('.form-select').should('be.visible'); | ||
cy.get('.form-select', { timeout: 30000 }).should('be.visible'); | ||
cy.percySnapshot('Selects', { widths: [400] }); | ||
}); | ||
}); |
2 changes: 1 addition & 1 deletion
2
packages/documentation/cypress/snapshots/components/switch.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,7 @@ | ||
describe('Switch', () => { | ||
it('default', () => { | ||
cy.visit('/iframe.html?id=snapshots--switch'); | ||
cy.get('.form-switch').should('be.visible'); | ||
cy.get('.form-switch', { timeout: 30000 }).should('be.visible'); | ||
cy.percySnapshot('Switches', { widths: [600] }); | ||
}); | ||
}); |
2 changes: 1 addition & 1 deletion
2
packages/documentation/cypress/snapshots/components/table.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,7 @@ | ||
describe('Table', () => { | ||
it('default', () => { | ||
cy.visit('/iframe.html?id=snapshots--table'); | ||
cy.get('.table').should('be.visible'); | ||
cy.get('.table', { timeout: 30000 }).should('be.visible'); | ||
cy.percySnapshot('Tables', { widths: [780] }); | ||
}); | ||
}); |
2 changes: 1 addition & 1 deletion
2
packages/documentation/cypress/snapshots/components/tabs.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,7 @@ | ||
describe('Tabs', () => { | ||
it('default', () => { | ||
cy.visit('/iframe.html?id=snapshots--tabs'); | ||
cy.get('post-tab-header.hydrated').should('be.visible'); | ||
cy.get('post-tab-header.hydrated', { timeout: 30000 }).should('be.visible'); | ||
cy.percySnapshot('Tabs', { widths: [1440] }); | ||
}); | ||
}); |
2 changes: 1 addition & 1 deletion
2
packages/documentation/cypress/snapshots/components/toast.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,7 @@ | ||
describe('Toast', () => { | ||
it('default', () => { | ||
cy.visit('/iframe.html?id=snapshots--toast'); | ||
cy.get('.toast').should('be.visible'); | ||
cy.get('.toast', { timeout: 30000 }).should('be.visible'); | ||
cy.percySnapshot('Toasts', { widths: [400, 1024] }); | ||
}); | ||
}); |
2 changes: 1 addition & 1 deletion
2
packages/documentation/cypress/snapshots/components/topic-teaser.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,7 @@ | ||
describe('Topic-Teaser', () => { | ||
it('default', () => { | ||
cy.visit('/iframe.html?id=snapshots--topic-teaser'); | ||
cy.get('.topic-teaser-image').should('be.visible'); | ||
cy.get('.topic-teaser-image', { timeout: 30000 }).should('be.visible'); | ||
cy.percySnapshot('Topic-Teaser', { widths: [320, 600, 1024] }); | ||
}); | ||
}); |