diff --git a/cypress/e2e/components/atoms/button.cy.js b/cypress/e2e/components/atoms/button.cy.js index 441a84256..ae4581a08 100644 --- a/cypress/e2e/components/atoms/button.cy.js +++ b/cypress/e2e/components/atoms/button.cy.js @@ -6,6 +6,7 @@ describe('Button component', () => { describe('props and methods section', () => { beforeEach(() => { + cy.visit('/#button'); cy.get('[data-testid="Button-container"] button[name="rsg-usage"]') .contains('Props & methods') .as('propsBtn'); @@ -35,6 +36,7 @@ describe('Button component', () => { describe('Plain Button: Button-example-0', () => { beforeEach(() => { + cy.visit('/#button'); cy.get('[data-testid="Button-example-0"') .as('container') .find('[class^=rsg--preview]') @@ -63,17 +65,11 @@ describe('Button component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); describe('Button as a span: Button-example-1', () => { beforeEach(() => { + cy.visit('/#button'); cy.get('[data-testid="Button-example-1"]') .as('container') .find('[class^=rsg--preview]') @@ -86,7 +82,7 @@ describe('Button component', () => { }); it('renders button as a span', () => { - //verify button as a span + // verify button as a span cy.get('[data-testid="Button-example-1"]') .contains('My button as a span') .should('exist'); @@ -102,12 +98,5 @@ describe('Button component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); }); diff --git a/cypress/e2e/components/atoms/buttonWithStates.cy.js b/cypress/e2e/components/atoms/buttonWithStates.cy.js index 9dcbeafba..592170f4b 100644 --- a/cypress/e2e/components/atoms/buttonWithStates.cy.js +++ b/cypress/e2e/components/atoms/buttonWithStates.cy.js @@ -1,11 +1,12 @@ describe('Button With States component', () => { before(() => { - // go to Button With States component - cy.visit('/#button'); + // go to Button With States component + cy.visit('/#button'); }); describe('props and methods section', () => { beforeEach(() => { + cy.visit('/#button'); cy.get('[data-testid="ButtonWithStates-container"]') .as('container') .find('[class^=rsg--preview]') @@ -26,10 +27,10 @@ describe('Button With States component', () => { }); it('renders button as disabled', () => { - //verify button as a span + // verify button as a span cy.get('[data-testid="ButtonWithStates-example-1"]') .contains('Loading') - .should('be.disabled') + .should('be.disabled'); }); it('has view code button', () => { @@ -42,12 +43,5 @@ describe('Button With States component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); }); diff --git a/cypress/e2e/components/atoms/checkbox.cy.js b/cypress/e2e/components/atoms/checkbox.cy.js index fef202d56..64ee31a6e 100644 --- a/cypress/e2e/components/atoms/checkbox.cy.js +++ b/cypress/e2e/components/atoms/checkbox.cy.js @@ -6,6 +6,7 @@ describe('Checkbox component', () => { describe('props and methods section', () => { beforeEach(() => { + cy.visit('/#checkbox'); cy.get('[data-testid="Checkbox-container"] button[name="rsg-usage"]') .contains('Props & methods') .as('propsBtn'); @@ -35,6 +36,7 @@ describe('Checkbox component', () => { describe('Checkbox section', () => { beforeEach(() => { + cy.visit('/#checkbox'); cy.get('[data-preview="Checkbox"]') .as('preview'); }); diff --git a/cypress/e2e/components/atoms/confetti.cy.js b/cypress/e2e/components/atoms/confetti.cy.js index 521d97bbb..cbbbc03a2 100644 --- a/cypress/e2e/components/atoms/confetti.cy.js +++ b/cypress/e2e/components/atoms/confetti.cy.js @@ -6,6 +6,7 @@ describe('Confetti component', () => { describe('props and methods section', () => { beforeEach(() => { + cy.visit('/#confetti'); cy.get('[data-testid="Confetti-container"]') .as('container') .find('[class^=rsg--preview]') @@ -25,7 +26,7 @@ describe('Confetti component', () => { }); it('renders confetti when "trigger confetti" is clicked', () => { - //verify button as a span + // verify button as a span cy.get('[data-testid="Confetti-example-1"]') .contains('trigger confetti') .click() @@ -41,12 +42,5 @@ describe('Confetti component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); }); diff --git a/cypress/e2e/components/atoms/errorText.cy.js b/cypress/e2e/components/atoms/errorText.cy.js index 9215f48e4..4ec27207a 100644 --- a/cypress/e2e/components/atoms/errorText.cy.js +++ b/cypress/e2e/components/atoms/errorText.cy.js @@ -6,6 +6,7 @@ describe('ErrorText component', () => { describe('props and methods section', () => { beforeEach(() => { + cy.visit('/#errortext'); cy.get('[data-testid="ErrorText-container"]') .as('container') .find('[class^=rsg--preview]') @@ -40,12 +41,5 @@ describe('ErrorText component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); }); diff --git a/cypress/e2e/components/atoms/input.cy.js b/cypress/e2e/components/atoms/input.cy.js index aba4c2b6f..40678706b 100644 --- a/cypress/e2e/components/atoms/input.cy.js +++ b/cypress/e2e/components/atoms/input.cy.js @@ -6,6 +6,7 @@ describe('Input component', () => { describe('props and methods section', () => { beforeEach(() => { + cy.visit('/#input'); cy.get('[data-testid="Input-container"] button[name="rsg-usage"]') .contains('Props & methods') .as('propsBtn'); @@ -35,6 +36,7 @@ describe('Input component', () => { describe('Input preview section: required with label and hint', () => { beforeEach(() => { + cy.visit('/#input'); cy.get('[data-testid="Input-example-0"]') .as('container') .find('[class^=rsg--preview]') @@ -69,17 +71,11 @@ describe('Input component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); describe('Input preview section: with error message', () => { beforeEach(() => { + cy.visit('/#input'); cy.get('[data-testid="Input-example-1"]') .as('container') .find('[data-preview="Input"]') @@ -126,6 +122,7 @@ describe('Input component', () => { describe('Input preview section: with simple input(optional)', () => { beforeEach(() => { + cy.visit('/#input'); cy.get('[data-testid="Input-example-2"]') .as('container') .find('[class^=rsg--preview]') @@ -156,12 +153,5 @@ describe('Input component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); }); diff --git a/cypress/e2e/components/atoms/label.cy.js b/cypress/e2e/components/atoms/label.cy.js index b8bfdc7d5..0e671fad3 100644 --- a/cypress/e2e/components/atoms/label.cy.js +++ b/cypress/e2e/components/atoms/label.cy.js @@ -54,13 +54,6 @@ describe('Label component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); describe('Wrapping a styled input: Label-example-1', () => { @@ -93,12 +86,5 @@ describe('Label component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); }); diff --git a/cypress/e2e/components/atoms/link.cy.js b/cypress/e2e/components/atoms/link.cy.js index 695861912..66cf51dd7 100644 --- a/cypress/e2e/components/atoms/link.cy.js +++ b/cypress/e2e/components/atoms/link.cy.js @@ -74,13 +74,6 @@ describe('Link component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); describe('Iconography section', () => { @@ -134,13 +127,6 @@ describe('Link component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); describe('Link as button section', () => { @@ -196,12 +182,5 @@ describe('Link component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); }); diff --git a/cypress/e2e/components/atoms/logo.cy.js b/cypress/e2e/components/atoms/logo.cy.js index efa5075f2..3651baa75 100644 --- a/cypress/e2e/components/atoms/logo.cy.js +++ b/cypress/e2e/components/atoms/logo.cy.js @@ -62,13 +62,6 @@ describe('Logo component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); describe('SR logo section', () => { @@ -100,13 +93,6 @@ describe('Logo component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); describe('SR game on logo section', () => { @@ -138,12 +124,5 @@ describe('Logo component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); }); diff --git a/cypress/e2e/components/atoms/pagination.cy.js b/cypress/e2e/components/atoms/pagination.cy.js index 94381fb75..7af9c4b1d 100644 --- a/cypress/e2e/components/atoms/pagination.cy.js +++ b/cypress/e2e/components/atoms/pagination.cy.js @@ -63,13 +63,6 @@ describe('Pagination component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); describe('Pagination full size section', () => { @@ -109,13 +102,6 @@ describe('Pagination component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); describe('Pagination custom style section', () => { @@ -156,13 +142,6 @@ describe('Pagination component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); describe('Pagination custom labels section', () => { @@ -203,12 +182,5 @@ describe('Pagination component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); }); diff --git a/cypress/e2e/components/atoms/picture.cy.js b/cypress/e2e/components/atoms/picture.cy.js index dc9ad9450..54d0cd970 100644 --- a/cypress/e2e/components/atoms/picture.cy.js +++ b/cypress/e2e/components/atoms/picture.cy.js @@ -62,13 +62,6 @@ describe('Picture component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); describe('custom size picture section', () => { @@ -99,13 +92,6 @@ describe('Picture component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); describe('Single image section', () => { @@ -136,12 +122,5 @@ describe('Picture component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); }); diff --git a/cypress/e2e/components/atoms/radioButton.cy.js b/cypress/e2e/components/atoms/radioButton.cy.js index 0242b18e2..f2935d302 100644 --- a/cypress/e2e/components/atoms/radioButton.cy.js +++ b/cypress/e2e/components/atoms/radioButton.cy.js @@ -70,12 +70,5 @@ describe('Radio Button component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); }); diff --git a/cypress/e2e/components/atoms/richText.cy.js b/cypress/e2e/components/atoms/richText.cy.js index 3ada2afa6..a46b0d449 100644 --- a/cypress/e2e/components/atoms/richText.cy.js +++ b/cypress/e2e/components/atoms/richText.cy.js @@ -64,12 +64,5 @@ describe('RichText component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); }); diff --git a/cypress/e2e/components/atoms/select.cy.js b/cypress/e2e/components/atoms/select.cy.js index 46a1981f4..34beb4200 100644 --- a/cypress/e2e/components/atoms/select.cy.js +++ b/cypress/e2e/components/atoms/select.cy.js @@ -78,12 +78,5 @@ describe('SelectField component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); }); diff --git a/cypress/e2e/components/atoms/socialIcons.cy.js b/cypress/e2e/components/atoms/socialIcons.cy.js index 0b643c24f..94b0ba846 100644 --- a/cypress/e2e/components/atoms/socialIcons.cy.js +++ b/cypress/e2e/components/atoms/socialIcons.cy.js @@ -72,13 +72,6 @@ describe('SocialIcons component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); describe('Red Nose Day social icons section', () => { @@ -120,13 +113,6 @@ describe('SocialIcons component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); describe('Sport Relief social icons section', () => { @@ -168,12 +154,5 @@ describe('SocialIcons component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); }); diff --git a/cypress/e2e/components/atoms/text.cy.js b/cypress/e2e/components/atoms/text.cy.js index 0cf377a85..3769c175b 100644 --- a/cypress/e2e/components/atoms/text.cy.js +++ b/cypress/e2e/components/atoms/text.cy.js @@ -94,13 +94,6 @@ describe('Text component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); describe('Text section', () => { @@ -169,12 +162,5 @@ describe('Text component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); }); diff --git a/cypress/e2e/components/atoms/textArea.cy.js b/cypress/e2e/components/atoms/textArea.cy.js index 6b20b94c8..3e8384308 100644 --- a/cypress/e2e/components/atoms/textArea.cy.js +++ b/cypress/e2e/components/atoms/textArea.cy.js @@ -83,9 +83,5 @@ describe('TextArea component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); }); diff --git a/cypress/e2e/components/atoms/textInputWithDrop.cy.js b/cypress/e2e/components/atoms/textInputWithDrop.cy.js index 4453c29bf..4fd44f559 100644 --- a/cypress/e2e/components/atoms/textInputWithDrop.cy.js +++ b/cypress/e2e/components/atoms/textInputWithDrop.cy.js @@ -70,9 +70,5 @@ describe('Text Input With Dropdown component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); }); diff --git a/cypress/e2e/components/molecules/accordion.cy.js b/cypress/e2e/components/molecules/accordion.cy.js index b7bf50079..9db9a96e4 100644 --- a/cypress/e2e/components/molecules/accordion.cy.js +++ b/cypress/e2e/components/molecules/accordion.cy.js @@ -61,12 +61,5 @@ describe('Accordion component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); }); diff --git a/cypress/e2e/components/molecules/articleTeaser.cy.js b/cypress/e2e/components/molecules/articleTeaser.cy.js index 52e7b5e33..16e3d6157 100644 --- a/cypress/e2e/components/molecules/articleTeaser.cy.js +++ b/cypress/e2e/components/molecules/articleTeaser.cy.js @@ -99,12 +99,5 @@ describe('ArticleTeaser component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); }); diff --git a/cypress/e2e/components/molecules/banner.cy.js b/cypress/e2e/components/molecules/banner.cy.js index c679c6821..8781084f2 100644 --- a/cypress/e2e/components/molecules/banner.cy.js +++ b/cypress/e2e/components/molecules/banner.cy.js @@ -61,12 +61,5 @@ describe('Banner component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); }); diff --git a/cypress/e2e/components/molecules/box.cy.js b/cypress/e2e/components/molecules/box.cy.js index adc2e4406..91dc433b2 100644 --- a/cypress/e2e/components/molecules/box.cy.js +++ b/cypress/e2e/components/molecules/box.cy.js @@ -67,10 +67,6 @@ describe('Box component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('Box example 3 section', () => { @@ -101,12 +97,5 @@ describe('Box component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); }); diff --git a/cypress/e2e/components/molecules/card.cy.js b/cypress/e2e/components/molecules/card.cy.js index 699c97085..ee769380e 100644 --- a/cypress/e2e/components/molecules/card.cy.js +++ b/cypress/e2e/components/molecules/card.cy.js @@ -68,10 +68,6 @@ describe('Card component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('Card no body section', () => { @@ -102,12 +98,5 @@ describe('Card component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); }); diff --git a/cypress/e2e/components/molecules/cardDs.cy.js b/cypress/e2e/components/molecules/cardDs.cy.js index c62693c94..14a7c1bd0 100644 --- a/cypress/e2e/components/molecules/cardDs.cy.js +++ b/cypress/e2e/components/molecules/cardDs.cy.js @@ -75,10 +75,6 @@ describe('CardDs component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('CardDs no Image with link section', () => { @@ -122,13 +118,6 @@ describe('CardDs component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); describe('CardDs no image no link section', () => { @@ -161,20 +150,6 @@ describe('CardDs component', () => { it('has view code button', () => { cy.get('@viewCodeBtn').should('exist'); }); - - it('shows code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('exist'); - }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - cy.get('@container') - .find('textarea') - .should('not.exist'); - }); }); describe('CardDs image, text, no link', () => { @@ -215,9 +190,5 @@ describe('CardDs component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); }); diff --git a/cypress/e2e/components/molecules/chip.cy.js b/cypress/e2e/components/molecules/chip.cy.js index 3ef4fc729..944d17224 100644 --- a/cypress/e2e/components/molecules/chip.cy.js +++ b/cypress/e2e/components/molecules/chip.cy.js @@ -62,9 +62,5 @@ describe('Chip component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); }); diff --git a/cypress/e2e/components/molecules/countdown.cy.js b/cypress/e2e/components/molecules/countdown.cy.js index 4bd64507c..65038c471 100644 --- a/cypress/e2e/components/molecules/countdown.cy.js +++ b/cypress/e2e/components/molecules/countdown.cy.js @@ -65,9 +65,5 @@ describe('Countdown component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); }); diff --git a/cypress/e2e/components/molecules/descriptor.cy.js b/cypress/e2e/components/molecules/descriptor.cy.js index a2ed61bbb..a075d8c03 100644 --- a/cypress/e2e/components/molecules/descriptor.cy.js +++ b/cypress/e2e/components/molecules/descriptor.cy.js @@ -82,10 +82,6 @@ describe('Descriptor component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('Descriptor section: Descriptor-example-2', () => { @@ -139,9 +135,5 @@ describe('Descriptor component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); }); diff --git a/cypress/e2e/components/molecules/doubleCopy.cy.js b/cypress/e2e/components/molecules/doubleCopy.cy.js index 66c359c4b..c4b3a7d73 100644 --- a/cypress/e2e/components/molecules/doubleCopy.cy.js +++ b/cypress/e2e/components/molecules/doubleCopy.cy.js @@ -73,9 +73,5 @@ describe('DoubleCopy component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); }); diff --git a/cypress/e2e/components/molecules/heroBanner.cy.js b/cypress/e2e/components/molecules/heroBanner.cy.js index 9951ce0c0..6e113508c 100644 --- a/cypress/e2e/components/molecules/heroBanner.cy.js +++ b/cypress/e2e/components/molecules/heroBanner.cy.js @@ -63,9 +63,5 @@ describe('Herobanner component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); }); diff --git a/cypress/e2e/components/molecules/infoBanner.cy.js b/cypress/e2e/components/molecules/infoBanner.cy.js index 0cf561d31..bb61dfd3d 100644 --- a/cypress/e2e/components/molecules/infoBanner.cy.js +++ b/cypress/e2e/components/molecules/infoBanner.cy.js @@ -63,9 +63,5 @@ describe('infobanner component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); }); diff --git a/cypress/e2e/components/molecules/partnerLink.cy.js b/cypress/e2e/components/molecules/partnerLink.cy.js index 64d07578c..405731113 100644 --- a/cypress/e2e/components/molecules/partnerLink.cy.js +++ b/cypress/e2e/components/molecules/partnerLink.cy.js @@ -62,9 +62,5 @@ describe('PartnerLink component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); }); diff --git a/cypress/e2e/components/molecules/promo.cy.js b/cypress/e2e/components/molecules/promo.cy.js index 9ead04109..84f4f7c05 100644 --- a/cypress/e2e/components/molecules/promo.cy.js +++ b/cypress/e2e/components/molecules/promo.cy.js @@ -68,9 +68,5 @@ describe('Promo component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); }); diff --git a/cypress/e2e/components/molecules/schoolLookup.cy.js b/cypress/e2e/components/molecules/schoolLookup.cy.js index 95b168c34..d3f1260f1 100644 --- a/cypress/e2e/components/molecules/schoolLookup.cy.js +++ b/cypress/e2e/components/molecules/schoolLookup.cy.js @@ -56,10 +56,6 @@ describe('School Lookup component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('School lookup functionality', () => { diff --git a/cypress/e2e/components/molecules/searchInput.cy.js b/cypress/e2e/components/molecules/searchInput.cy.js index 1e4fcfbdd..e8a34d946 100644 --- a/cypress/e2e/components/molecules/searchInput.cy.js +++ b/cypress/e2e/components/molecules/searchInput.cy.js @@ -66,9 +66,5 @@ describe('Search Input component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); }); diff --git a/cypress/e2e/components/molecules/searchResult.cy.js b/cypress/e2e/components/molecules/searchResult.cy.js index 9bbc6f75b..bf45068a1 100644 --- a/cypress/e2e/components/molecules/searchResult.cy.js +++ b/cypress/e2e/components/molecules/searchResult.cy.js @@ -65,10 +65,6 @@ describe('Search Result component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('Search Result with copy section', () => { @@ -106,10 +102,6 @@ describe('Search Result component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('Search Result with date section', () => { @@ -150,10 +142,6 @@ describe('Search Result component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('Search Result with date and type section', () => { @@ -194,9 +182,5 @@ describe('Search Result component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); }); diff --git a/cypress/e2e/components/molecules/shareButton.cy.js b/cypress/e2e/components/molecules/shareButton.cy.js index b7784f9a4..ee3946df9 100644 --- a/cypress/e2e/components/molecules/shareButton.cy.js +++ b/cypress/e2e/components/molecules/shareButton.cy.js @@ -70,9 +70,5 @@ describe('Share Button component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); }); diff --git a/cypress/e2e/components/molecules/simpleSchoolLookup.cy.js b/cypress/e2e/components/molecules/simpleSchoolLookup.cy.js index bb657fafb..d97996922 100644 --- a/cypress/e2e/components/molecules/simpleSchoolLookup.cy.js +++ b/cypress/e2e/components/molecules/simpleSchoolLookup.cy.js @@ -54,10 +54,6 @@ describe('SimpleSchoolLookup component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('Simple School lookup functionality', () => { diff --git a/cypress/e2e/components/molecules/singleMessage.cy.js b/cypress/e2e/components/molecules/singleMessage.cy.js index c948a3ab2..1377928f7 100644 --- a/cypress/e2e/components/molecules/singleMessage.cy.js +++ b/cypress/e2e/components/molecules/singleMessage.cy.js @@ -71,10 +71,6 @@ describe('Single Message component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('Single Message fullImage section', () => { @@ -115,10 +111,6 @@ describe('Single Message component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('Single Message fullImage no copy section', () => { @@ -156,10 +148,6 @@ describe('Single Message component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('Single Message fullImage no image section', () => { @@ -196,11 +184,7 @@ describe('Single Message component', () => { cy.get('@container') .find('textarea') .should('exist'); - }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); + }) }); describe('Single Message vertical height 100% section', () => { @@ -238,10 +222,6 @@ describe('Single Message component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('Single Message double image section', () => { @@ -283,10 +263,6 @@ describe('Single Message component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('Single Message with 16:9 video section', () => { @@ -326,10 +302,6 @@ describe('Single Message component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('Single Message with 16:9 video left section', () => { @@ -369,10 +341,6 @@ describe('Single Message component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('Single Message with portrait video section', () => { @@ -412,10 +380,6 @@ describe('Single Message component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('Single Message with portrait video, 100VH section', () => { @@ -451,10 +415,6 @@ describe('Single Message component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('Single Message with landscape video, 100VH, fullwidth image', () => { @@ -490,10 +450,6 @@ describe('Single Message component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('Single Message with landscape video, 50VH, fullwidth image', () => { @@ -529,9 +485,5 @@ describe('Single Message component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); }); diff --git a/cypress/e2e/components/molecules/singleMessageDs.cy.js b/cypress/e2e/components/molecules/singleMessageDs.cy.js index 773e3d13c..dae109204 100644 --- a/cypress/e2e/components/molecules/singleMessageDs.cy.js +++ b/cypress/e2e/components/molecules/singleMessageDs.cy.js @@ -72,10 +72,6 @@ describe('Single Message Ds component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('SingleMessageDs-example-3: Image align right and CTA are clickable', () => { @@ -116,10 +112,6 @@ describe('Single Message Ds component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('SingleMessageDs-example-5: SingleMessageDs-example-5', () => { @@ -158,10 +150,6 @@ describe('Single Message Ds component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('SingleMessageDs-example-7: Using the linkIcon prop', () => { @@ -199,10 +187,6 @@ describe('Single Message Ds component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('SingleMessageDs-example-9: Video with no CTA', () => { @@ -240,9 +224,5 @@ describe('Single Message Ds component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); }); diff --git a/cypress/e2e/components/molecules/typeahead.cy.js b/cypress/e2e/components/molecules/typeahead.cy.js index 4e1aa2243..243b8db1a 100644 --- a/cypress/e2e/components/molecules/typeahead.cy.js +++ b/cypress/e2e/components/molecules/typeahead.cy.js @@ -56,10 +56,6 @@ describe('Typeahead component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('Typeahead functionality', () => { diff --git a/cypress/e2e/components/molecules/videoBanner.cy.js b/cypress/e2e/components/molecules/videoBanner.cy.js index 8c6aef9c7..0f9dcb1b3 100644 --- a/cypress/e2e/components/molecules/videoBanner.cy.js +++ b/cypress/e2e/components/molecules/videoBanner.cy.js @@ -62,10 +62,6 @@ describe('Video Banner component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('VideoBanner-example-3: Looping Video Banner With Controls', () => { @@ -97,10 +93,6 @@ describe('Video Banner component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('VideoBanner-example-5: Non-autoplay Video Banner', () => { @@ -132,9 +124,5 @@ describe('Video Banner component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); }); diff --git a/cypress/e2e/components/organisms/cookieBanner.cy.js b/cypress/e2e/components/organisms/cookieBanner.cy.js index 22210dc07..f681e57c8 100644 --- a/cypress/e2e/components/organisms/cookieBanner.cy.js +++ b/cypress/e2e/components/organisms/cookieBanner.cy.js @@ -74,9 +74,5 @@ describe('Cookie Banner component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); }); diff --git a/cypress/e2e/components/organisms/donate.cy.js b/cypress/e2e/components/organisms/donate.cy.js index a82e94998..4a0e6f209 100644 --- a/cypress/e2e/components/organisms/donate.cy.js +++ b/cypress/e2e/components/organisms/donate.cy.js @@ -97,10 +97,6 @@ describe('Donate component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('Donate Form align left section', () => { @@ -163,10 +159,6 @@ describe('Donate component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('Single Giving section', () => { @@ -228,10 +220,6 @@ describe('Donate component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('Single Giving "No Money Buys" section', () => { @@ -287,9 +275,5 @@ describe('Donate component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); }); diff --git a/cypress/e2e/components/organisms/emailSignUp.cy.js b/cypress/e2e/components/organisms/emailSignUp.cy.js index 3d547a2c4..04fa9f209 100644 --- a/cypress/e2e/components/organisms/emailSignUp.cy.js +++ b/cypress/e2e/components/organisms/emailSignUp.cy.js @@ -49,9 +49,5 @@ describe('Email Sign Up component', () => { cy.get('@viewCodeBtn').click(); cy.get('@container').find('textarea').should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); }); diff --git a/cypress/e2e/components/organisms/header.cy.js b/cypress/e2e/components/organisms/header.cy.js index 89fd6be44..cd8642f04 100644 --- a/cypress/e2e/components/organisms/header.cy.js +++ b/cypress/e2e/components/organisms/header.cy.js @@ -76,10 +76,6 @@ describe('Header component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('CR Header with search and ESU section', () => { @@ -135,9 +131,5 @@ describe('Header component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); }); diff --git a/cypress/e2e/components/organisms/membership.cy.js b/cypress/e2e/components/organisms/membership.cy.js index db3f32e25..0f62d76c5 100644 --- a/cypress/e2e/components/organisms/membership.cy.js +++ b/cypress/e2e/components/organisms/membership.cy.js @@ -73,10 +73,6 @@ describe('Membership component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); describe('Membership form align left section', () => { @@ -119,9 +115,5 @@ describe('Membership component', () => { .find('textarea') .should('exist'); }); - - it('closes code on click', () => { - cy.get('@viewCodeBtn').click(); - }); }); });