Skip to content

Commit

Permalink
Merge pull request #122 from KOSASIH/deepsource-transform-1e262ea6
Browse files Browse the repository at this point in the history
style: format code with Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf
  • Loading branch information
KOSASIH authored May 10, 2024
2 parents e5c3546 + e24dcbf commit 19ffc31
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions test/e2e/user.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,30 @@

describe('User Feature', () => {
beforeEach(() => {
cy.visit('/');
});
cy.visit('/')
})

it('should register a new user', () => {
cy.get('[data-testid="register-button"]').click();
cy.get('[data-testid="first-name-input"]').type('John');
cy.get('[data-testid="last-name-input"]').type('Doe');
cy.get('[data-testid="email-input"]').type('[email protected]');
cy.get('[data-testid="password-input"]').type('password123');
cy.get('[data-testid="register-form-button"]').click();
cy.get('[data-testid="welcome-message"]').should('contain', 'Welcome, John Doe');
});
cy.get('[data-testid="register-button"]').click()
cy.get('[data-testid="first-name-input"]').type('John')
cy.get('[data-testid="last-name-input"]').type('Doe')
cy.get('[data-testid="email-input"]').type('[email protected]')
cy.get('[data-testid="password-input"]').type('password123')
cy.get('[data-testid="register-form-button"]').click()
cy.get('[data-testid="welcome-message"]').should(
'contain',
'Welcome, John Doe'
)
})

it('should login a user', () => {
cy.get('[data-testid="login-button"]').click();
cy.get('[data-testid="email-input"]').type('[email protected]');
cy.get('[data-testid="password-input"]').type('password123');
cy.get('[data-testid="login-form-button"]').click();
cy.get('[data-testid="welcome-message"]').should('contain', 'Welcome, John Doe');
});
});
cy.get('[data-testid="login-button"]').click()
cy.get('[data-testid="email-input"]').type('[email protected]')
cy.get('[data-testid="password-input"]').type('password123')
cy.get('[data-testid="login-form-button"]').click()
cy.get('[data-testid="welcome-message"]').should(
'contain',
'Welcome, John Doe'
)
})
})

0 comments on commit 19ffc31

Please sign in to comment.