Moved ULS tests from browsertests repository
Change-Id: I4f4a4c5530ad7e5dff70171b59a589dc98b1ef29
This commit is contained in:
11
tests/browser/features/support/pages/interlanguage_page.rb
Normal file
11
tests/browser/features/support/pages/interlanguage_page.rb
Normal 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
|
||||
23
tests/browser/features/support/pages/login_page.rb
Normal file
23
tests/browser/features/support/pages/login_page.rb
Normal 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
|
||||
@@ -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
|
||||
27
tests/browser/features/support/pages/random_page.rb
Normal file
27
tests/browser/features/support/pages/random_page.rb
Normal 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
|
||||
Reference in New Issue
Block a user