From 2f1c7512fc2d799f432d7c253768cee1b209f0d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aliz=C3=A9=20Debray?= <33580481+alizedebray@users.noreply.github.com> Date: Wed, 13 Sep 2023 11:42:29 +0200 Subject: [PATCH] fix(docs): update snapshot test URLs (#1940) --- .../cypress/snapshots/components/alert.snapshot.ts | 2 +- .../cypress/snapshots/components/badge.snapshot.ts | 4 ++-- .../cypress/snapshots/components/blockquote.snapshot.ts | 2 +- .../cypress/snapshots/components/card.snapshot.ts | 2 +- .../cypress/snapshots/components/checkbox.snapshot.ts | 2 +- .../cypress/snapshots/components/choice-card.snapshot.ts | 2 +- .../cypress/snapshots/components/header.snapshot.ts | 6 ++++++ .../cypress/snapshots/components/radio.snapshot.ts | 2 +- .../cypress/snapshots/components/range.snapshot.ts | 2 +- .../cypress/snapshots/components/select.snapshot.ts | 2 +- .../cypress/snapshots/components/table.snapshot.ts | 2 +- .../cypress/snapshots/components/tabs.snapshot.ts | 2 +- .../cypress/snapshots/components/toast.snapshot.ts | 2 +- .../cypress/snapshots/components/topic-teaser.snapshot.ts | 3 +-- 14 files changed, 20 insertions(+), 15 deletions(-) create mode 100644 packages/documentation/cypress/snapshots/components/header.snapshot.ts diff --git a/packages/documentation/cypress/snapshots/components/alert.snapshot.ts b/packages/documentation/cypress/snapshots/components/alert.snapshot.ts index 6ddad36edd..f1538966e0 100644 --- a/packages/documentation/cypress/snapshots/components/alert.snapshot.ts +++ b/packages/documentation/cypress/snapshots/components/alert.snapshot.ts @@ -1,6 +1,6 @@ describe('Alert', () => { it('default', () => { - cy.visit('./iframe.html?id=snapshots--alert'); + cy.visit('/iframe.html?id=snapshots--alert'); cy.percySnapshot('Alerts', { widths: [320, 1440] }); }); }); diff --git a/packages/documentation/cypress/snapshots/components/badge.snapshot.ts b/packages/documentation/cypress/snapshots/components/badge.snapshot.ts index a81ec27f7c..faf61d2400 100644 --- a/packages/documentation/cypress/snapshots/components/badge.snapshot.ts +++ b/packages/documentation/cypress/snapshots/components/badge.snapshot.ts @@ -1,6 +1,6 @@ describe('Badge', () => { it('default', () => { - cy.visit('./iframe.html?id=snapshots--badge'); + cy.visit('/iframe.html?id=snapshots--badge'); cy.percySnapshot('Badges', { widths: [400] }); }); - }); \ No newline at end of file + }); diff --git a/packages/documentation/cypress/snapshots/components/blockquote.snapshot.ts b/packages/documentation/cypress/snapshots/components/blockquote.snapshot.ts index 1b492dcbc3..9ca515bb6d 100644 --- a/packages/documentation/cypress/snapshots/components/blockquote.snapshot.ts +++ b/packages/documentation/cypress/snapshots/components/blockquote.snapshot.ts @@ -1,6 +1,6 @@ describe('Blockquote', () => { it('default', () => { - cy.visit('./iframe.html?id=snapshots--blockquote'); + cy.visit('/iframe.html?id=snapshots--blockquote'); cy.percySnapshot('Blockquotes', { widths: [320, 1440] }); }); }); diff --git a/packages/documentation/cypress/snapshots/components/card.snapshot.ts b/packages/documentation/cypress/snapshots/components/card.snapshot.ts index ed0a5f17cf..195d436e4f 100644 --- a/packages/documentation/cypress/snapshots/components/card.snapshot.ts +++ b/packages/documentation/cypress/snapshots/components/card.snapshot.ts @@ -1,6 +1,6 @@ describe('Card', () => { it('default', () => { - cy.visit('./iframe.html?id=snapshots--card'); + cy.visit('/iframe.html?id=snapshots--card'); cy.percySnapshot('Cards', { widths: [1440] }); }); }); diff --git a/packages/documentation/cypress/snapshots/components/checkbox.snapshot.ts b/packages/documentation/cypress/snapshots/components/checkbox.snapshot.ts index 802258904d..d64fc6cd89 100644 --- a/packages/documentation/cypress/snapshots/components/checkbox.snapshot.ts +++ b/packages/documentation/cypress/snapshots/components/checkbox.snapshot.ts @@ -1,6 +1,6 @@ describe('Checkbox', () => { it('default', () => { - cy.visit('./iframe.html?id=snapshots--checkbox'); + cy.visit('/iframe.html?id=snapshots--checkbox'); cy.percySnapshot('Checkboxes', { widths: [400] }); }); }); diff --git a/packages/documentation/cypress/snapshots/components/choice-card.snapshot.ts b/packages/documentation/cypress/snapshots/components/choice-card.snapshot.ts index 998f9a69b0..c85429982c 100644 --- a/packages/documentation/cypress/snapshots/components/choice-card.snapshot.ts +++ b/packages/documentation/cypress/snapshots/components/choice-card.snapshot.ts @@ -1,6 +1,6 @@ describe('Choice card', () => { it('default', () => { - cy.visit('./iframe.html?id=snapshots--choice-card'); + cy.visit('/iframe.html?id=snapshots--choice-card'); cy.percySnapshot('Choice cards', { widths: [1440] }); }); }); diff --git a/packages/documentation/cypress/snapshots/components/header.snapshot.ts b/packages/documentation/cypress/snapshots/components/header.snapshot.ts new file mode 100644 index 0000000000..b226f085d1 --- /dev/null +++ b/packages/documentation/cypress/snapshots/components/header.snapshot.ts @@ -0,0 +1,6 @@ +describe('Header', () => { + it('default', () => { + cy.visit('/iframe.html?id=internet-header-header-component--default'); + cy.percySnapshot('Header', { widths: [1440] }); + }); +}); diff --git a/packages/documentation/cypress/snapshots/components/radio.snapshot.ts b/packages/documentation/cypress/snapshots/components/radio.snapshot.ts index 9b5b972d80..4cc0c71c6d 100644 --- a/packages/documentation/cypress/snapshots/components/radio.snapshot.ts +++ b/packages/documentation/cypress/snapshots/components/radio.snapshot.ts @@ -1,6 +1,6 @@ describe('Radio', () => { it('default', () => { - cy.visit('./iframe.html?id=snapshots--radio'); + cy.visit('/iframe.html?id=snapshots--radio'); cy.percySnapshot('Radios', { widths: [400] }); }); }); diff --git a/packages/documentation/cypress/snapshots/components/range.snapshot.ts b/packages/documentation/cypress/snapshots/components/range.snapshot.ts index 1ad646958d..0b5053cf42 100644 --- a/packages/documentation/cypress/snapshots/components/range.snapshot.ts +++ b/packages/documentation/cypress/snapshots/components/range.snapshot.ts @@ -1,6 +1,6 @@ describe('Range', () => { it('default', () => { - cy.visit('./iframe.html?id=snapshots--range'); + cy.visit('/iframe.html?id=snapshots--range'); cy.percySnapshot('Ranges', { widths: [400] }); }); }); diff --git a/packages/documentation/cypress/snapshots/components/select.snapshot.ts b/packages/documentation/cypress/snapshots/components/select.snapshot.ts index 51939323b1..51a04d080c 100644 --- a/packages/documentation/cypress/snapshots/components/select.snapshot.ts +++ b/packages/documentation/cypress/snapshots/components/select.snapshot.ts @@ -1,6 +1,6 @@ describe('Select', () => { it('default', () => { - cy.visit('./iframe.html?id=snapshots--select'); + cy.visit('/iframe.html?id=snapshots--select'); cy.percySnapshot('Selects', { widths: [400] }); }); }); diff --git a/packages/documentation/cypress/snapshots/components/table.snapshot.ts b/packages/documentation/cypress/snapshots/components/table.snapshot.ts index e3751e35bd..385c663b9a 100644 --- a/packages/documentation/cypress/snapshots/components/table.snapshot.ts +++ b/packages/documentation/cypress/snapshots/components/table.snapshot.ts @@ -1,6 +1,6 @@ describe('Table', () => { it('default', () => { - cy.visit('./iframe.html?id=snapshots--table'); + cy.visit('/iframe.html?id=snapshots--table'); cy.percySnapshot('Tables', { widths: [780] }); }); }); diff --git a/packages/documentation/cypress/snapshots/components/tabs.snapshot.ts b/packages/documentation/cypress/snapshots/components/tabs.snapshot.ts index ea5cdb5f50..867a4ac961 100644 --- a/packages/documentation/cypress/snapshots/components/tabs.snapshot.ts +++ b/packages/documentation/cypress/snapshots/components/tabs.snapshot.ts @@ -1,6 +1,6 @@ describe('Tabs', () => { it('default', () => { - cy.visit('./iframe.html?id=snapshots--tabs'); + cy.visit('/iframe.html?id=snapshots--tabs'); cy.percySnapshot('Tabs', { widths: [1440] }); }); }); diff --git a/packages/documentation/cypress/snapshots/components/toast.snapshot.ts b/packages/documentation/cypress/snapshots/components/toast.snapshot.ts index 728083b172..c10764acc7 100644 --- a/packages/documentation/cypress/snapshots/components/toast.snapshot.ts +++ b/packages/documentation/cypress/snapshots/components/toast.snapshot.ts @@ -1,6 +1,6 @@ describe('Toast', () => { it('default', () => { - cy.visit('./iframe.html?id=snapshots--toast'); + cy.visit('/iframe.html?id=snapshots--toast'); cy.percySnapshot('Toasts', { widths: [400, 1024] }); }); }); diff --git a/packages/documentation/cypress/snapshots/components/topic-teaser.snapshot.ts b/packages/documentation/cypress/snapshots/components/topic-teaser.snapshot.ts index efed25b269..870bd32257 100644 --- a/packages/documentation/cypress/snapshots/components/topic-teaser.snapshot.ts +++ b/packages/documentation/cypress/snapshots/components/topic-teaser.snapshot.ts @@ -1,7 +1,6 @@ describe('Topic-Teaser', () => { it('default', () => { - cy.visit('./iframe.html?id=snapshots--topic-teaser'); + cy.visit('/iframe.html?id=snapshots--topic-teaser'); cy.percySnapshot('Topic-Teaser', { widths: [320, 600, 1024] }); }); }); - \ No newline at end of file