Closed Bug 1129118 Opened 9 years ago Closed 6 years ago

Convert Mozmill js test testSwitchToTab.js to a Firefox UI Test

Categories

(Testing :: Firefox UI Tests, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: impossibus, Unassigned)

References

Details

This is a replacement for http://hg.mozilla.org/qa/mozmill-tests/file/default/firefox/tests/functional/testAwesomeBar/testSwitchToTab.js

This test does the following:

1. Close all tabs.
2. Load three pages from the local webserver (layout/mozilla_contribute.html, layout/mozilla_governance.html, layout/mozilla_grants.html). Each page has an associated keyword.

For each test-page:
3.1. Clear the location bar and type the test-page's keyword. 
3.2. Assert that the location bar value is equal to what was typed.
3.3. Assert that auto-complete pop-up has opened.
3.4. Assert that there are visible results in the auto-complete pop-up.
3.5. Assert that there is a "switch-to-tab" item present in the auto-complete pop-up.
3.6. Assert that the matched text in the auto-complete item is underlined/highlighted and matches the test-page keyword
3.7. Click on the auto-complete item
3.8. Assert that the active-tab url is equal to the test-page url

4. Close all tabs.
I will add the places library as dependency here. Given that I have that one ready and it will land in a bit via bug 1121731, it would be good when you can your test updated to make use of the places methods similar to the mozmill test.
Depends on: 1121731
OS: Mac OS X → All
Priority: -- → P1
Hardware: x86 → All
Version: Version 3 → unspecified
Priority: P1 → P2
Product: Mozilla QA → Testing
Assignee: mjzffr → nobody
QA Contact: hskupin
Marco, is that something we would still need for Firefox UI tests? I believe that is already covered by a mochitest already.
Flags: needinfo?(mak77)
Yes, we have mochitest browser tests for switch to tab, thanks!
Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(mak77)
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.