Skip to content

Commit

Permalink
test: resolve mobile regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jul 11, 2021
1 parent 2403082 commit 868e82e
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,16 @@ context('Mobile Profile', () => {
cy.get(
'*[data-testid="settings-password"] div[data-testid="submit-form"]'
).click()

cy.get(
'*[data-testid="settings-password"] div[data-testid="submit-form"]'
).should('have.attr', 'data-focusable', 'true')
cy.get('*[data-testid="logout"]').click()

cy.visit(MOBILE_URL + '/Home')
cy.loginMobile({ email, password })
cy.loginMobile({email, password})
cy.get('[data-testid="session-token"]').should('not.exist')
cy.loginMobile({ email, password: newPassword })
cy.loginMobile({email, password: newPassword})
cy.get('[data-testid="session-token"]').should('not.be.empty')
})
})
Expand Down Expand Up @@ -71,6 +75,9 @@ context('Mobile Profile', () => {
cy.get(
'*[data-testid="settings-profile"] div[data-testid="submit-form"]'
).click()
cy.get(
'*[data-testid="settings-profile"] div[data-testid="submit-form"]'
).should('have.attr', 'data-focusable', 'true')

cy.visit(MOBILE_URL + '/Home')
cy.get('[data-testid="session-content"]').should(
Expand All @@ -89,6 +96,9 @@ context('Mobile Profile', () => {
cy.get(
'*[data-testid="settings-profile"] div[data-testid="submit-form"]'
).click()
cy.get(
'*[data-testid="settings-profile"] div[data-testid="submit-form"]'
).should('have.attr', 'data-focusable', 'true')

cy.visit(MOBILE_URL + '/Home')
cy.get('[data-testid="session-content"]').should('contain', newEmail)
Expand Down

0 comments on commit 868e82e

Please sign in to comment.