1
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
3
"""Tests for PageUpdate"""
7
from autopilot.matchers import Eventually
8
from textwrap import dedent
9
from testtools.matchers import Is, Not, Equals
10
from testtools import skip
12
from UpdateManager import UbuntuTouchAppTestCase
15
class PageUpdateTests(UbuntuTouchAppTestCase):
16
"""Page Update Tests."""
18
test_qml_file = "%s/%s.qml" % (os.path.dirname(os.path.realpath(__file__)),"../../../../updatemanager")
20
def test_UI_is_loaded(self):
21
"""Must be able to see the mainview."""
23
mainView = self.get_mainview()
24
self.assertThat(mainView.visible, Eventually(Equals(True)))
27
def test_loading_disappear(self):
28
"""Check the loading indicator disappears"""
30
loading = self.get_object(objectName="loadingIndicator")
31
self.assertThat(loading.visible, Eventually(Equals(False)))