Closed Bug 629070 Opened 13 years ago Closed 13 years ago

Mozmill test for Panorama tabgroup naming

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: u279076, Assigned: aaronmt)

References

Details

(Whiteboard: [mozmill-functional][mozmill-panorama])

Attachments

(2 files, 5 obsolete files)

Blocks: 629050
Whiteboard: [mozmill-panorama]
Depends on: 629436
Attached file Incomplete test script (obsolete) —
Unsure how to check 1)A text entry field should appear.
Otherwise, I'd thought it'd look more or less like the attached file.
(In reply to comment #2)
> Created attachment 512878 [details]
> Incomplete test script
> 
> Unsure how to check 1)A text entry field should appear.
> Otherwise, I'd thought it'd look more or less like the attached file.

Adam, can you change the attachment type to plain-text? It's not viewable in the browser as Javascript, thanks.
Attachment #512878 - Attachment mime type: application/x-javascript → text/plain
(In reply to comment #3)
> (In reply to comment #2)
> > Created attachment 512878 [details]
> > Incomplete test script
> > 
> > Unsure how to check 1)A text entry field should appear.
> > Otherwise, I'd thought it'd look more or less like the attached file.
> 
> Adam, can you change the attachment type to plain-text? It's not viewable in
> the browser as Javascript, thanks.

Nevermind, I did it myself :)
(In reply to comment #2)
> Created attachment 512878 [details]
> Incomplete test script
> 
> Unsure how to check 1)A text entry field should appear.
> Otherwise, I'd thought it'd look more or less like the attached file.

If you can get an instance of the groupTitleBox element and type a name in it, this should be sufficient.
Hi Adam,

Did you still want to work on this test? Just checking because it's unassigned.
Taking over this bug.
Assignee: nobody → aaron.train
Simple automation script for testcase 12649 at
https://litmus.mozilla.org/show_test.cgi?id=12649
Attachment #512878 - Attachment is obsolete: true
Attachment #516794 - Flags: review?(hskupin)
Comment on attachment 516794 [details] [diff] [review]
Patch v1 - automation script for testcase 12649

Switching initial reviewer
Attachment #516794 - Flags: review?(hskupin) → review?(anthony.s.hughes)
Comment on attachment 516794 [details] [diff] [review]
Patch v1 - automation script for testcase 12649

>diff --git a/firefox/testTabView/testTabGroupNaming.js b/firefox/testTabView/testTabGroupNaming.js
>+// Include required modules
>+var tabView = require("../../shared-modules/tabview");
>+const TABGROUP_TITLE = "Mozilla";

nit, please separate "requires" and consts by a newline.

>+
>+function setupModule(module) {
>+  controller = mozmill.getBrowserController();
>+  tabView = new tabView.tabView(controller);
>+}

Please rename "tabView" to "activeTabView" to remove ambiguity with the shared module.

>+  // Check that Tab View has opened 
>+  controller.assert(function () {
>+    return tabView.isOpen;
>+  }, "Tab Groups has opened");
>+

Please refer to the Panorama view as "Tab Groups View" across all code and comments.
Attachment #516794 - Flags: review?(anthony.s.hughes) → review-
Attachment #516794 - Attachment is obsolete: true
Attachment #518066 - Flags: review?(anthony.s.hughes)
Attachment #518066 - Flags: review?(anthony.s.hughes)
Attachment #518066 - Attachment is obsolete: true
Attachment #518068 - Flags: review?(anthony.s.hughes)
Comment on attachment 518068 [details] [diff] [review]
Patch v2 - automation script for testcase 12649

>+  // Check that Tab Groups View has opened 
>+  controller.assert(function () {
>+    return activeTabView.isOpen;
>+  }, "Tab Groups View has opened");

I'm not sure if this is redundant since .open() calls waitForOpen(). What do you think? Henrik?

>+  // Check that Tab Groups View has closed
>+  controller.assert(function () {
>+    return !activeTabView.isOpen;
>+  }, "Tab Groups View has closed");
>+}

Could you add a check to enter Tab Groups view and check the title once more (ie. make sure the title remains after switching in and out of Panorama)?
Attachment #518068 - Flags: review?(anthony.s.hughes) → review-
(In reply to comment #13)
> >+  // Check that Tab Groups View has opened 
> >+  controller.assert(function () {
> >+    return activeTabView.isOpen;
> >+  }, "Tab Groups View has opened");
> 
> I'm not sure if this is redundant since .open() calls waitForOpen(). What do
> you think? Henrik?

Exactly. It's not necessary.
Attachment #518068 - Attachment is obsolete: true
Attachment #518368 - Flags: review?(anthony.s.hughes)
Comment on attachment 518368 [details] [diff] [review]
Patch v3 - automation script for testcase 12649

This looks good to me.  Thanks Aaron.  Over to Henrik for follow-up.
Attachment #518368 - Flags: review?(hskupin)
Attachment #518368 - Flags: review?(anthony.s.hughes)
Attachment #518368 - Flags: review+
Comment on attachment 518368 [details] [diff] [review]
Patch v3 - automation script for testcase 12649

Please update the locations once the refactoring has been finished.
Attachment #518368 - Flags: review?(hskupin)
Aaron, please submit a new patch for review by Henrik with the new file structure.
Updated for restructuring changes yesterday. Over to Henrik for review.
Attachment #518368 - Attachment is obsolete: true
Attachment #518706 - Flags: review?(hskupin)
Comment on attachment 518706 [details] [diff] [review]
Patch v4 - automation script for testcase 12649

>+function testTabGroupNaming() {
>+  // Open Tab Groups View (default via keyboard shortcut)
[..]
>+  // Close Tab Groups View (default via keyboard shortcut)
>+  activeTabView.close();
>+
>+  // Open Tab Groups View (default via keyboard shortcut)
>+  activeTabView.open();

Nit: There is no need to call out the default in each test.
Attachment #518706 - Flags: review?(hskupin) → review+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [mozmill-panorama] → [mozmill-functional][mozmill-panorama]
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: