Skip to content

fix: find vote toasts by text in the slideover E2E - #19

Closed
roble wants to merge 1 commit into
mainfrom
dev-2026-10-31
Closed

roble wants to merge 1 commit into
mainfrom
dev-2026-10-31

Conversation

@roble

@roble roble commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

The slideover vote test failed in CI on every attempt (sc-1089). The feature works: the second vote removes the vote and shows "Vote removed". Sonner renders the newest toast first, so .last() picked the older "Upvoted!" toast.

The test now finds each toast by its text.

Verified: reproduced in a fresh saucebase new + roadmap install (3/3 failures before, 5/5 passes after); full roadmap suite 31/31 in the contributor workspace.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Tests
    • Updated automated voting-flow checks to reliably recognize the “Upvoted!” and “Vote removed” confirmation messages.

@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f0d19ddd-153b-4861-816f-61842409bf97
Commits

Reviewing files that changed from the base of the PR and between 5a6db34 and 2d4e77f.

Files selected for processing: 1
  • tests/e2e/tests/roadmap.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The slideover voting test now checks for “Upvoted!” and “Vote removed” by matching text within toast elements.

Changes: Voting Toast Assertions

Layer / File(s) Summary
Match voting toast text
tests/e2e/tests/roadmap.spec.ts
The test locates the “Upvoted!” toast by its text within a toast element. It applies the same text-matching approach to “Vote removed.”

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Possibly related PRs

Merge Risk: Minimal · up to 2d4e7

The voting test no longer relies on toast ordering. No actionable merge-blocking risk is identified; the change is mergeable after normal checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: locating slideover vote toasts by their text in the end-to-end test.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@sonarqubecloud

sonarqubecloud Bot commented Nov 1, 2026

Copy link
Copy Markdown

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