mediawiki-extensions-Echo/tests/browser/features/step_definition/no_javascript.rb
Moriel Schottlender 3ea86361a4 Rewrite browser tests for Echo
The new oouified echo popup makes the tests invalid; this commit
rewrites those tests.

Also by doing this commit we are upgrading to Selenium 1.4.

Change-Id: I26215558768d55be449276c55b4b745c3a458ecb
2015-09-25 15:50:59 -07:00

13 lines
444 B
Ruby

# This test has no javascript
# Therefore this test has no AJAX
# Therefore it should run without any "when_present" clauses
# If you need a "when_present" to make the test run, that is a bug
Given(/^I am using user agent "(.+)"$/) do |user_agent|
browser_factory.override(browser_user_agent: user_agent)
end
Given(/^I am on Special Notifications page$/) do
expect(on(SpecialNotificationsPage).firstHeading).to match('Notifications')
end