Skip to content

test(e2e-desktop): fix swap webview race condition#15624

Open
martijnhjk wants to merge 1 commit intodevelopfrom
support/qaa-fix-36
Open

test(e2e-desktop): fix swap webview race condition#15624
martijnhjk wants to merge 1 commit intodevelopfrom
support/qaa-fix-36

Conversation

@martijnhjk
Copy link
Contributor

@martijnhjk martijnhjk commented Mar 20, 2026

test(e2e-desktop): get the specific webview

✅ Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • ...

📝 Description

Avoid calling function on undefined webview and improve readability.

Should address https://github.com/LedgerHQ/qaa-flaky-tests/issues/36

Regression 4.0 ENABLED:
Build: https://github.com/LedgerHQ/ledger-live/actions/runs/23352766676
Report:

Regression 4.0 DISABLED:
Build: https://github.com/LedgerHQ/ledger-live/actions/runs/23352794637
Report: https://ledger-live.allure.green.ledgerlabs.net/allure/reports/18c510c8-7872-49b9-a732-f99669bc0acd/

❓ Context


🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.
  • Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

@martijnhjk martijnhjk marked this pull request as ready for review March 20, 2026 15:23
@martijnhjk martijnhjk requested a review from a team as a code owner March 20, 2026 15:23
Copilot AI review requested due to automatic review settings March 20, 2026 15:23
@github-actions
Copy link
Contributor

github-actions bot commented Mar 20, 2026

Web Tools Build Status

Build Status Deployment
Web Tools Build ⏭️ Skipped
Native Storybook Build ⏭️ Skipped
React Storybook Build ⏭️ Skipped

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the desktop E2E Swap page object to avoid a webview selection race by retrieving the Swap-specific webview via the shared WebViewAppPage.getWebView() helper, improving stability and readability in the affected assertion.

Changes:

  • Remove an unused Swap drawer locator (swapId) from SwapPage.
  • Update checkAssetTo to use getWebView() (Swap-identified webview) and simplify the expected text assertion logic.

@martijnhjk martijnhjk force-pushed the support/qaa-fix-36 branch 2 times, most recently from 6201b97 to 8d1cbae Compare March 20, 2026 16:09
Copilot AI review requested due to automatic review settings March 20, 2026 16:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

test(e2e-desktop): get the specific webview

test(e2e-desktop): this param is not used

test(e2e-desktop): improve code consistency

test(e2e-desktop): simplify and improve readability

test(e2e-desktop): update step for report
Copilot AI review requested due to automatic review settings March 20, 2026 16:31
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
5.4% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

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