Bug 2073095 - make the home screen tests safe to be run with different configurations of pinned and sponsored shortcuts #367 (firefox-autoland@autoland)
|
|
|
| Warnings |
|
| Blockers |
|
| Branches | fix-ui-tests-for-nightly -> autoland |
| Repo | firefox-autoland@autoland (git) (git://github.com/pollym/firefox.git) |
| Author | pollym |
| State | open |
| Commit Title |
Bug 2073095 - make the home screen tests safe to be run with different configurations of pinned and sponsored shortcuts |
| Commit Body |
Sponsored shortcuts were located by their absolute position in the top sites list, which assumes a fixed number of pinned shortcuts precedes them. getSponsoredShortcutTitle and verifySponsoredShortcutDetails now take an index among the sponsored shortcuts only, resolved through the sponsored label that only sponsored shortcuts carry. TopSitesTest's setUp asserted the entire default top sites list where, as its comment says, it only needs to wait for the list to be displayed. This makes the tests more resilient to changes in top sites and will allow these tests to pass on a nightly build as well as a debug build. [try after rebase is running here]( https://treeherder.mozilla.org/jobs?repo=try&revision=4eed3db2680212ca0e700810435c932a029d1bfd) |