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

[Test] Main 페이지 로그인/비로그인 테스트 코드 작성 #442

Merged

Conversation

ttaerrim
Copy link
Member

@ttaerrim ttaerrim commented Dec 12, 2023

설명

  • [REFACTOR] auth-refactor에 맞춰 프론트 코드 리팩토링 #440
  • 로그인/비로그인 시 메인 페이지에서 다른 페이지에 접근하는 e2e 테스트 작성
  • 로그인 시 테스트는 cypress.config.ts 파일의 ACCESS_TOKEN에 토큰을 직접 넣어 실행해야 함.
    • CI는 어떻게 할지 고민이네요
      import { defineConfig } from 'cypress';
      
      export default defineConfig({
        e2e: {
          baseUrl: 'http://localhost:5173',
          setupNodeEvents(on, config) {
            // implement node event listeners here
          },
        },
        env: {
          ACCESS_TOKEN: '', // 여기에 토큰 필요
        },
      });
  • 테스트가 필요한 html tag에 data-cy="" 속성을 추가함.
    • 추후 빌드 시 data-cy를 뺄 수 있는 방법이 있는지 찾아보면 좋을 듯.

완료한 기능 명세

  • e2e test 작성

스크린샷

기능 작업에 대한 스크린샷/화면 녹화 있을 경우 첨부하기

image

리뷰 요청 사항

특별히 리뷰해 주었으면 하는 부분, 고민되는 부분 기재하기

@ttaerrim ttaerrim added ✨ enhancement 개선 또는 피드백 반영 🎨 Front-end ✅ Test labels Dec 12, 2023
@ttaerrim ttaerrim self-assigned this Dec 12, 2023
@ttaerrim ttaerrim changed the base branch from develop to feature/auth-refactor December 12, 2023 02:55
@ttaerrim ttaerrim marked this pull request as ready for review December 12, 2023 04:13
@ttaerrim ttaerrim changed the title 440 login e2e [Test] Main 페이지 로그인/비로그인 테스트 코드 작성 Dec 12, 2023
@ttaerrim ttaerrim merged commit 406a2d3 into boostcampwm2023:feature/auth-refactor Dec 12, 2023
@ttaerrim ttaerrim deleted the 440-login-e2e branch December 12, 2023 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement 개선 또는 피드백 반영 🎨 Front-end ✅ Test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant