Closed Bug 833745 Opened 12 years ago Closed 11 years ago

Mozmill test for installing and uninstalling a soft-blocklisted extension

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect, P2)

defect

Tracking

(firefox23 fixed, firefox24 fixed, firefox25 fixed, firefox26 fixed, firefox-esr17 fixed)

RESOLVED FIXED
Tracking Status
firefox23 --- fixed
firefox24 --- fixed
firefox25 --- fixed
firefox26 --- fixed
firefox-esr17 --- fixed

People

(Reporter: andrei, Assigned: cosmin-malutan)

References

Details

(Whiteboard: [sprint2013-33])

Attachments

(3 files, 3 obsolete files)

A followup to bug 684679 which only tests Hard-Blocked extesnions. This test should be very similar, but test a Soft-Blocked extension.
Whiteboard: [sprint2013-33]
Assignee: nobody → cosmin.malutan
Attached patch patch_v1.0.patch (obsolete) — Splinter Review
As in bug 684679, tests will install an addon and will: -set extensions.blockedlist.url to a local file in which addon is set as blocked -open Blocklist window, check if addon is softblocked -uncheck the disabled checkbox so addon will still be enabled -uninstall the addon. Reports: http://mozmill-crowd.blargon7.com/#/functional/report/b3aefd29a5c41bda1cc43616d376d9ff http://mozmill-crowd.blargon7.com/#/functional/report/b3aefd29a5c41bda1cc43616d376c45c http://mozmill-crowd.blargon7.com/#/functional/report/b3aefd29a5c41bda1cc43616d37fe783
Attachment #782999 - Flags: review?(andreea.matei)
Status: NEW → ASSIGNED
Priority: -- → P2
Comment on attachment 782999 [details] [diff] [review] patch_v1.0.patch Review of attachment 782999 [details] [diff] [review]: ----------------------------------------------------------------- ::: data/addons/blocklist/softblock_extension/blocklist.xml @@ +6,1 @@ > <targetApplication id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"> We don't need this change since we're using another addon which has the right properties to be softblocked. ::: lib/ui/addons_blocklist.js @@ +104,5 @@ > nodeCollector.queryNodes(".softBlockedAddon"); > break; > + case "disableCheckbox": > + nodeCollector.queryAnonymousNode("class", "disableCheckbox"); > + break This has to be alphabetically sorted, please move it up. Also a semicolon is missing after break. ::: tests/functional/restartTests/testAddons_installUninstallSoftBlocklistedExtension/test1.js @@ +15,5 @@ > + > +const ADDON = { > + name: "Inline Settings (Restartless)", > + id: "restartless-inlinesettings@quality.mozilla.org", > + url: BASE_URL + "addons/extensions/restartless_inlinesettings.xpi" We use 2 spaces for indentation. ::: tests/functional/restartTests/testAddons_installUninstallSoftBlocklistedExtension/test2.js @@ +55,5 @@ > + > + var disableCheckbox = blocklistWindow.getElement({type: "disableCheckbox", > + parent: softBlockedAddon}); > + controller.click(disableCheckbox); > + No need for this blank line, we have a block where we click and wait for a behavior. @@ +58,5 @@ > + controller.click(disableCheckbox); > + > + assert.waitFor(function () { > + return !softBlockedAddon.getNode().checked; > + }, "The addon is still enabled"); "The addon has been enabled" expresses better the action here, cause we are doing that by not accepting the default disabled action of the blocklist dialog. More than this, I think we have handled this wrong in the hardblocked test as well. We force a restart between the tests, when we have this dialog opened and with a restart button as well. Maybe this is the reason for this test failing in 2.0. I'll raise a bug to fix this in both tests.
Attachment #782999 - Flags: review?(andreea.matei) → review-
Attached patch patch v1.1.patch (obsolete) — Splinter Review
Attachment #782999 - Attachment is obsolete: true
Attachment #783725 - Flags: review?(andreea.matei)
Comment on attachment 783725 [details] [diff] [review] patch v1.1.patch Review of attachment 783725 [details] [diff] [review]: ----------------------------------------------------------------- We'll be ready to land with this fixed. ::: tests/functional/restartTests/testAddons_installUninstallSoftBlocklistedExtension/test4.js @@ +5,5 @@ > +"use strict"; > + > +// Include required modules > +var { assert } = require("../../../../lib/assertions"); > +var addons = require("../../../../lib/addons"); One more nit, sorry I didn't see it before. Please move addons above assert.
Attachment #783725 - Flags: review?(andreea.matei) → review-
Attached patch patch_v1.2.patch (obsolete) — Splinter Review
Attachment #783725 - Attachment is obsolete: true
Attachment #784388 - Flags: review?(andreea.matei)
Attached patch patch_v1.2.patchSplinter Review
Attachment #784388 - Attachment is obsolete: true
Attachment #784388 - Flags: review?(andreea.matei)
Attachment #784391 - Flags: review?(andreea.matei)
Comment on attachment 784391 [details] [diff] [review] patch_v1.2.patch Review of attachment 784391 [details] [diff] [review]: ----------------------------------------------------------------- Great, it's landed: http://hg.mozilla.org/qa/mozmill-tests/rev/d15baaa18780 (default) Thanks! Please check backporting.
Attachment #784391 - Flags: review?(andreea.matei) → review+
Comment on attachment 786907 [details] [diff] [review] patch_v1.2.patch (Beta & Release) Review of attachment 786907 [details] [diff] [review]: ----------------------------------------------------------------- Pushed to: http://hg.mozilla.org/qa/mozmill-tests/rev/6bdc078944b3 (beta) http://hg.mozilla.org/qa/mozmill-tests/rev/c08f18e8eebf (release) http://hg.mozilla.org/qa/mozmill-tests/rev/ae2ebf439316 (esr17) Thanks Cosmin!
Attachment #786907 - Flags: review?(andreea.matei) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Attachment #786901 - Flags: review?(andreea.matei) → review+
Just to note, we don't usually backport new tests, but thanks for getting this one complete!
(In reply to Dave Hunt (:davehunt) from comment #11) > Just to note, we don't usually backport new tests, but thanks for getting > this one complete! That's totally correct. Reason is that we really don't want to mess up with beta and release testing. So please keep that in mind in the future. Thanks!
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: