From 243948bc931b4abbd736771d60f33b2f191e20be Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Mon, 22 Jun 2020 11:29:34 +0100 Subject: [PATCH] cypress - changed background test to font-size (so i dont have to figure out how to test the colour picker) --- .../cypress/integration/createComponents.spec.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/builder/cypress/integration/createComponents.spec.js b/packages/builder/cypress/integration/createComponents.spec.js index 299f6b8ad2..cedd8fefe1 100644 --- a/packages/builder/cypress/integration/createComponents.spec.js +++ b/packages/builder/cypress/integration/createComponents.spec.js @@ -20,13 +20,13 @@ context('Create Components', () => { getIframeBody().contains('An Amazing headline!') }) - it('change the background color of the headline', () => { - cy.contains('Background').click() - cy.get('input[name="background"]') - .type('rgb(102, 51, 153)') + it('change the font size of the headline', () => { + cy.contains('Typography').click() + cy.get('input[name="font-size"]') + .type('60px') cy.contains('Design').click() - getIframeBody().contains('An Amazing headline!').should('have.css', 'background-color', 'rgb(102, 51, 153)') + getIframeBody().contains('An Amazing headline!').should('have.css', 'font-size', '60px') }) })