mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 09:10:12 +00:00
92ee69b92d
Also adds browser tests for the behaviour of the mark all as read button to ensure it only clears message notifications. Dependency: Ifb7b1b7b7feb4a5af65c79bb16b91a5a9c70166c Change-Id: I46e1de229e32d705e67cebde678ecea3f3633906
13 lines
512 B
Ruby
13 lines
512 B
Ruby
Given(/^I have a Flow message$/) 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
|