반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- http3
- 비동기
- CSS
- vue
- web vital
- CloudFlare
- TLS
- vue3
- import.meta.env
- e2e
- devtools
- QUIC
- Cypress
- 선택자
- svelte
- ViTE
- SSR
- custom command
- caching
- https
- vue-cli
- JavaScript
- api test
- typeScript
- ts error
- rendering
- aws
- msw
- Testing
- csr
Archives
- Today
- Total
목록Component (1)
Develop Note by J.S.
[Cypress] Api Test
Cypress에서 로그인 버튼 클릭 시 API 요청 및 응답에 대한 E2E Test 및 Component Test 예제를 작성하였습니다. 1. Cypress API TEST 종류 Cypress의 API TEST는 Spying과 Spying & Stubbing 및 Dynamic Stubbing 이 있습니다. // spying cy.intercept('/users/**') cy.intercept('GET', '/users*') cy.intercept({ method: 'GET', url: '/users*', hostname: 'localhost', }) // spying and response stubbing cy.intercept('POST', '/users*', { statusCode: 201, body..
FrontEnd/Cypress
2023. 7. 12. 16:13