Skip to content

[WV-2599] Fix fragile styled-components selector in FAQ page title Element#4833

Draft
tarunramireddy wants to merge 3 commits into
wevote:developfrom
tarunramireddy:fix/faq-regression-fixes
Draft

[WV-2599] Fix fragile styled-components selector in FAQ page title Element#4833
tarunramireddy wants to merge 3 commits into
wevote:developfrom
tarunramireddy:fix/faq-regression-fixes

Conversation

@tarunramireddy

@tarunramireddy tarunramireddy commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

What github.com/wevote/WebApp/issues does this fix?

WV-2599 — Regression run failure analysis and fixes for FAQ, Terms page, and VerifyCount

Changes included this pull request?

  • FAQ: Replace fragile styled-components auto-generated class selector (.kkIyuQ) with stable text selector (h1=Frequently Asked Questions) in faq.browser.js
  • Terms: Add missing getTermsLinkElement getter (#footerLinkTermsOfUse) in ready.browser.js; add pageContentTitleText getter in privacy.browser.js; fix it.only → it in TermsPage.browser.js so all 3 tests run
  • VerifyCount: Remove incorrect driver.switchWindow() calls — value pages use SPA in-page navigation (same tab, no new window); remove duplicate class body in ready.browser.js that had a broken login() using #emailVerifyButton instead of #phoneVerifyButton; add window.scrollTo(0,0) and waitForClickable(30s) before sign-out avatar click in endorsers tests

…ement

Replace auto-generated CSS class .kkIyuQ with stable text-based selector
so the test does not break when styled-components regenerates class names
on each build.
Copilot AI review requested due to automatic review settings June 6, 2026 17:23
@tarunramireddy tarunramireddy marked this pull request as draft June 6, 2026 17:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the FAQ page object to locate the page title using a more semantic selector rather than a generated CSS class.

Changes:

  • Replaces a CSS class selector for the FAQ page title with an element/text-based selector.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/browserstack_automation/page_objects/faq.browser.js
- Remove it.only from verifyGitHubLinkRedirected so all three tests run
- Add missing getTermsLinkElement getter to ReadyPage using #footerLinkTermsOfUse
- Add missing pageContentTitleText getter to PrivacyPage using stable h1 text selector
- Remove driver.switchWindow() calls for in-page SPA navigation (value pages open in same tab, not new window)
- Add window.scrollTo(0,0) before avatar sign-out click in endorsers tests (page is deeply scrolled after scrollIntoView on showMoreItemsId)
- Use waitForClickable with 30s timeout for avatar after endorsers section (OrganizationList re-render after loading all endorsers takes longer than default 10s)
- Remove duplicate class body from ready.browser.js that contained a broken login() using #emailVerifyButton instead of #phoneVerifyButton
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