Skip to content

Commit

Permalink
add: cypress test
Browse files Browse the repository at this point in the history
로그인 로직 검증
  • Loading branch information
esthel7 committed Aug 12, 2024
1 parent 5cc8dd8 commit 76f780b
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions cypress/e2e/spec.cy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
describe('template spec', () => {
it('passes', () => {
cy.visit('https://example.cypress.io');
describe('Login', () => {
it('Wrong Uswer', () => {
cy.visit('http://localhost:3000/signin');
cy.get('#email').type('[email protected]');
cy.get('#password').type('123123');
cy.get('#signin').click();
cy.contains('아이디와 비밀번호를 다시 입력해주세요.');
});

it('Right Uswer', () => {
cy.visit('http://localhost:3000/signin');
cy.get('#email').type('[email protected]');
cy.get('#password').type('testtest');
cy.get('#signin').click();
cy.url().should('eq', 'http://localhost:3000/');
});
});

0 comments on commit 76f780b

Please sign in to comment.