2015-09-25 21:17:54 +00:00
|
|
|
# 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
|
|
|
|
|
2016-04-19 14:32:55 +00:00
|
|
|
Given(/^I am using a nojs browser$/) do
|
|
|
|
# The following user-agent string contains:
|
|
|
|
# SymbianOS: for RL to NOT load the modern experience
|
|
|
|
# SMART-TV-SamsungBrowser: to bypass mobile-frontend and stay on the desktop site
|
|
|
|
browser_factory.override(browser_user_agent: 'SymbianOS,SMART-TV-SamsungBrowser')
|
2015-09-25 21:17:54 +00:00
|
|
|
end
|
|
|
|
|
2017-04-13 00:47:17 +00:00
|
|
|
Given(/^I wait for the page to load$/) do
|
|
|
|
# Wait for the page to load. We're technically clicking the <li> rather than <a>,
|
|
|
|
# so the special-case implicit wait after clicking links doesn't kick in.
|
|
|
|
browser.wait
|
|
|
|
end
|
|
|
|
|
2015-09-25 21:17:54 +00:00
|
|
|
Given(/^I am on Special Notifications page$/) do
|
|
|
|
expect(on(SpecialNotificationsPage).firstHeading).to match('Notifications')
|
|
|
|
end
|