Looks like the tests were developed targeting en.wikipedia.beta.wmflabs.org that has 4 skins by default. The commit removes checks for all skins but Vector, which is installed by default. (At least in my MediaWiki-Vagrant installation.) Bug: T94150 Change-Id: I68f864bd194dbb251acab3d94699f1e701300ab2
80 lines
2.5 KiB
Ruby
80 lines
2.5 KiB
Ruby
#
|
|
# This file is subject to the license terms in the LICENSE file found in the
|
|
# qa-browsertests top-level directory and at
|
|
# https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/LICENSE. No part of
|
|
# qa-browsertests, including this file, may be copied, modified, propagated, or
|
|
# distributed except according to the terms contained in the LICENSE file.
|
|
#
|
|
# Copyright 2012-2014 by the Mediawiki developers. See the CREDITS file in the
|
|
# qa-browsertests top-level directory and at
|
|
# https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/CREDITS
|
|
#
|
|
When(/^I click Appearance$/) do
|
|
visit(PreferencesPage).appearance_link_element.when_present.click
|
|
end
|
|
|
|
When(/^I navigate to Preferences$/) do
|
|
visit(PreferencesPage)
|
|
end
|
|
|
|
Then(/^I can click Save$/) do
|
|
expect(on(PreferencesPage).save_button_element).to exist
|
|
end
|
|
|
|
Then(/^I can restore default settings$/) do
|
|
expect(on(PreferencesAppearancePage).restore_default_link_element).to exist
|
|
end
|
|
|
|
Then(/^I can see local time$/) do
|
|
expect(on(PreferencesAppearancePage).local_time_span_element).to exist
|
|
end
|
|
|
|
Then(/^I can see time offset section$/) do
|
|
expect(on(PreferencesAppearancePage).time_offset_table_element).to be_visible
|
|
end
|
|
|
|
Then(/^I can select date format$/) do
|
|
on(PreferencesAppearancePage) do |page|
|
|
expect(page.no_preference_radio_element).to exist
|
|
expect(page.mo_day_year_radio_element).to exist
|
|
expect(page.day_mo_year_radio_element).to exist
|
|
expect(page.year_mo_day_radio_element).to exist
|
|
expect(page.iso_8601_radio_element).to exist
|
|
end
|
|
end
|
|
|
|
Then(/^I can select image size$/) do
|
|
expect(on(PreferencesAppearancePage).size_select_element).to exist
|
|
end
|
|
|
|
Then(/^I can select my time zone$/) do
|
|
on(PreferencesAppearancePage) do |page|
|
|
expect(page.time_offset_select_element).to exist
|
|
expect(page.other_offset_element).to exist
|
|
end
|
|
end
|
|
|
|
Then(/^I can select skin Vector$/) do
|
|
on(PreferencesAppearancePage) do |page|
|
|
expect(page.vector_element).to exist
|
|
end
|
|
end
|
|
|
|
Then(/^I can select Threshold for stub link$/) do
|
|
expect(on(PreferencesAppearancePage).threshold_select_element).to exist
|
|
end
|
|
|
|
Then(/^I can select thumbnail size$/) do
|
|
expect(on(PreferencesAppearancePage).thumb_select_element).to exist
|
|
end
|
|
|
|
Then(/^I can select underline preferences$/) do
|
|
expect(on(PreferencesAppearancePage).underline_select_element).to exist
|
|
end
|
|
|
|
Then(/^I have advanced options checkboxes$/) do
|
|
on(PreferencesAppearancePage) do |page|
|
|
expect(page.hidden_categories_check_element).to exist
|
|
expect(page.auto_number_check_element).to exist
|
|
end
|
|
end
|