blob: 324af153f8185666f557c67b93d3af0a3a79faa4 [file] [log] [blame]
# Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Factory test automator for 'lid_switch' test."""
import factory_common # pylint: disable=unused-import
from cros.factory.test.e2e_test.common import AutomationMode
from cros.factory.test.e2e_test.automator import Automator, AutomationFunction
class LidSwitchAutomator(Automator):
"""The 'lid_switch' factory test automator."""
# pylint: disable=C0322
pytest_name = 'lid_switch'
@AutomationFunction(automation_mode=AutomationMode.FULL,
wait_for_factory_test=False)
def automateSkipLidSwitch(self):
# Simply pass the test.
self.uictl.WaitForContent(search_text='Close then open the lid')