From b0ab078f78601766f0a977c901593c31e58cb5c0 Mon Sep 17 00:00:00 2001 From: Philip Hands Date: Wed, 25 Jan 2017 22:31:14 +0100 Subject: lvc: deal with Scan CD/DVD prompt Signed-off-by: Holger Levsen --- cucumber/features/step_definitions/common_steps.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cucumber/features/step_definitions/common_steps.rb') diff --git a/cucumber/features/step_definitions/common_steps.rb b/cucumber/features/step_definitions/common_steps.rb index cbedbe92..328c5661 100644 --- a/cucumber/features/step_definitions/common_steps.rb +++ b/cucumber/features/step_definitions/common_steps.rb @@ -397,7 +397,7 @@ Given /^I note that the Base system is being installed$/ do end Given /^I accept the default mirror$/ do - on_screen, _ = @screen.waitAny([diui_png("popcon"),diui_png("BadMirror"),diui_png("MirrorCountry")], 10 * 60 * PATIENCE) + on_screen, _ = @screen.waitAny([diui_png("popcon"),diui_png("BadMirror"),diui_png("MirrorCountry"),diui_png("ScanCD")], 10 * 60 * PATIENCE) if diui_png("MirrorCountry") == on_screen @screen.wait(diui_png("MirrorCountry"), 10 * 60 * PATIENCE) @screen.type(Sikuli::Key.ENTER) @@ -406,6 +406,9 @@ Given /^I accept the default mirror$/ do @screen.wait(diui_png("HttpProxy"), 5 * PATIENCE) @screen.type("http://local-http-proxy:3128/" + Sikuli::Key.ENTER) #@screen.type(Sikuli::Key.ENTER) + elsif diui_png("ScanCD") == on_screen + @screen.type(Sikuli::Key.ENTER) + step("I accept the default mirror") else step("I ignore Popcon") end -- cgit v1.2.3-70-g09d2