Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
0
gaia/tests/python/gaia-ui-tests/gaiatest/apps/emergency_call/__init__.py
Executable file
0
gaia/tests/python/gaia-ui-tests/gaiatest/apps/emergency_call/__init__.py
Executable file
34
gaia/tests/python/gaia-ui-tests/gaiatest/apps/emergency_call/app.py
Executable file
34
gaia/tests/python/gaia-ui-tests/gaiatest/apps/emergency_call/app.py
Executable file
|
|
@ -0,0 +1,34 @@
|
|||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from marionette_driver import expected, By, Wait
|
||||
|
||||
from gaiatest.apps.base import Base
|
||||
|
||||
|
||||
class EmergencyCall(Base):
|
||||
|
||||
_emergency_frame_locator = (By.CSS_SELECTOR, ".secureAppWindow.active[data-manifest-name='EmergencyCall'] iframe")
|
||||
_emergency_dialer_keypad_locator = (By.ID, 'keypad')
|
||||
_emergency_call_only_title_locator = (By.CSS_SELECTOR, 'h1[data-l10n-id="emergency-call-only"]')
|
||||
|
||||
@property
|
||||
def keypad(self):
|
||||
from gaiatest.apps.phone.regions.keypad import BaseKeypad
|
||||
return BaseKeypad(self.marionette)
|
||||
|
||||
def switch_to_emergency_call_frame(self):
|
||||
frame = Wait(self.marionette).until(
|
||||
expected.element_present(*self._emergency_frame_locator))
|
||||
Wait(self.marionette).until(expected.element_displayed(frame))
|
||||
self.marionette.switch_to_frame(frame)
|
||||
|
||||
@property
|
||||
def is_emergency_dialer_keypad_displayed(self):
|
||||
return self.marionette.find_element(
|
||||
*self._emergency_dialer_keypad_locator).is_displayed()
|
||||
|
||||
@property
|
||||
def is_emergency_call_only_title_displayed(self):
|
||||
return self.marionette.find_element(*self._emergency_call_only_title_locator).is_displayed()
|
||||
Loading…
Reference in a new issue