~canonical-platform-qa/ubuntu-system-tests/pull_to_refresh_video_scope

« back to all changes in this revision

Viewing changes to ubuntu_system_tests/tests/test_bluetooth.py

  • Committer: Tarmac
  • Author(s): Allan LeSage, Santiago Baldassin
  • Date: 2016-09-05 18:39:11 UTC
  • mfrom: (446.2.6 indicators-refactoring-fixes)
  • Revision ID: tarmac-20160905183911-8w22riv8gbj3oo11
Fix indicators tests  broken by refactoring.

Approved by Richard Huddie, platform-qa-bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
from testtools.matchers import Contains
22
22
 
23
23
from ubuntu_system_tests.helpers import bluetooth
24
 
from ubuntu_system_tests.helpers import indicators
25
24
from ubuntu_system_tests.helpers import system_settings
 
25
from ubuntu_system_tests.helpers.indicators.bluetooth import (
 
26
    BluetoothIndicatorPage)
 
27
from ubuntu_system_tests.helpers.indicators.indicators import IndicatorsFactory
26
28
from ubuntu_system_tests.tests import base
27
29
 
28
30
BLUETOOTH_INDICATOR = 'indicator-bluetooth'
62
64
                'Bluetooth support required')
63
65
    def setUp(self):
64
66
        super().setUp()
65
 
        self.bluetooth_indicator_page = indicators.open_bluetooth_indicator()
 
67
        indicator_factory = IndicatorsFactory()
 
68
        self.bluetooth_indicator_page = indicator_factory.get_indicators_page(
 
69
            BluetoothIndicatorPage.name)
66
70
 
67
71
    def test_toggle_bluetooth(self):
68
72
        """