~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_brightness.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:
23
23
from autopilot import platform
24
24
from autopilot.matchers import Eventually
25
25
from testtools.matchers import Equals, LessThan, GreaterThan
 
26
from ubuntu_system_tests.helpers.indicators.battery import BatteryIndicatorPage
26
27
 
27
 
from ubuntu_system_tests.helpers import indicators
28
28
from ubuntu_system_tests.helpers import system_settings
 
29
from ubuntu_system_tests.helpers.indicators.indicators import IndicatorsFactory
29
30
from ubuntu_system_tests.helpers.power.fixture_setup import (
30
31
    EnableRepowerdFakeSensors)
31
32
from ubuntu_system_tests.helpers import sensors
63
64
 
64
65
    @staticmethod
65
66
    def open_brightness_from_battery_indicator():
66
 
        return indicators.open_battery_indicator()
 
67
        indicator_factory = IndicatorsFactory()
 
68
        indicator_page = indicator_factory.get_indicators_page(
 
69
            BatteryIndicatorPage.name)
 
70
        return indicator_page
67
71
 
68
72
 
69
73
class AutoBrightnessTestCase(BrightnessTestCase):