Closed Bug 1877096 Opened 5 months ago Closed 5 months ago

[wdspec] Traverse history tests can fail when the URL hasn't been updated yet

Categories

(Remote Protocol :: WebDriver BiDi, defect, P2)

defect
Points:
2

Tracking

(firefox123 fixed, firefox124 fixed)

RESOLVED FIXED
124 Branch
Tracking Status
firefox123 --- fixed
firefox124 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

Details

(Whiteboard: [webdriver:m10], [wptsync upstream])

Attachments

(2 files)

As of now the BiDi spec is a bit vague and implementations do not wait until the navigation to the page in browser history has actually started, but only until the history index has been set. As such the currently existing tests can fail especially for slow running builds where the URL hasn't been updated yet.

As such we should not run a single assertion only but use the Poll feature to wait until the URL is actually set.

Assignee: nobody → hskupin
Status: NEW → ASSIGNED

Until the command isn't completely specified and implemented
it doesn't await for the navigation to be completed. As such
the tests will have to temporarily await for it.

Depends on D199887

Points: --- → 2
Priority: -- → P2
Whiteboard: [webdriver:m10]
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f2762ac7ae9c
[wdspec] Fix AsyncPoll.until() to correctly await the result of the condition. r=webdriver-reviewers,jdescottes
https://hg.mozilla.org/integration/autoland/rev/5e806fd0138f
[wdspec] Improve tests for browsingContext.traverseHistory to wait for the expected URL. r=webdriver-reviewers,jdescottes
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/44286 for changes under testing/web-platform/tests
Whiteboard: [webdriver:m10] → [webdriver:m10], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch
Upstream PR merged by moz-wptsync-bot

Comment on attachment 9376984 [details]
Bug 1877096 - [wdspec] Fix AsyncPoll.until() to correctly await the result of the condition.

Beta/Release Uplift Approval Request

  • User impact if declined: None, test-only changes
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): No risk, the test now awaits for the URL to have changed.
  • String changes made/needed:
  • Is Android affected?: Yes
Attachment #9376984 - Flags: approval-mozilla-beta?
Attachment #9376985 - Flags: approval-mozilla-beta?

Comment on attachment 9376984 [details]
Bug 1877096 - [wdspec] Fix AsyncPoll.until() to correctly await the result of the condition.

Approved for 123 beta 8, thanks.

Attachment #9376984 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9376985 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: