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)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: whimboo, Assigned: whimboo)
Details
(Keywords: regression, Whiteboard: [mozmill-test-failure])
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
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.
Comment 1•14 years ago
|
||
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?
Assignee | ||
Comment 2•14 years ago
|
||
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.
Comment 3•14 years ago
|
||
No, I meant actually using the mouse and trying to reproduce the problem.
Assignee | ||
Comment 4•14 years ago
|
||
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.
Comment 5•14 years ago
|
||
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
Assignee | ||
Comment 6•14 years ago
|
||
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
Assignee | ||
Comment 7•14 years ago
|
||
Attachment #511456 -
Attachment is obsolete: true
Attachment #511464 -
Flags: review?(gmealer)
Comment 8•14 years ago
|
||
Why is the second argument 2 rather than 1?
Assignee | ||
Comment 9•14 years ago
|
||
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.
Comment 10•14 years ago
|
||
2 isn't safer than 1. Clicking further down makes it more likely to hit the location bar, which you don't want.
Assignee | ||
Comment 11•14 years ago
|
||
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+
Assignee | ||
Comment 13•14 years ago
|
||
Patch with additional comment added.
Attachment #511464 -
Attachment is obsolete: true
Attachment #511495 -
Flags: review+
Assignee | ||
Comment 14•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•5 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
•