Closed Bug 633234 Opened 14 years ago Closed 14 years ago

Test failure 'could not find element ID: toggle_PersonalToolbar' in testDefaultBookmarks/test1.js

Categories

(Mozilla QA Graveyard :: Mozmill Tests, defect)

All
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: whimboo, Assigned: whimboo)

Details

(Keywords: regression, Whiteboard: [mozmill-test-failure])

Attachments

(1 file, 2 obsolete files)

Module: restartTests/testDefaultBookmarks/test1.js Test: testVerifyDefaultBookmarks Failure: could not find element ID: toggle_PersonalToolbar Branches: default Platforms: Linux To make the personal toolbar visible on Linux we currently right click the navigation toolbar at position (1,1). Starting from today that doesn't work anymore on Linux. No context menu pops-up and that's why toggle_PersonalToolbar cannot be found. Checking the pushlog between yesterdays and todays build shows the following changesets: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=fd0817e454fe&tochange=199cb6282554 Dao, after talking with Mak we highly suspect that the patch on bug 631698 has been caused this regression. Is this definitely an intended change? If yes, we would have to update the Mozmill test to click on (width/2,2) which works.
I can't tell whether it's an intended change, as the problem isn't really clear to me. Is this just some obscure test failure or can you manually reproduce broken behavior?
Attached file Simplified testcase (obsolete) —
This is the simplified testcase. To reproduce the following steps are necessary: 1. Create a fresh profile 2. Install Mozmill https://addons.mozilla.org/de/firefox/addon/mozmill/ 3. Copy&Paste the test into the Mozmill IDE 4. Run the test With builds prior to today the bookmarks toolbar will be visible. With todays build we fail in opening the context menu of the navbar.
No, I meant actually using the mouse and trying to reproduce the problem.
Manually I can't open the context menu either, but that problem seems to persist already a bit longer. It looks like that the buttons take all the available space. And manually clicking at (1,1) is a bit hard to do.
The problem might be that I removed the navigation toolbar's top border. This is intentional, the test would need to deal with that. (In reply to comment #4) > It looks like that the buttons take all the available space. This is expected behavior.
No longer blocks: 631698
Ok, so formerly we clicked on the border, now it's the back button itself, which doesn't have a context menu when disabled. Given that this behavior is wanted, I will change our test to click at (width/2,2) of the navigation bar.
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Attached patch Patch v1 (obsolete) — Splinter Review
Attachment #511456 - Attachment is obsolete: true
Attachment #511464 - Flags: review?(gmealer)
Why is the second argument 2 rather than 1?
For safety. We had a couple of situations in the past when we failed clicking at an offset with 1. Same issues have been seen in Mochitest, which also use 2 or even the center of the element now.
2 isn't safer than 1. Clicking further down makes it more likely to hit the location bar, which you don't want.
We have a top padding of 4px for the urlbar. That would even give us 2 more pixel to click on, compared to 0px to the border of the navbar when clicking on 1.
Comment on attachment 511464 [details] [diff] [review] Patch v1 Looks fine. I usually prefer a quick comment above this sort of thing that explains why the specific coords though (// click center below the border, something like that). Helps with maintenance later. Your call, though. r+ either way.
Attachment #511464 - Flags: review?(gmealer) → review+
Attached patch Patch v2Splinter Review
Patch with additional comment added.
Attachment #511464 - Attachment is obsolete: true
Attachment #511495 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 14 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

Created:
Updated:
Size: