update integration test

main
Mike Fix 6 years ago
parent 53e9e38e19
commit cc5981509e

@ -31,8 +31,7 @@ describe('background color', () => {
const darkRed = '#D0021B' const darkRed = '#D0021B'
const darkRedTile = `[title="${darkRed}"]` const darkRedTile = `[title="${darkRed}"]`
openPicker() openPicker()
cy cy.get(picker)
.get(picker)
.find(darkRedTile) .find(darkRedTile)
.click() .click()
closePicker() closePicker()
@ -61,7 +60,7 @@ describe('background color', () => {
.type(`${pink}{enter}`) .type(`${pink}{enter}`)
closePicker() closePicker()
cy.url().should('contain', '?bg=rgba(255,0,255,1') cy.url().should('contain', `?bg=rgba(${encodeURIComponent('255,0,255,1')}`)
cy.get('#container-bg .bg').should('have.css', 'background-color', 'rgb(255, 0, 255)') cy.get('#container-bg .bg').should('have.css', 'background-color', 'rgb(255, 0, 255)')
}) })
}) })

Loading…
Cancel
Save