summaryrefslogtreecommitdiff
path: root/tests/steps
diff options
context:
space:
mode:
authorVadim Rutkovsky <vrutkovs@redhat.com>2015-03-09 16:01:09 +0100
committerVadim Rutkovsky <vrutkovs@redhat.com>2015-03-09 16:31:55 +0100
commit6d97d9dcadede3492417bf9202f26bdb90fb0e59 (patch)
treecdb6fef06f170aafb9874aa6262988a3d5e5ba65 /tests/steps
parent0ef2319fb9340b0c7983dfe483ddcfb1178c8ee7 (diff)
downloadeog-6d97d9dcadede3492417bf9202f26bdb90fb0e59.tar.gz
tests: fix Fullscreen tests
Fullscreen button moved to headerbar Detect fullscreen state by drawing area by position
Diffstat (limited to 'tests/steps')
-rw-r--r--tests/steps/steps.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/steps/steps.py b/tests/steps/steps.py
index cb1460b5..081b19dc 100644
--- a/tests/steps/steps.py
+++ b/tests/steps/steps.py
@@ -68,6 +68,11 @@ def rotate_image_clockwise(context):
btn.click()
+@step(u'Click Fullscreen button on headerbar')
+def click_fullscreen(context):
+ context.app.child(translate('Fullscreen')).click()
+
+
@step(u'Open context menu for current image')
def open_context_menu(context):
context.app.child(roleName='drawing area').click(button=3)
@@ -89,15 +94,11 @@ def sidepanel_displayed(context, state):
assert actual == (state == 'displayed')
-def app_is_not_fullscreen(context):
- import ipdb; ipdb.set_trace()
-
-
@then(u'application is {negative:w} fullscreen anymore')
@then(u'application is displayed fullscreen')
def app_displayed_fullscreen(context, negative=None):
sleep(0.5)
- actual = not context.app.child(roleName='menu bar').showing
+ actual = context.app.child(roleName='drawing area').position[1] == 0
assert actual == (negative is None)