2 # This file is subject to the license terms in the LICENSE file found in the
3 # qa-browsertests top-level directory and at
4 # https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/LICENSE. No part of
5 # qa-browsertests, including this file, may be copied, modified, propagated, or
6 # distributed except according to the terms contained in the LICENSE file.
8 # Copyright 2012-2014 by the Mediawiki developers. See the CREDITS file in the
9 # qa-browsertests top-level directory and at
10 # https://git.wikimedia.org/blob/qa%2Fbrowsertests/HEAD/CREDITS
12 When(/^I click Appearance$/) do
13 visit(PreferencesPage).appearance_link_element.when_present.click
16 When(/^I navigate to Preferences$/) do
17 visit(PreferencesPage)
20 Then(/^I can click Save$/) do
21 on(PreferencesPage).save_button_element.should exist
24 Then(/^I can restore default settings$/) do
25 on(PreferencesAppearancePage).restore_default_link_element.should exist
28 Then(/^I can see local time$/) do
29 on(PreferencesAppearancePage).local_time_span_element.should exist
32 Then(/^I can see time offset section$/) do
33 on(PreferencesAppearancePage).time_offset_table_element.should be_visible
36 Then(/^I can select date format$/) do
37 on(PreferencesAppearancePage) do |page|
38 page.no_preference_radio_element.should exist
39 page.mo_day_year_radio_element.should exist
40 page.day_mo_year_radio_element.should exist
41 page.year_mo_day_radio_element.should exist
42 page.iso_8601_radio_element.should exist
46 Then(/^I can select image size$/) do
47 on(PreferencesAppearancePage).size_select_element.should exist
50 Then(/^I can select my time zone$/) do
51 on(PreferencesAppearancePage) do |page|
52 page.time_offset_select_element.should exist
53 page.other_offset_element.should exist
57 Then(/^I can select skins$/) do
58 on(PreferencesAppearancePage) do |page|
59 page.cologne_blue_element.should exist
60 page.modern_element.should exist
61 page.monobook_element.should exist
62 page.vector_element.should exist
66 Then(/^I can select Threshold for stub link$/) do
67 on(PreferencesAppearancePage).threshold_select_element.should exist
70 Then(/^I can select thumbnail size$/) do
71 on(PreferencesAppearancePage).thumb_select_element.should exist
74 Then(/^I can select underline preferences$/) do
75 on(PreferencesAppearancePage).underline_select_element.should exist
78 Then(/^I have advanced options checkboxes$/) do
79 on(PreferencesAppearancePage) do |page|
80 page.hidden_categories_check_element.should exist
81 page.auto_number_check_element.should exist