[gnome-boxes] tests: Select items through selection mode
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] tests: Select items through selection mode
- Date: Mon, 2 Feb 2015 13:51:16 +0000 (UTC)
commit 93b64a39dee312ae3d44aad4c1437d0a76aabfc7
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Mon Feb 2 10:17:24 2015 +0000
tests: Select items through selection mode
Right-click doesn't launch selection-mode anymore so we need to launch
selection-mode through the button.
tests/steps/general.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/tests/steps/general.py b/tests/steps/general.py
index 8c6d4b9..6f5ca83 100644
--- a/tests/steps/general.py
+++ b/tests/steps/general.py
@@ -131,10 +131,13 @@ def save_ip_for_vm(context, vm):
@step('Select "{vm}" box')
def select_vm(context, vm):
+ select_button = context.app.child('Select Items')
+ if select_button.showing:
+ select_button.click()
pane = context.app.child(roleName='layered pane')
for child in pane.children:
if child.text == vm:
- child.click(button='3')
+ child.click()
sleep(0.2)
break
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]