Fix cypress tests

This commit is contained in:
roschaefer 2019-09-20 23:21:57 +02:00
parent b58b4dca4f
commit b7d70bbe90

View File

@ -18,6 +18,8 @@ When('I save {string} as my new name', name => {
cy.get('[type=submit]') cy.get('[type=submit]')
.click() .click()
.not('[disabled]') .not('[disabled]')
cy.get('.iziToast-message')
.should('contain', 'Your data was successfully updated')
}) })
When('I save {string} as my location', location => { When('I save {string} as my location', location => {
@ -28,6 +30,8 @@ When('I save {string} as my location', location => {
cy.get('[type=submit]') cy.get('[type=submit]')
.click() .click()
.not('[disabled]') .not('[disabled]')
cy.get('.iziToast-message')
.should('contain', 'Your data was successfully updated')
myLocation = location myLocation = location
}) })
@ -38,6 +42,8 @@ When('I have the following self-description:', text => {
cy.get('[type=submit]') cy.get('[type=submit]')
.click() .click()
.not('[disabled]') .not('[disabled]')
cy.get('.iziToast-message')
.should('contain', 'Your data was successfully updated')
aboutMeText = text aboutMeText = text
}) })