Closed Bug 606507 Opened 14 years ago Closed 13 years ago

Update addons module to support the Discovery Pane

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aaronmt, Assigned: whimboo)

References

Details

(Whiteboard: [lib])

Attachments

(1 file, 4 obsolete files)

With the AddonsAPI updated in bug 569813, some additional functionality will be needed to support the Discovery Pane (i.e, "Get Add-ons") in tests.
Blocks: 600359
It's not something we can do right now. It will take a while until the discovery pane has been finished. Also not sure yet how much we can and should do. It's a web page and will be different for each user. I would more tend to say, lets handle it as any other web page.
Move of Mozmill Test related project bugs to newly created components. You can
filter out those emails by using "Mozmill-Tests-to-MozillaQA" as criteria.
Product: Testing → Mozilla QA
Version: Trunk → unspecified
Before we start with the implementation of the tests we should figure out if we really need an API for the discovery pane.
As bug 659000 has been shown we have issues with waitForPageLoad() in the discovery pane. We should have at least basic support for it in the addons module:

* waitForPageLoaded()
* .controller

Still not sure if an element list is useful here.
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
A Pivotal Tracker story has been created for this Bug: https://www.pivotaltracker.com/story/show/13767591
Summary: Update AddonsAPI to support the Discovery Pane for Firefox 4.0 → Update addons module to support the Discovery Pane
I asked Vlad to send me a list of possible candidates for the elements the DiscoveryPane class has to cover. Here those are:

Name	Selector

Main
----
"main_featureNext"	#nav-features.next
"main_featurePrevious"	#nav-features.prev
"main_featureCollection"	#fx4-collection
"main_featureMonthly"	#monthly.install-button
"featured _addonsList"	#featured-addons
"recs_addonsList"	#recs
"sub_upAndComingList"	#up-and-coming
"sub_featuredPersonas"	#featured-personas
"sub_moreWays"	#more-ways

Details
-------
"detailedView_addToFirefox"	#install.install-button
"detailedView_LearnMore"	#learn-more
Implementing handling of elements is not that easy here. If JS is enabled this pane is doing crazy things by at least cloning panels. I need some sleep first before I can continue here. Btw. the initial class already works.
Attached patch WIP v1.1 (obsolete) — Splinter Review
WIP with example test with what's implemented so far.
Attachment #535283 - Attachment is obsolete: true
Attached patch WIP v1.2 (obsolete) — Splinter Review
Updated WIP which now includes the addon page too.

Vlad with this patch injected into your mq you can start to create tests for the up and coming Litmus tests.
Attachment #535284 - Attachment is obsolete: true
Depends on: 659905
Depends on: 659906
Depends on: 659643
Depends on: 659487
Depends on: 660380
Attached patch Patch v1 (obsolete) — Splinter Review
Final patch to handle the discovery pane with a couple of extra tests attached. Please keep in mind to run this on mozilla-beta if you want to test. With the fresh Aurora build we do not populate all sections because of missing compatible extensions.
Attachment #535290 - Attachment is obsolete: true
Attachment #535784 - Flags: review?(dave.hunt)
Blocks: 657497
Depends on: 660393
Whiteboard: [shared module] → [shared module][needs bug 660393]
Comment on attachment 535784 [details] [diff] [review]
Patch v1

diff --git a/lib/addons.js b/lib/addons.js
--- a/lib/addons.js
+++ b/lib/addons.js
   /**
+   * Get the instance of the Discovery Pane
+   *
+   * @returns {DiscoverPane} Instance of the Discovery Pane class
+   */

nit: typo in DiscoveryPane

new file mode 100644
--- /dev/null
+++ b/lib/tests/testAddonsDiscoveryPane.js
@@ -0,0 +1,107 @@
+// Include required modules
+var addons = require("../addons");

nit: Aren't we capitalising these now?

r+ with the above minor nits.
Attachment #535784 - Flags: review?(dave.hunt) → review+
Attached patch Patch v2Splinter Review
Patch with comments addressed. Ready for check-in.
Attachment #535784 - Attachment is obsolete: true
Attachment #535793 - Flags: review+
Landed as:
http://hg.mozilla.org/qa/mozmill-tests/rev/9be75c1668ac (default)
http://hg.mozilla.org/qa/mozmill-tests/rev/32208596d82e (aurora)
http://hg.mozilla.org/qa/mozmill-tests/rev/2853bea9812c (beta)

I have added more than the requested elements, and I think we should be feature complete for this class now. If something is missing file a new bug or add it on your own in a patch for a test.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
We released a new beta to pyPI yesterday with the waitForPageLoad bug fixed. So we are good to go now. Removing dependency.
No longer depends on: 660393
Component: Mozmill Tests → Mozmill Shared Modules
Component: Mozmill Shared Modules → Mozmill Tests
Whiteboard: [shared module][needs bug 660393] → [lib]
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: