mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-09-29 13:17:35 +00:00
Merge "Add 1 pixel of tolerance to the basic test."
This commit is contained in:
commit
eecde58ff8
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue