Skip to content

test(desktop-e2e): accept "just now" on channel link tooltips - #51

Merged
adrienlacombe merged 1 commit into
mainfrom
cursor/channel-tooltip-just-now-ca4b
Aug 21, 2026
Merged

test(desktop-e2e): accept "just now" on channel link tooltips#51
adrienlacombe merged 1 commit into
mainfrom
cursor/channel-tooltip-just-now-ca4b

Conversation

@adrienlacombe

Copy link
Copy Markdown
Owner

Summary

Desktop Smoke E2E (4) went red on main after #50 because the channel-link tooltip footer can render Active just now when activity is recent. The assertion only allowed Active \d+[mhdw] ago.

This mirrors the message-chip regex already in the same spec:

/#general · .+ · (just now|\d+[mhdw] ago)/

so the channel tooltip now accepts:

/Public channel · Active (just now|\d+[mhdw] ago)/

Both themes (buzz and catppuccin-mocha) share that assertion. No product behavior change.

Related issue

N/A. None found. Fixes the Desktop Smoke E2E (4) failure on CI run 32482527983 after #50.

Testing

  • Tight regex-only change in desktop/tests/e2e/tooltip-semantics.spec.ts.
  • No bitcoinmarkets:// / MESSAGE_LINK_SCHEME edits.
  • Please wait for Desktop Smoke E2E to go green before merging. Do not merge until CI is green.

Walkthrough

The failing expect was the first expectMutedSupportingText in link tooltip supporting text uses the muted secondary foreground. The UI rendered Public channel · Active just now; the regex now allows that form the same way the following message-chip assertion already does.

Open in Web Open in Cursor 

The channel-tooltip assertion required `Active \d+[mhdw] ago`, so both
themes failed when activity was recent enough to render `Active just
now`. Mirror the message-chip regex already in the same spec.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: Adrien Lacombe <adrienlacombe@users.noreply.github.com>
@adrienlacombe
adrienlacombe merged commit 92fb40b into main Aug 21, 2026
28 checks passed
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.

2 participants