1 When(/^I click Appearance$/) do
2 visit(PreferencesPage).appearance_link_element.when_present.click
5 When(/^I navigate to Preferences$/) do
9 Then(/^I can click Save$/) do
10 expect(on(PreferencesPage).save_button_element).to exist
13 Then(/^I can restore default settings$/) do
14 expect(on(PreferencesAppearancePage).restore_default_link_element).to exist
17 Then(/^I can see local time$/) do
18 expect(on(PreferencesAppearancePage).local_time_span_element).to exist
21 Then(/^I can see time offset section$/) do
22 expect(on(PreferencesAppearancePage).time_offset_table_element).to be_visible
25 Then(/^I can select date format$/) do
26 on(PreferencesAppearancePage) do |page|
27 expect(page.no_preference_radio_element).to exist
28 expect(page.mo_day_year_radio_element).to exist
29 expect(page.day_mo_year_radio_element).to exist
30 expect(page.year_mo_day_radio_element).to exist
31 expect(page.iso_8601_radio_element).to exist
35 Then(/^I can select image size$/) do
36 expect(on(PreferencesAppearancePage).size_select_element).to exist
39 Then(/^I can select my time zone$/) do
40 on(PreferencesAppearancePage) do |page|
41 expect(page.time_offset_select_element).to exist
42 expect(page.other_offset_element).to exist
46 Then(/^I can select skin Vector$/) do
47 on(PreferencesAppearancePage) do |page|
48 expect(page.vector_element).to exist
52 Then(/^I can select Threshold for stub link$/) do
53 expect(on(PreferencesAppearancePage).threshold_select_element).to exist
56 Then(/^I can select thumbnail size$/) do
57 expect(on(PreferencesAppearancePage).thumb_select_element).to exist
60 Then(/^I can select underline preferences$/) do
61 expect(on(PreferencesAppearancePage).underline_select_element).to exist
64 Then(/^I have advanced options checkboxes$/) do
65 on(PreferencesAppearancePage) do |page|
66 expect(page.hidden_categories_check_element).to exist
67 expect(page.auto_number_check_element).to exist