mediawiki-skins-MinervaNeue/tests/browser/features/step_definitions/watchstar_steps.rb
jdlrobson d5a60fdd43 Browser tests: Use generic toast step
Introduces a new generic
"I should see a toast with message ".*""
step reducing toast steps to two generic ones.

Change-Id: Ic8b91c78f6df088244f15223ee4ed658847a05b5
2017-07-27 13:41:54 -07:00

12 lines
422 B
Ruby

Given(/^I am viewing a watched page$/) do
api.create_page 'Selenium mobile watch test', 'watch test'
api.watch_page 'Selenium mobile watch test'
step 'I am on the "Selenium mobile watch test" page'
end
Given(/^I am viewing an unwatched page$/) do
api.create_page 'Selenium mobile watch test', 'watch test'
api.unwatch_page 'Selenium mobile watch test'
step 'I am on the "Selenium mobile watch test" page'
end