Skip to content

test(e2e): poll the URL a localized refresh lands on - #982

Merged
owjs3901 merged 1 commit into
mainfrom
test/landing-redirect-poll
Nov 17, 2026
Merged

owjs3901 merged 1 commit into
mainfrom
test/landing-redirect-poll

Conversation

@owjs3901

Copy link
Copy Markdown
Contributor

Summary

#977에서 리다이렉트되는 locale 경로를 waitForURL(target, { waitUntil: 'load' })로 따라가게 했는데, Next 모드(Landing dev navigation tests (Next))에서는 /ko의 HTML refresh가 한국어 문서를 load 전에 중단시킵니다. 이 경우 waitForURL이 net::ERR_ABORTED; maybe frame was detached?로 바로 실패합니다. #925, #957, #964, #978에서 같은 실패가 났습니다.

  • waitForURL 대신 expect(page).toHaveURL(target)로 URL을 폴링합니다. 중단된 navigation에도 실패하지 않습니다.
  • 나머지 흐름(빈 문서를 거쳐 target을 networkidle로 다시 열고 overlay·main·테마 토글·콘솔 오류 검사)은 그대로입니다.

Test plan

  • prettier
  • CI landing-next-e2e (Next 모드)와 vinext 모드

🤖 Generated with Claude Code

In Next dev mode the HTML refresh can abort the localized document before
it loads, and waitForURL then fails with net::ERR_ABORTED. Poll the page
URL instead, which survives an aborted navigation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@owjs3901
owjs3901 merged commit 2ea6a46 into main Nov 17, 2026
27 checks passed
@owjs3901
owjs3901 deleted the test/landing-redirect-poll branch November 17, 2026 02:31
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.

1 participant