Skip to content
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

[Feature] NotFound(404) 페이지를 구현하라 #216

Merged
merged 5 commits into from
Jul 7, 2021

Conversation

saseungmin
Copy link
Collaborator

@saseungmin saseungmin commented Jul 7, 2021

  • 404 페이지를 위한 e2e 테스트 시나리오를 작성하라
    • 존재하지 않는 페이지로 이동한 경우
    • 존재하지 않는 페이지에서 "홈으로" 버튼을 클릭한 경우
  • NotFound(404) 페이지를 구현하라
    • 공통 ErrorScreenTemplate를 구현
    • NotFoundPage 구현
    • 404 이미지를 만듬
  • ErrorBoundary를 적용하고 NotFoundPage를 적용 및 알 수 없는 오류 발생시 Unknown Error 페이지 적용
  • matchMedia 의존성으로 인한 테스트 수정
    • import '../../util/__mocks__/matchMedia'; 추가

image

- 존재하지 않는 페이지로 이동한 경우
- 존재하지 않는 페이지에서 "홈으로" 버튼을 클릭한 경우
- 공통 ErrorScreenTemplate를 구현
- NotFoundPage 구현
- 404 이미지를 만듬
- SetNotFound, resetError 액션 구현
- useNotFound 커스텀 훅 구현
- ErrorBoundary를 적용하고 NotFoundPage를 적용 및 알수없는 오류 발생시 Unknown Error 페이지 적용
- App에 ErrorBoundary 적용 및 HeaderContainer 삭제
- matchMedia 의존성으로 인한 테스트 수정
    - `import '../../util/__mocks__/matchMedia';` 추가
- Login, Main, Register, Write 페이지에 HeadCotainer 추가
@saseungmin saseungmin added the enhancement New feature or request label Jul 7, 2021
@saseungmin saseungmin changed the title [e2e:Test] 404 페이지를 위한 e2e 테스트 시나리오를 작성하라 #216 [Feature] NotFound(404) 페이지를 구현하라 Jul 7, 2021
@saseungmin saseungmin linked an issue Jul 7, 2021 that may be closed by this pull request
@saseungmin saseungmin merged commit cc64188 into CodeSoom:main Jul 7, 2021
@saseungmin saseungmin deleted the implement-not-found-page branch July 7, 2021 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🦄 404 페이지 구현하기
1 participant