cypress - changed background test to font-size

(so i dont have to figure out how to test the colour picker)
This commit is contained in:
Michael Shanks 2020-06-22 11:29:34 +01:00
parent 733dd9753c
commit 243948bc93
1 changed files with 5 additions and 5 deletions

View File

@ -20,13 +20,13 @@ context('Create Components', () => {
getIframeBody().contains('An Amazing headline!') getIframeBody().contains('An Amazing headline!')
}) })
it('change the background color of the headline', () => { it('change the font size of the headline', () => {
cy.contains('Background').click() cy.contains('Typography').click()
cy.get('input[name="background"]') cy.get('input[name="font-size"]')
.type('rgb(102, 51, 153)') .type('60px')
cy.contains('Design').click() 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')
}) })
}) })