~osomon/webbrowser-app/apparmor-additional-holes-unity8

« back to all changes in this revision

Viewing changes to tests/autopilot/webbrowser_app/tests/test_tabs.py

  • Committer: Florian Boucault
  • Date: 2017-02-15 08:26:39 UTC
  • mto: This revision was merged to the branch mainline in revision 1609.
  • Revision ID: florian@boucault.net-20170215082639-fusdpi94l6m6nd1q
Fixed AP test test_ctrl_click_open_link_in_next_tab in narrow mode

Show diffs side-by-side

added added

removed removed

Lines of Context:
225
225
    # http://pad.lv/1499780
226
226
    @testtools.skipIf(model() != "Desktop", "on desktop only")
227
227
    def test_ctrl_click_open_link_in_next_tab(self):
228
 
        self.open_new_tab()
229
 
        first_tab = self.main_window.chrome.get_tabs_bar().get_tab(0)
230
 
        self.pointing_device.click_object(first_tab)
 
228
        self.open_new_tab(open_tabs_view=not self.main_window.wide)
 
229
        self.switch_to_tab(0 if self.main_window.wide else 1)
231
230
 
232
231
        url = self.base_url + "/link"
233
232
        self.main_window.go_to_url(url)
240
239
 
241
240
        # Eventually we should have three webviews
242
241
        self.assert_number_webviews_eventually(3)
243
 
        next_tab = self.main_window.chrome.get_tabs_bar().get_tab(1)
244
 
        self.pointing_device.click_object(next_tab)
 
242
        self.switch_to_tab(1)
245
243
        self.check_current_tab(self.url)
246
244
 
247
245
    def test_open_iframe_target_blank_in_new_tab(self):