Moved ULS tests from browsertests repository

Change-Id: I4f4a4c5530ad7e5dff70171b59a589dc98b1ef29
This commit is contained in:
Zeljko Filipin
2013-08-26 16:43:06 +02:00
parent a5d79594a3
commit 2547ed87b5
23 changed files with 844 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
class InterlanguagePage
include PageObject
include URL
def self.url
URL.url('Boleyn_family')
end
page_url url
include InterlanguagePageModule
end

View File

@@ -0,0 +1,23 @@
class LoginPage
include PageObject
include URL
page_url URL.url('Special:UserLogin')
div(:feedback, class: 'errorbox')
button(:login, id: 'wpLoginAttempt')
text_field(:password, id: 'wpPassword1')
a(:password_strength, text: 'password strength')
a(:phishing, text: 'phishing')
text_field(:username, id: 'wpName1')
a(:username_displayed, title: /Your user page/)
def logged_in_as_element
@browser.div(id: 'mw-content-text').p.b
end
def login_with(username, password)
self.username = username
self.password = password
login
end
end

View File

@@ -0,0 +1,11 @@
class NoInterlanguagePage
include PageObject
include URL
def self.url
URL.url('Think_Like_a_Cat')
end
page_url url
include InterlanguagePageModule
end

View File

@@ -0,0 +1,27 @@
class RandomPage
include PageObject
include URL
page_url URL.url('Special:Random')
span(:cog, title: 'Language settings')
a(:create_a_book, text: 'Create a book')
a(:download_as_pdf, text: 'Download as PDF')
a(:download_the_file, text: 'Download the file')
div(:input_method, class: 'imeselector imeselector-toggle')
a(:input_method_enabled, class: 'ime-name imeselector-toggle')
h3(:input_method_ime_list_title, class: 'ime-list-title')
ul(:input_method_language_list, class: 'ime-language-list')
div(:input_method_selector_menu, class: 'imeselector-menu')
text_field(:language_filter, id: 'languagefilter')
div(:language_settings_dialog, id: 'language-settings-dialog')
li(:main_page, id: 'n-mainpage-description')
a(:malayalam_link, title: 'Malayalam')
a(:more_languages, class: 'ime-selector-more-languages')
a(:print_export, text: 'Print/export')
a(:printable_version, text: 'Printable version')
li(:uls_malayalam_inscript2_item, data_ime_inputmethod: 'ml-inscript2')
button(:search_button, id: 'searchButton')
text_field(:search_input, id: 'searchInput')
a(:uls_trigger, class: 'uls-trigger')
end