mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-25 16:26:45 +00:00
bb6eef198c
yippee ki yay! Tests basic functionality 1) presence of Echo button 2) behaviour of clicking Echo button Change-Id: I6334264e1ee73a59da1e7b0c3f18a1d43b565f3a
20 lines
715 B
Ruby
20 lines
715 B
Ruby
# For use in Firefox browser tests only
|
|
Given /^I am using user agent "(.+)"$/ do |user_agent|
|
|
@user_agent = user_agent
|
|
@browser = browser(test_name(@scenario), {user_agent: user_agent})
|
|
$session_id = @browser.driver.instance_variable_get(:@bridge).session_id
|
|
end
|
|
|
|
Then(/^I find myself on the "(.*?)" page$/) do |title|
|
|
on(ArticlePage, :using_params => {:article_name => title})
|
|
end
|
|
|
|
Given(/^I am viewing the basic non-JavaScript site$/) do
|
|
step 'I am using user agent "Mozilla/4.0 (compatible; MSIE 5.00; Windows 98)"'
|
|
end
|
|
|
|
Given(/^I am on the "(.+)" page$/) do |title|
|
|
on(APIPage).create title, "Test is used by Selenium web driver"
|
|
visit(ArticlePage, :using_params => {:article_name => title})
|
|
end
|