Merge "Add 1 pixel of tolerance to the basic test."

This commit is contained in:
jenkins-bot 2014-05-15 20:42:52 +00:00 committed by Gerrit Code Review
commit eecde58ff8
2 changed files with 3 additions and 2 deletions

View file

@ -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)

View file

@ -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