mediawiki-extensions-Echo/tests/browser/features/step_definitions/messages_steps.rb
Cmcmahon 7d607dbfb6 QA: update for rubocop offenses
Do not name methods starting with "get"

Change-Id: If4adf0c775b031d6a462e00aed8b588077169413
2015-02-20 10:00:01 -07:00

18 lines
661 B
Ruby

Given(/^I click for the Messages view$/) do
on(ArticlePage).messages_view_link_element.when_present.click
end
Given(/^I have a Flow message that triggers an alert notification$/) do
client = on(APIPage).client
username = session_username_b
step 'the user "' + username + '" exists'
client.log_in(username, ENV['MEDIAWIKI_PASSWORD'])
client.action(
'flow', token_type: 'edit', submodule: 'new-topic', page: 'Talk:Flow QA', nttopic: 'Mention #1',
ntcontent: '[[User:' + session_username + ']] I wanted to say hello.')
end
When(/^I click the mark all as read button$/) do
on(ArticlePage).mark_as_read_element.when_present.click
end