Skip to content

Commit

Permalink
fix(docs): increase timeout for the snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alizedebray committed Sep 13, 2023
1 parent bc19352 commit 2c02d28
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
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] });
});
});
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] });
});
});
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] });
});
});
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] });
});
});
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] });
});
});
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] });
});
});
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] });
});
});
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');
});
});
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] });
});
});
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] });
});
});
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] });
});
});
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] });
});
});
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] });
});
});
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] });
});
});
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] });
});
});
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] });
});
});
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] });
});
});
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] });
});
});

0 comments on commit 2c02d28

Please sign in to comment.