mediawiki-extensions-Revisi.../tests/browser/features/support/pages/diff_page.rb
addshore d7caa6c1f3 Start browser tests (Initial test for beta feature switch)
This adds 1 simple browser test to make sure that the placeholder
for the revision slider loads when the beta feature is enabled and
does not load when it is disabled

More tests will follow.

Bug: T133278
Change-Id: I5be9014b6c5ac03128c034fd866141e89fd7a0ed
2016-06-30 14:46:37 +01:00

14 lines
288 B
Ruby

class DiffPage
include PageObject
p(:revisionslider_placeholder, id: 'mw-revision-slider-placeholder')
div(:revisionslider_container, id: 'mw-revision-slider-container')
def wait_for_slider_to_load
wait_until do
revisionslider_placeholder? == false
end
end
end