Skip to content

Commit

Permalink
fix(docs): update snapshot test URLs (#1940)
Browse files Browse the repository at this point in the history
  • Loading branch information
alizedebray authored Sep 13, 2023
1 parent 58d52f1 commit 2f1c751
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -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] });
});
});
Original file line number Diff line number Diff line change
@@ -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] });
});
});
});
Original file line number Diff line number Diff line change
@@ -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] });
});
});
Original file line number Diff line number Diff line change
@@ -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] });
});
});
Original file line number Diff line number Diff line change
@@ -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] });
});
});
Original file line number Diff line number Diff line change
@@ -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] });
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
describe('Header', () => {
it('default', () => {
cy.visit('/iframe.html?id=internet-header-header-component--default');
cy.percySnapshot('Header', { widths: [1440] });
});
});
Original file line number Diff line number Diff line change
@@ -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] });
});
});
Original file line number Diff line number Diff line change
@@ -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] });
});
});
Original file line number Diff line number Diff line change
@@ -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] });
});
});
Original file line number Diff line number Diff line change
@@ -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] });
});
});
Original file line number Diff line number Diff line change
@@ -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] });
});
});
Original file line number Diff line number Diff line change
@@ -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] });
});
});
Original file line number Diff line number Diff line change
@@ -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] });
});
});

0 comments on commit 2f1c751

Please sign in to comment.