Skip to content

end2end tests: identify Chrome to Wikipedia and fix visited marks checks - #539

Merged
karlicoss merged 1 commit into
masterfrom
fix/ci-failures-2026-10-30
Oct 31, 2026
Merged

karlicoss merged 1 commit into
masterfrom
fix/ci-failures-2026-10-30

Conversation

@karlicoss

Copy link
Copy Markdown
Owner

Since October 2026 Wikipedia intermittently responds to headless Chrome on CI with 429 Too many requests (Firefox isn't affected), so test_show_visited_marks couldn't find the links on the page. Append an identifying suffix to Chrome's user agent as per https://meta.wikimedia.org/wiki/User-Agent_policy, since compliant user agents are supposed to get more lenient rate limits.

In test_show_visited_marks, wait for all indexed links to acquire promnesia-visited (the old condition waited for marks to be absent), and check that no other links on the page get marked.

Since October 2026 Wikipedia intermittently responds to headless Chrome on CI with `429 Too many requests` (Firefox isn't affected), so `test_show_visited_marks` couldn't find the links on the page.
Append an identifying suffix to Chrome's user agent as per https://meta.wikimedia.org/wiki/User-Agent_policy, since compliant user agents are supposed to get more lenient rate limits.

In `test_show_visited_marks`, wait for all indexed links to acquire `promnesia-visited` (the old condition waited for marks to be absent), and check that no other links on the page get marked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@karlicoss
karlicoss merged commit a152879 into master Oct 31, 2026
27 checks passed
@karlicoss
karlicoss deleted the fix/ci-failures-2026-10-30 branch October 31, 2026 16:25
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