Skip to content

Commit

Permalink
fix: Failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sawadashota committed Nov 30, 2021
1 parent 80b1725 commit d884fed
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ describe('Registration failures with email profile', () => {
.type(identity)
.should('have.value', identity)
cy.get('input[name="password"]')
.type('123456')
.should('have.value', '123456')
.type('12345678')
.should('have.value', '12345678')

cy.shouldHaveCsrfError({ app })
})
Expand All @@ -56,8 +56,8 @@ describe('Registration failures with email profile', () => {
.type(identity)
.should('have.value', identity)
cy.get('input[name="password"]')
.type('123456')
.should('have.value', '123456')
.type('12345678')
.should('have.value', '12345678')

cy.submitPasswordForm()
cy.get('*[data-testid^="ui/message"]').should(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ context('Settings failures with email profile', () => {
})

it('fails if password policy is violated', () => {
cy.get('input[name="password"]').clear().type('123456')
cy.get('input[name="password"]').clear().type('12345678')
cy.get('button[value="password"]').click()
cy.get('*[data-testid^="ui/message"]').should(
'contain.text',
Expand Down Expand Up @@ -282,7 +282,7 @@ context('Settings failures with email profile', () => {

describe('global errors', () => {
it('fails when CSRF is incorrect', () => {
cy.get(appPrefix(app) + 'input[name="password"]').type('123456')
cy.get(appPrefix(app) + 'input[name="password"]').type('12345678')
cy.shouldHaveCsrfError({ app })
})

Expand Down
2 changes: 1 addition & 1 deletion test/e2e/cypress/integration/profiles/mfa/totp.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ context('2FA lookup secrets', () => {

it('should fail to set up totp if verify code is wrong', () => {
cy.visit(settings)
cy.get('input[name="totp_code"]').type('123456')
cy.get('input[name="totp_code"]').type('12345678')
cy.get('*[name="method"][value="totp"]').click()
cy.get('[data-testid="ui/message/4000008"]').should(
'contain.text',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ context('Mobile Profile', () => {
describe('show errors when invalid signup data is used', () => {
it('should show an error when the password has leaked before', () => {
cy.get('input[data-testid="traits.email"]').type(email)
cy.get('input[data-testid="password"]').type('123456')
cy.get('input[data-testid="password"]').type('12345678')
cy.get('input[data-testid="traits.website"]').type(website)
cy.get('div[data-testid="submit-form"]').click()

Expand Down

0 comments on commit d884fed

Please sign in to comment.