Skip to content

Studio bookmarks test: click Follow link again when the click does not navigate - #16858

Merged
danielhanchen merged 1 commit into
mainfrom
ci-bookmark-follow-click-retry
Nov 6, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci-bookmark-follow-click-retry

Conversation

@danielhanchen

@danielhanchen danielhanchen commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Summary

Chat UI Tests on Windows fails now and then in tests/studio/playwright_browser_bookmarks.py, on the step that follows a link inside the browser panel's page. In the last day it hit main itself (run 42143788184, after #16856) and #16835 and #16758, none of which touch the browser panel:

FAIL Save, followed=True: Locator expected to have Value 'https://bookmark.test/followed'
Actual value: https://bookmark.test/first

The failure screenshot from the main run shows the typed page still loaded with "Follow link" on it. The click never produced a navigation, so the address bar stayed on the first page for the whole 5 s wait. The same Save and Enter cases pass in the same run and on the next run. All three failures were on the Windows lane. It looks like a click lost on a loaded Windows runner, not a regression: the page's link handler is installed before the page's own content, and the panel accepts the first same-tab navigation a page reports.

Change

tests/studio/playwright_browser_bookmarks.py only. A small follow_link helper clicks "Follow link" and waits 5 s for the address to change, as before. If it has not, and the address is still the typed page and the tab still says "Typed page", it clicks again, up to three clicks in total, and prints a line when it retries.

It does not retry if the address moved anywhere else, so a wrong navigation still fails at once. A second click cannot double a slow navigation either: once a page has reported a same-tab navigation the panel ignores any further one from it (left in page-frame.tsx). Every later assertion (bookmark contents, Back to the first page, Forward to the followed one) is unchanged, so a link that really stops navigating still fails after the third click.

Testing

  • A fake page and address bar drive follow_link through five cases: navigates on the first, second or third click (passes, 1/2/3 clicks), never navigates (fails after 3 clicks), lands on another page (fails after 1 click).
  • tests/studio/test_playwright_suites_run_in_ci.py: 9 passed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T02:00:00.970005Z cdb5b03 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: cdb5b03c09

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit d87c41c into main Nov 6, 2026
@danielhanchen
danielhanchen deleted the ci-bookmark-follow-click-retry branch November 6, 2026 02:31
danielhanchen added a commit that referenced this pull request Nov 6, 2026
… stops early (#16861)

## Summary

`Chat UI Tests (chat)` on Linux has started failing on unrelated PRs
with the same assertion in the floating monitor geometry check:

```
tests/studio/playwright_chat_ui.py:956, in exercise_floating_monitor_geometry
AssertionError: [ui] FAIL: resize width: expected 296, got 260
```

It failed 3 of the last 17 completed `Unsloth UI CI` runs (#16858, which
only touches the bookmarks test, plus `inprocess-native-tool-formats`
and `download-speed-limit`, the #16828 branch, which only touches
backend hub code). #16828 also hit it once more with `got 256`, and a
rerun passed. Playwright and Chromium are the same version (1.64.1) in
passing and failing runs, and nothing under `studio/frontend` merged in
the window where it started.

The numbers point at the pointer drag, not the resize logic. The check
drags the native grip with `mouse.move(..., steps = 10)` from 8 px
inside the corner to 40 px past it. 260 is 256 plus the first 4 px step,
and 256 is no step at all. So the native resize took at most the first
pointer step and dropped the rest. The same step passes in the other 14
runs on the same code.

## Change

`tests/studio/playwright_chat_ui.py`, the "resize width / height" step
only. The drag target is an absolute point, so if the box is not at the
wanted size after the drag, the test drags the grip again from wherever
the corner is now, up to three drags, and logs a line when it retries.
The width, height, left edge and top edge assertions after it are
unchanged, so a resize that really stops following the grip still fails
after the third drag.

## Testing

- `python -m py_compile tests/studio/playwright_chat_ui.py`.
- This PR's own `Unsloth UI CI` run exercises the step on Linux.
- I could not reproduce the dropped steps locally. The change only adds
the retry, so it cannot make a passing run fail.
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