2014-09-15 17:24:57 +00:00
|
|
|
Given(/^I click for the Messages view$/) do
|
|
|
|
on(ArticlePage).messages_view_link_element.when_present.click
|
|
|
|
end
|
|
|
|
|
2014-09-24 18:31:19 +00:00
|
|
|
Given(/^I have a Flow message that triggers an alert notification$/) do
|
2014-08-13 23:11:38 +00:00
|
|
|
client = on(APIPage).client
|
2015-02-20 17:00:01 +00:00
|
|
|
username = session_username_b
|
2014-08-13 23:11:38 +00:00
|
|
|
step 'the user "' + username + '" exists'
|
2014-11-10 21:21:10 +00:00
|
|
|
client.log_in(username, ENV['MEDIAWIKI_PASSWORD'])
|
2015-02-20 16:43:04 +00:00
|
|
|
client.action(
|
|
|
|
'flow', token_type: 'edit', submodule: 'new-topic', page: 'Talk:Flow QA', nttopic: 'Mention #1',
|
2015-02-20 17:00:01 +00:00
|
|
|
ntcontent: '[[User:' + session_username + ']] I wanted to say hello.')
|
2014-08-13 23:11:38 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
When(/^I click the mark all as read button$/) do
|
|
|
|
on(ArticlePage).mark_as_read_element.when_present.click
|
|
|
|
end
|