Skip to content

cypress basic 과제 제출 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

cos18
Copy link

@cos18 cos18 commented Jun 23, 2021

No description provided.

@cos18 cos18 requested a review from hyo-choi June 23, 2021 14:54
@cos18 cos18 self-assigned this Jun 23, 2021
Copy link

@hyo-choi hyo-choi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

과제 진행하시느라 고생 많으셨습니다! 👍

it('doesn\'t increase over 12', () => {
cy.get('.plus-button').click()
.get('.count-display').should('have.value', 12);
cy.get('.plus-button').click().click().click()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이렇게 클릭만 여러 번 해서 테스팅하는 방법은 생각을 못 해봤는데 좋은 방법인 것 같아요! 배워갑니다 😄

Comment on lines +18 to 21
"scripts": {
"build": "yarn tsc --watch",
"test": "yarn cypress open"
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 부분도 배워갑니다! 저도 적용해 봐야겠어요.

Comment on lines +2 to +3
let countValue = 10;
let countDisplay: HTMLInputElement | null;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

countValuecountDisplay.value를 따로 다루신 이유가 있을까요?
CountDisplay 요소가 input 속성이라 요소의 value를 임의로 바꿀 수 있는데, 이 경우에는 변경된 값이 반영되지 않습니다. 이런 케이스에 대해서는 어떻게 생각하시는지 궁금합니다!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants