-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
로그인 로직 검증
- Loading branch information
Showing
1 changed file
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/'); | ||
}); | ||
}); |