mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-03 03:47:16 +00:00
8b2c6355cc
This browser test checks that mentions go to alerts and talk page messages go to messages popup. This also upgrades the MW-Selenium version in Echo tests to 1.6.1. Depends on MW-Selenium version 1.6.1 (See T114061) Bug: T113081 Change-Id: I40a17500cdfb838420c04dc0b9268ba56515cc2c
26 lines
605 B
Ruby
26 lines
605 B
Ruby
module EchoAPIHelper
|
|
def create_page_with_user(title, text, username)
|
|
as_user(username) do
|
|
api.create_page title, text
|
|
end
|
|
end
|
|
|
|
def clear_unread_notifications(username)
|
|
as_user(username) do
|
|
api.action('echomarkread', token_type: 'csrf', all: '1')
|
|
end
|
|
end
|
|
|
|
def update_seentime(username, notificationType)
|
|
as_user(username) do
|
|
api.action('echomarkseen', token_type: 'csrf', type: notificationType)
|
|
end
|
|
end
|
|
|
|
def watch_page(username, pageTitle)
|
|
as_user(username) do
|
|
api.action('watch', token_type: 'watch', title: pageTitle)
|
|
end
|
|
end
|
|
end
|