Removed random page
Using a dedicated page instead of a random page. Paired with Amir Aharoni. Bug: 62479 Change-Id: I3750ecf972f52f205fd30855455ef6259b9c911d
This commit is contained in:
@@ -3,10 +3,10 @@ Given(/^that my browser's accept language is (.+)$/) do |language|
|
||||
$session_id = @browser.driver.instance_variable_get(:@bridge).session_id
|
||||
end
|
||||
|
||||
When(/^I visit a random page$/) do
|
||||
visit RandomPage
|
||||
When(/^I am at the preferences page$/) do
|
||||
visit PreferencesPage
|
||||
end
|
||||
|
||||
Then(/^link to the main page has text (.+)$/) do |text|
|
||||
on(RandomPage).main_page_element.text.should == text
|
||||
on(MainPage).main_page_element.text.should == text
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Given(/^I am at random page$/) do
|
||||
visit RandomPage
|
||||
Given(/^I am at the main page$/) do
|
||||
visit MainPage
|
||||
end
|
||||
|
||||
Given(/^I am logged out$/) do
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# encoding: utf-8
|
||||
|
||||
Given(/^I am on a wiki in Kotava language$/) do
|
||||
visit RandomPage
|
||||
step "I am at the main page"
|
||||
# Fake a Kotava Wiki
|
||||
@browser.execute_script( "mw.config.set( 'wgContentLanguage', 'avk' )" )
|
||||
end
|
||||
@@ -54,10 +54,6 @@ When(/^I press Control-M$/) do
|
||||
on(IMEPage).search_input_element.send_keys [:control, "m"]
|
||||
end
|
||||
|
||||
When(/^I go to another random page$/) do
|
||||
visit RandomPage
|
||||
end
|
||||
|
||||
Then(/^in it there must be an element with Malayalam text$/) do
|
||||
# 'input_method_enabled' alone only returns []
|
||||
on(IMEPage) do |page|
|
||||
|
||||
@@ -15,7 +15,7 @@ Given(/^I select a language different than English for display language$/) do
|
||||
end
|
||||
|
||||
When(/^I click on the link to select Malayalam$/) do
|
||||
on(RandomPage).malayalam_element.click
|
||||
on(MainPage).malayalam_element.click
|
||||
end
|
||||
|
||||
Then(/^I should see the text in the language panel in (.+?)$/) do |language|
|
||||
|
||||
Reference in New Issue
Block a user