mediawiki-extensions-Echo/tests/browser/features/step_definitions/messages_steps.rb
Cmcmahon 7eacda1306 QA: get messages test to pass properly
This is lieu of

https://gerrit.wikimedia.org/r/#/c/159685/

If we merge this patch, we should abandon 159685

Change-Id: I84e0a1df6076a68ee7e97feb929195da9937c412
2014-09-15 11:07:45 -07:00

17 lines
625 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$/) 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