Closed Bug 1886114 Opened 1 year ago Closed 1 year ago

Perma [Tier 2 a11y only] TEST-UNEXPECTED-PASS | browser/components/firefoxview/tests/browser/browser_opentabs_more.js | We expect at least one assertion to fail because this test file is marked as fail-if in the manifest. -

Categories

(Firefox :: Firefox View, defect, P5)

defect

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox124 --- unaffected
firefox125 --- unaffected
firefox126 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: ayeddi)

References

(Regression)

Details

(Keywords: intermittent-failure, intermittent-testcase, regression)

Attachments

(1 file)

Filed by: smolnar [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=451230967&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/a6ftMF9BT-mJluVJBgVklg/runs/0/artifacts/public/logs/live_backing.log


TEST-PASS | browser/components/firefoxview/tests/browser/browser_opentabs_more.js | One about:blank tab open at the end up test cleanup - ["data:,Window0-Tab0"] deepEqual ["data:,Window0-Tab0"] - 
[task 2024-03-19T06:40:27.491Z] 06:40:27     INFO - Leaving test bound toggle_show_more_link
[task 2024-03-19T06:40:27.491Z] 06:40:27     INFO - Console message: 1710830427159	FirefoxView.TabsSetup	DEBUG	updateViewVisibility for instance: 9393884, visibility: hidden
[task 2024-03-19T06:40:27.492Z] 06:40:27     INFO - Console message: 1710830427159	FirefoxView.TabsSetup	DEBUG	Resetting timestamp and tabs pending flags as there are no visible views
[task 2024-03-19T06:40:27.493Z] 06:40:27     INFO - Console message: 1710830427159	FirefoxView.TabsSetup	DEBUG	updateViewVisibility for instance: 7696908, visibility: hidden
[task 2024-03-19T06:40:27.494Z] 06:40:27     INFO - Console message: 1710830427159	FirefoxView.TabsSetup	DEBUG	Resetting timestamp and tabs pending flags as there are no visible views
[task 2024-03-19T06:40:27.494Z] 06:40:27     INFO - Buffered messages finished
[task 2024-03-19T06:40:27.495Z] 06:40:27     INFO - TEST-UNEXPECTED-PASS | browser/components/firefoxview/tests/browser/browser_opentabs_more.js | We expect at least one assertion to fail because this test file is marked as fail-if in the manifest. - 
[task 2024-03-19T06:40:27.496Z] 06:40:27     INFO - TEST-INFO | expected FAIL
[task 2024-03-19T06:40:27.497Z] 06:40:27     INFO - GECKO(1062) | MEMORY STAT | vsize 20169MB | residentFast 615MB | heapAllocated 428MB
[task 2024-03-19T06:40:27.498Z] 06:40:27     INFO - TEST-OK | browser/components/firefoxview/tests/browser/browser_opentabs_more.js | took 3408ms

@Sam, hi could you take a look at these perma failures?
I think they are caused by latest patches in bug 1877678

Flags: needinfo?(sfoster)
Summary: Perma [Tier 2] TEST-UNEXPECTED-PASS | browser/components/firefoxview/tests/browser/browser_opentabs_more.js | We expect at least one assertion to fail because this test file is marked as fail-if in the manifest. - → Perma [Tier 2 a11y only] TEST-UNEXPECTED-PASS | browser/components/firefoxview/tests/browser/browser_opentabs_more.js | We expect at least one assertion to fail because this test file is marked as fail-if in the manifest. -
Flags: needinfo?(ayeddi)

Ah yeah I think the test that fails a11y got moved to browser_opentabs_more.js in the patch on bug 1877678. I did add the fail-if = ["a11y_checks"] for the new file and I just need to remove it from the old entry.

It looks like bug 1877678 hasn't merged yet. I can update that patch or do a fast follow on this bug :smolnar?

Flags: needinfo?(sfoster) → needinfo?(smolnar)

Unfortunately, bug 1877678 has just been merged so you can craft a patch on this bug

Flags: needinfo?(smolnar)
Flags: needinfo?(ayeddi)

Actually, :ayeddi do you know what is going on here? AFAICT the fail-if = ["a11y_checks"] we had on browser_opentabs_cards.js was for the task that clicks the "view more" button. And in bug 1877678 I moved that test to a new file called browser_opentabs_more.js and took the fail-if with it, and removed the directive from the browser_opentabs_cards.js. There was no functional changes to the test itself, just moving it and giving it a longer timeout. So I'm confused now that I'm getting:

browser/components/firefoxview/tests/browser/browser_opentabs_more.js
  UNEXPECTED-PASS We expect at least one assertion to fail because this test file is marked as fail-if in the manifest
Flags: needinfo?(ayeddi)

Set release status flags based on info from the regressing bug 1877678

(In reply to Sam Foster [:sfoster] (he/him) from comment #4)

Actually, :ayeddi do you know what is going on here? AFAICT the fail-if = ["a11y_checks"] we had on browser_opentabs_cards.js was for the task that clicks the "view more" button. And in bug 1877678 I moved that test to a new file called browser_opentabs_more.js and took the fail-if with it, and removed the directive from the browser_opentabs_cards.js. There was no functional changes to the test itself, just moving it and giving it a longer timeout. So I'm confused now that I'm getting:

browser/components/firefoxview/tests/browser/browser_opentabs_more.js
  UNEXPECTED-PASS We expect at least one assertion to fail because this test file is marked as fail-if in the manifest

Interestingly, the updated version of the Show More link activation has resolved the issue that was there before: the link used to be clicked when it still had hidden attribute on - probably, right before it was rendered as shown/un-hidden, since the test harness is moving too fast. In this updated case, all the instances of the Show More links being clicked while they are visible and, therefore, accessible for the Accessibility API. We could safely remove the fail-if since it's working now as expected!

Flags: needinfo?(ayeddi)

the updated version of the Show More link activation has resolved the issue that was there before: the link used to be clicked when it still had hidden attribute on - probably, right before it was rendered as shown/un-hidden, since the test harness is moving too fast. In this updated case, all the instances of the Show More links being clicked while they are visible and, therefore, accessible for the Accessibility API. We could safely remove the fail-if since it's working now as expected

Assignee: nobody → ayeddi
Status: NEW → ASSIGNED

sent a patch for that :) I like when a11y checks are fixed

Pushed by ayeddi@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4b4f12e6b4af Remove fail-if notation from the Firefox View test passing a11y-checks. r=sfoster,fxview-reviewers
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: