Closed Bug 874394 Opened 12 years ago Closed 12 years ago

Test failure in '/testAwesomeBar/testPasteLocationBar.js' due to the urlbar-container not being found

Categories

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

defect

Tracking

(firefox25 fixed)

RESOLVED FIXED
Tracking Status
firefox25 --- fixed

People

(Reporter: daniela.p98911, Assigned: mario.garbi)

References

Details

(Whiteboard: [mozmill-test-failure][australis][sprint2013-35])

Attachments

(2 files, 1 obsolete file)

The test: /testAwesomeBar/testPasteLocationBar.js fails on all OS with Australis build Fails due to line: http://hg.mozilla.org/qa/mozmill-tests/file/05730582186d/lib/toolbars.js#l18 URLBAR_CONTAINER needs to contain: 'id("nav-bar-customizationtarget")' since this is the element that contains the urlbar-container. The line should be changed to: const URLBAR_CONTAINER = '/id("main-window")/id("tab-view-deck")/[0]' + '/id("navigator-toolbox")/id("nav-bar")/id("nav-bar-customizationtarget")/id("urlbar-container")'; NOTE: The changing of the line should be done only if nodeCollector cannot be used instead of the Lookup expression
Blocks: 874341
Whiteboard: [mozmill-test-failure][australis]
Priority: -- → P1
This change is intentional due per bug 864355 where almost all nav-bar needs to be included under the customization target.
Bug 864355 is about a different thing, and I don't see the connection to this failure. Here we simply have a new container around the navbar items.
(In reply to Henrik Skupin (:whimboo) from comment #2) > Bug 864355 is about a different thing, and I don't see the connection to > this failure. Here we simply have a new container around the navbar items. The new container around the navbar items was introduced in bug 864355. Please see attached patch for that bug that landed as: https://hg.mozilla.org/projects/ux/rev/7105d3282462. The failure in this bug appears because we cannot find the element (due to the container around the navbar). Based on bug 874341 comment #6, we needed to figure out if these changes are intentional or not, but we still need to figure out if nodeCollector can be used instead of Lookup expression here.
Whiteboard: [mozmill-test-failure][australis] → [mozmill-test-failure][australis][sprint2013-35]
Testcase as requested in Ask an Expert meeting: Steps: 1.Open ../data/awesomebar/copypaste.html 2.Select a piece of text 3.Copy in clipboard the selected text 4.Select and clear the locationBar 5.Rightclick on the locationBar to bring up the contextMenu 6.Select "Paste" from the contextMenu 7.Check that the text copied correctly to the locationBar I managed to get the nodes up to ".box-inherit scrollbox-innerbox" but we can't seem to gather the menuItems ("cmd", "cmd_paste").
I think a running testcase was asked for. As in a js file that you can run with mozmill.
Assignee: nobody → mario.garbi
Status: NEW → ASSIGNED
Attached file test file
The autonomous test that copies a text and tries to paste it in the location bar using the context menu.
Attachment #773984 - Flags: review?(hskupin)
Comment on attachment 773984 [details] test file Please do not ask for review on a temporary test. If you want immediate feedback raise the needinfo flag. Also make sure that you attach tests as text/plain.
Attachment #773984 - Attachment mime type: application/javascript → text/plain
Attachment #773984 - Flags: review?(hskupin)
I don't know either. nodeCollector just has a wrapper around getAnonymousElementByAttribute. So you might want to get in touch with the developer as usual under those conditions. http://hg.mozilla.org/mozilla-central/annotate/79439df5bf5d/browser/base/content/urlbarBindings.xml#l70
The patch for 874393 will introduce new library elements that are needed for this bug, therefore I will set it dependent of that.
Depends on: 874393
Attached patch australis_toolbar.patch (obsolete) — Splinter Review
This patch handles the Australis node once we land the blocker 874393 that introduces the library elements.
Attachment #779217 - Flags: review?(andreea.matei)
Comment on attachment 779217 [details] [diff] [review] australis_toolbar.patch I removed the review request as I needed to make a few small changes to it, I will reupload a patch with reports as soon as possible today.
Attachment #779217 - Flags: review?(andreea.matei)
Comment on attachment 780388 [details] [diff] [review] australis_toolbar_2407.patch I will add the fix patch for both of them in Bug 874395.
Attachment #780388 - Flags: review?(andreea.matei)
Depends on: 874395
No longer depends on: 874393
This was fixed now in bug 874395.
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: