diff --git a/tests/browser/features/basic_mmv_navigation.feature b/tests/browser/features/basic_mmv_navigation.feature index 165bd01ad..4054b217d 100644 --- a/tests/browser/features/basic_mmv_navigation.feature +++ b/tests/browser/features/basic_mmv_navigation.feature @@ -1,4 +1,4 @@ -@en.wikipedia.beta.wmflabs.org @firefox +@en.wikipedia.beta.wmflabs.org @firefox @chrome @internet_explorer_9 @internet_explorer_10 Feature: Basic Multimedia Viewer navigation Scenario: Multimedia Viewer (MMV) diff --git a/tests/browser/features/step_definitions/basic_mmv_navigation_steps.rb b/tests/browser/features/step_definitions/basic_mmv_navigation_steps.rb index 4a3be29cb..2c56f94ad 100644 --- a/tests/browser/features/step_definitions/basic_mmv_navigation_steps.rb +++ b/tests/browser/features/step_definitions/basic_mmv_navigation_steps.rb @@ -70,7 +70,8 @@ end Then(/^the wiki article should be scrolled to the same position as before opening MMV$/) do on(E2ETestPage) do |page| - page.execute_script("return $(window).scrollTop();").should eq @articleScrollTop + @scrollDifference = page.execute_script("return $(window).scrollTop();") - @articleScrollTop + @scrollDifference.abs.should be < 2 end end