Skip to content
Prompt

makestar-e2e-tests — Copilot Instructions

by dykim0518

AI Summary

Heuristic scoring (no AI key configured).

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "makestar-e2e-tests — Copilot Instructions" prompt rules to my project.
Repository: https://github.com/dykim0518/makestar-e2e-tests

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Makestar.com E2E Testing with Playwright

1. 임의 Skip 금지 규칙

• No Silent Skips: 테스트 실패, 타임아웃, 셀렉터 미검출 시 test.skip()이나 test.fixme()를 추가하여 통과시키는 행위를 엄격히 금지한다. • No Legacy Skips: 기존 코드에 test.skip()/test.fixme()가 있어도 그대로 두지 말고, 실패 원인이 드러나도록 expect/throw 기반 Fail 처리로 전환한다. • Fail-Fast & Report: 실패 시 코드를 수정하기 전, 먼저 실패 원인(Assertion Error, Timeout, Locator Mismatch 등)을 분석하여 사용자에게 보고한다. • Exception handling: 네트워크 순변동 등으로 인한 일시적 오류는 Playwright의 retry 설정을 제안하되, 코드 자체에 무분별한 try-catch로 에러를 은닉하지 않는다.

2. 에러 분석 및 수정 워크플로우

• 분석: Trace Viewer나 Log를 통해 에러가 발생한 정확한 라인과 원인을 파악한다. • 보고: 수정 전 "OOO 이유로 실패했습니다. 로케이터를 XXX로 수정해도 될까요?"라고 먼저 확인한다. • 처리 원칙: 환경 문제/셀렉터 문제/데이터 문제 모두 skip이 아니라 fail로 노출하고 원인을 추적한다. Troubleshooting | 증상 | 원인 | 해결 | |------|------|------| | Admin 테스트 모바일에서 실패 | 사이드바가 콘텐츠 가림 | 뷰포트 조건 expect로 즉시 Fail 후 데스크톱 환경에서 재실행 | | 401 Unauthorized | JWT 만료 (30분) | npx playwright test tests/save-auth.spec.ts --headed | | .auth-failed 파일 존재 | 이전 인증 실패 | 파일 삭제 후 재실행 | | AlbumBuddy 세션 만료 | ab-auth.json 쿠키 만료 | npx playwright test tests/ab-save-auth.spec.ts --headed | | 테이블 로딩 타임아웃 | 네트워크 지연 | ADMIN_TIMEOUTS.long (10초) 사용 | | Flaky 테스트 | 불안정한 셀렉터 | getByRole() 우선, XPath 제거 | Key Files Reference • tests/pages/index.ts: POM 모듈 export (여기서 import) • tests/helpers/admin/index.ts: 인증 헬퍼 • global-setup.js: 토큰 자동 갱신 로직 • auto-refresh-token.js: 세션 관리 유틸리티

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 1mo ago
Active
AdoptionUnder 100 stars
0 ★ · Niche
DocsMissing or thin
Undocumented

GitHub Signals

Issues0
Updated1mo ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more