mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-02 19:36:48 +00:00
fcd695a076
No change to function, just cleaning up Change-Id: I1b0b4fe8e4f785cbeebc2d1415a45f831dc75f5c
18 lines
669 B
Ruby
18 lines
669 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 = get_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:' + get_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
|