Skip to content

Feat/sign up form test #75

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

Feat/sign up form test #75

wants to merge 8 commits into from

Conversation

dvlpDana
Copy link
Contributor

feat/sign-up-form-test

๐Ÿ”˜Part

  • sign-up-form-test code ์ž‘์„ฑ

๐Ÿ”Ž ์ž‘์—… ๋‚ด์šฉ

  • ๋ชจ๋“  ์ž…๋ ฅ ํ•„๋“œ๊ฐ€ data-testid ์†์„ฑ์œผ๋กœ ๋ Œ๋”๋ง๋˜๋Š”์ง€ ํ™•์ธ

  • ์ž˜๋ชป๋œ ์ž…๋ ฅ๊ฐ’์„ ์ž…๋ ฅํ–ˆ์„ ๋•Œ onValidChange๊ฐ€ false๋กœ ํ˜ธ์ถœ๋˜๋Š”์ง€ ๊ฒ€์ฆ

  • ์ฃผ์†Œ ๊ฒ€์ƒ‰ ๋ชจ๋‹ฌ์„ ์—ด๊ณ  ์ฃผ์†Œ๋ฅผ ์„ ํƒํ–ˆ์„ ๋•Œ postalCode์™€ streetAddress ํ•„๋“œ๊ฐ€ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์—…๋ฐ์ดํŠธ๋˜๋Š”์ง€ ํ™•์ธ


์ด๋ฏธ์ง€ ์ฒจ๋ถ€

image

๐Ÿ”ง ์•ž์œผ๋กœ์˜ ๊ณผ์ œ

  • play wright๋กœ ํ†ตํ•ฉ ํ…Œ์ŠคํŠธ ์ฝ”๋“œ ์ž‘์„ฑ

@dvlpDana dvlpDana requested review from 2scent and yoo94 October 31, 2024 09:59
@dvlpDana dvlpDana self-assigned this Oct 31, 2024
Copy link

@dowookims dowookims left a comment

Choose a reason for hiding this comment

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

LGTM ๐Ÿ‘

__esModule: true,
default: ({ onComplete }: { onComplete: (data: PostAddress) => void }) => (
<div data-testid="daum-postcode">
<button onClick={() => onComplete({ zonecode: '12345', address: 'Seoul, Korea' })}>

Choose a reason for hiding this comment

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

zoneCode์™€ Seoul, Korea๋Š” ์ƒ์ˆ˜ ๋ณ€์ˆ˜๋กœ ๊ด€๋ฆฌํ•ด์ฃผ๋ฉด ์ข‹์„๊ฒƒ ๊ฐ™์•„์š”

Comment on lines +45 to +58
it('renders all input fields with appropriate data-testid attributes', () => {
render(<SignUpForm onSubmit={mockOnSubmit} onValidChange={mockOnValidChange} />);
const fields = [
'name',
'email',
'password',
'confirmPassword',
'phone',
'postalCode',
'streetAddress',
'detailAddress',
];
fields.forEach((testId) => expect(screen.getByTestId(testId)).toBeInTheDocument());
});

Choose a reason for hiding this comment

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

์ž๋ช…ํ•œ ๊ฒƒ์€ ๊ผญ ๋‹ค ๋„ฃ์ง€ ์•Š์•„๋„ ๋ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค..!

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.

3 participants