From 3769320be4aea15ae5f9b0c470deea67cb65e09d Mon Sep 17 00:00:00 2001 From: Philip Hands Date: Tue, 11 Oct 2016 23:14:39 +0200 Subject: work around being offered American English after selecting UK Signed-off-by: Holger Levsen --- cucumber/features/step_definitions/common_steps.rb | 3 ++- 1 file changed, 2 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 8b06c832..05cd7a9e 100644 --- a/cucumber/features/step_definitions/common_steps.rb +++ b/cucumber/features/step_definitions/common_steps.rb @@ -300,7 +300,8 @@ Given /^I select British English$/ do @screen.wait(diui_png("UnitedKingdom"), 10 * PATIENCE) @screen.type(Sikuli::Key.ENTER) @screen.click_point(@screen.w-2, @screen.h*2/3) - @screen.wait(diui_png("BritishEnglish"), 10 * PATIENCE) + # FIXME -- we're accepting AmmericanEnglish here, despite the fact it should be BritishEnglish due to the above -- looks like a D-I bug to me + on_screen, _ = @screen.waitAny([diui_png("BritishEnglish"),diui_png("AmericanEnglish")], 10 * PATIENCE) @screen.type(Sikuli::Key.ENTER) end -- cgit v1.2.3-54-g00ecf