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)
Mozilla QA Graveyard
Mozmill Tests
Tracking
(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)
11.07 KB,
patch
|
AndreeaMatei
:
review+
|
Details | Diff | Splinter Review |
11.07 KB,
patch
|
AndreeaMatei
:
review+
|
Details | Diff | Splinter Review |
11.10 KB,
patch
|
AndreeaMatei
:
review+
|
Details | Diff | Splinter Review |
A followup to bug 684679 which only tests Hard-Blocked extesnions.
This test should be very similar, but test a Soft-Blocked extension.
Updated•12 years ago
|
Whiteboard: [sprint2013-33]
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → cosmin.malutan
Assignee | ||
Comment 1•11 years ago
|
||
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)
Updated•11 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P2
Comment 2•11 years ago
|
||
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-
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #782999 -
Attachment is obsolete: true
Attachment #783725 -
Flags: review?(andreea.matei)
Comment 4•11 years ago
|
||
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-
Assignee | ||
Comment 5•11 years ago
|
||
Attachment #783725 -
Attachment is obsolete: true
Attachment #784388 -
Flags: review?(andreea.matei)
Assignee | ||
Comment 6•11 years ago
|
||
Attachment #784388 -
Attachment is obsolete: true
Attachment #784388 -
Flags: review?(andreea.matei)
Attachment #784391 -
Flags: review?(andreea.matei)
Comment 7•11 years ago
|
||
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+
Updated•11 years ago
|
status-firefox25:
--- → fixed
Assignee | ||
Comment 8•11 years ago
|
||
Reports :
Ubuntu
http://mozmill-crowd.blargon7.com/#/functional/report/bccc2ea9ac1e478fa074c699d8bf6491
Mac
http://mozmill-crowd.blargon7.com/#/functional/report/bccc2ea9ac1e478fa074c699d8c17de0
Windows
http://mozmill-crowd.blargon7.com/#/functional/report/bccc2ea9ac1e478fa074c699d8beb357
Attachment #786901 -
Flags: review?(andreea.matei)
Assignee | ||
Comment 9•11 years ago
|
||
Reports:
Windows
http://mozmill-crowd.blargon7.com/#/functional/report/bccc2ea9ac1e478fa074c699d8c39a5b
http://mozmill-crowd.blargon7.com/#/functional/report/bccc2ea9ac1e478fa074c699d8c28751
Ubuntu
http://mozmill-crowd.blargon7.com/#/functional/report/bccc2ea9ac1e478fa074c699d8c35b39
http://mozmill-crowd.blargon7.com/#/functional/report/bccc2ea9ac1e478fa074c699d8c2dd84
Mac
http://mozmill-crowd.blargon7.com/#/functional/report/bccc2ea9ac1e478fa074c699d8c33a72
http://mozmill-crowd.blargon7.com/#/functional/report/bccc2ea9ac1e478fa074c699d8c68ecf
Attachment #786907 -
Flags: review?(andreea.matei)
Comment 10•11 years ago
|
||
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+
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
status-firefox23:
--- → fixed
status-firefox24:
--- → fixed
status-firefox26:
--- → fixed
status-firefox-esr17:
--- → fixed
Resolution: --- → FIXED
Updated•11 years ago
|
Attachment #786901 -
Flags: review?(andreea.matei) → review+
Comment 11•11 years ago
|
||
Just to note, we don't usually backport new tests, but thanks for getting this one complete!
Comment 12•11 years ago
|
||
(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!
Updated•6 years ago
|
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•