Skip to content

fix: page object selector not found#25624

Merged
seaona merged 1 commit intodevelopfrom
fix-page-object-login
Jul 2, 2024
Merged

fix: page object selector not found#25624
seaona merged 1 commit intodevelopfrom
fix-page-object-login

Conversation

@seaona
Copy link
Copy Markdown
Member

@seaona seaona commented Jul 2, 2024

Description

The e2e that are using page objects are failing due to this error: Waiting for element to be located By(xpath, .//*[contains(concat(' ', normalize-space(./@class), ' '), ' unlock-page__title ')][(contains(string(.), 'Welcome back!') or contains(string(.), 'Welcomeback!'))]).

It looks like the selector is not correct. This PR uses the data test id to find the correct element.

Explanation: this PR removed the css selector, and this other PR implemented page objects with the old selector -possibly the last PR was not updated, so the tests were green, but once the 2 have been merged, now this selector is not found and fails in the subsequent branches

ci failure here

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Screenshot from 2024-07-02 11-48-09

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

@seaona seaona requested a review from a team as a code owner July 2, 2024 09:53
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jul 2, 2024

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Jul 2, 2024

@seaona seaona self-assigned this Jul 2, 2024
@seaona seaona added the team-extension-platform Extension Platform team label Jul 2, 2024
@metamaskbot metamaskbot added the team-confirmations Push issues to confirmations team label Jul 2, 2024
@codecov
Copy link
Copy Markdown

codecov bot commented Jul 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.60%. Comparing base (b893161) to head (4c95bcb).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #25624   +/-   ##
========================================
  Coverage    69.60%   69.60%           
========================================
  Files         1364     1364           
  Lines        48172    48172           
  Branches     13291    13291           
========================================
  Hits         33526    33526           
  Misses       14646    14646           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [4c95bcb]
Page Load Metrics (155 ± 165 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint622671125124
domContentLoaded95628157
load411647155344165
domInteractive95628157
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@seaona seaona merged commit 1602a35 into develop Jul 2, 2024
@seaona seaona deleted the fix-page-object-login branch July 2, 2024 10:27
@github-actions github-actions bot locked and limited conversation to collaborators Jul 2, 2024
@metamaskbot metamaskbot added the release-12.2.0 Issue or pull request that will be included in release 12.2.0 label Jul 2, 2024
@seaona seaona added flaky tests and removed team-confirmations Push issues to confirmations team labels Jul 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

flaky tests release-12.2.0 Issue or pull request that will be included in release 12.2.0 team-extension-platform Extension Platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants