~abreu-alexandre/ubuntu-html5-theme/rtm-backport-html5-ui-fixes

« back to all changes in this revision

Viewing changes to tests/autopilot/ubuntu_html5_ui_toolkit/tests/test_rss_reader.py

  • Committer: Alexandre Abreu
  • Date: 2014-12-05 21:41:18 UTC
  • Revision ID: alexandre.abreu@canonical.com-20141205214118-3czfr3ijmzb43tda
Fix oxide support

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# Copyright 2013 Canonical
3
3
#
4
4
# This program is free software: you can redistribute it and/or modify it
5
 
# under the terms of the GNU Lesser General Public License version 3, as published
6
 
# by the Free Software Foundation.
 
5
# under the terms of the GNU Lesser General Public License version 3, as
 
6
# published by the Free Software Foundation.
7
7
 
8
8
from __future__ import absolute_import
9
9
 
10
 
import time
11
 
 
12
10
from testtools.matchers import Contains, Equals
13
11
from autopilot.matchers import Eventually
14
12
 
15
 
from ubuntu_html5_ui_toolkit.tests import UbuntuHTML5TestCaseBase, UbuntuThemeRemotePageTestCaseBase
 
13
from ubuntu_html5_ui_toolkit.tests import UbuntuHTML5TestCaseBase
 
14
 
16
15
 
17
16
class UbuntuThemeRSSReaderTestCase(UbuntuHTML5TestCaseBase):
18
17
    def setUp(self):
29
28
 
30
29
    def test_switchToFeedView(self):
31
30
        self.click_any_dom_node_by_selector('#yourfeeds li a')
32
 
        self.assertThat(lambda: self.is_dom_node_visible('main'), Eventually(Equals(False)))
 
31
        self.assertThat(
 
32
            lambda: self.is_dom_node_visible('main'),
 
33
            Eventually(Equals(False)))
33
34
        self.assertThat(self.is_dom_node_visible('article'), Equals(False))
34
35
        self.assertThat(self.is_dom_node_visible('results'), Equals(True))