Fix "update" tasks in browser_creditCard_doorhanger.js
Categories
(Toolkit :: Form Autofill, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox101 | --- | fixed |
People
(Reporter: tgiles, Assigned: sabina.zaripova, Mentored)
References
Details
(Keywords: good-first-bug)
Attachments
(2 files)
There are a few tasks in browser_creditCard_doorhanger.js
that use the update panel instead of the save panel. However, due to the secondary button of the update panel, these tests are waiting for the "add" storage event, instead of waiting for an "update" and/or "notifyUsed" storage event. Since the update panel doesn't have a "do nothing" action, unlike the save panel, these tests should be updated.
Here are the list of tasks that need to be updated:
test_update_third_party_creditCard_logo
test_update_generic_creditCard_logo
These tests will need the following fixes:
- change
await clickDoorhangerButton(SECONDARY_BUTTON)
toawait clickDoorhangerButton(MAIN_BUTTON)
- change
let onChanged = awaitForStorageChangedEvents("add")
tolet onChanged = awaitForStorageChangedEvents("update")
- We might need this to be
("update", "notifyUsed")
but I'm not 100% sure, should try combinations of these two and see what works and fails
- We might need this to be
Reporter | ||
Updated•3 years ago
|
Comment 1•3 years ago
|
||
Hey, Tim is anyone working on this bug? also how could I reproduce the error and ill try to work out where the file is. If no one is working on it I can give it a go.
Updated•3 years ago
|
Reporter | ||
Comment 3•3 years ago
|
||
(In reply to samuraix221 from comment #1)
Hey, Tim is anyone working on this bug? also how could I reproduce the error and ill try to work out where the file is. If no one is working on it I can give it a go.
I was out of the office, but in the future feel free to attach a patch to a bug if there's no patch already assigned and no assignee. Submitting a patch to a bug will assign you to it as you can see from the Phabricator Automation on this bug. Sorry about that.
Reporter | ||
Updated•3 years ago
|
Updated•3 years ago
|
Comment 6•3 years ago
|
||
bugherder |
Description
•