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:
Zeljko Filipin
2014-03-11 16:13:16 +01:00
parent 3797187998
commit b4af650730
13 changed files with 35 additions and 47 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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|

View File

@@ -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|