[gnome-boxes] tests: Handle setup page in create_new_vm_via_url()
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] tests: Handle setup page in create_new_vm_via_url()
- Date: Wed, 10 Jun 2015 17:17:39 +0000 (UTC)
commit d5e38f4ce992432542916581b1becfd38e418edd
Author: Vladimir Benes <benesv email cz>
Date: Wed Jun 10 13:32:16 2015 +0200
tests: Handle setup page in create_new_vm_via_url()
"Create new box from URL" step is now able to handle express install
setup screen in wizard.
https://bugzilla.gnome.org/show_bug.cgi?id=748006
tests/steps/creation.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/tests/steps/creation.py b/tests/steps/creation.py
index 05cda19..5b4f64d 100644
--- a/tests/steps/creation.py
+++ b/tests/steps/creation.py
@@ -3,6 +3,7 @@
from __future__ import unicode_literals
from behave import step
from dogtail.rawinput import typeText
+from dogtail.predicate import GenericPredicate
from time import sleep
from utils import get_showing_node_name
@@ -53,6 +54,12 @@ def create_new_vm_via_url(context, url):
half_minutes = 0
while half_minutes < 40:
half_minutes += 1
+ if context.app.findChild(
+ GenericPredicate(name='Choose express install to automatically '
+ 'preconfigure the box with optimal settings.'),
+ retry=False,
+ requireResult=False):
+ return
create = context.app.child('Create')
if create.sensitive and create.showing:
create.click()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]