summaryrefslogtreecommitdiff
path: root/tests/browser/features/step_definitions/preferences_appearance_steps.rb
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:30:02 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:30:02 -0400
commit1de335ad3f395ca6861085393ba366a9e3fb4a0d (patch)
treef1fdd326034e05177596851be6a7127615d81498 /tests/browser/features/step_definitions/preferences_appearance_steps.rb
parent9c75fa8ff6d4d38ef552c00fef5969fb154765e8 (diff)
parentf6d65e533c62f6deb21342d4901ece24497b433e (diff)
Merge commit 'f6d65'
# Conflicts: # skins/ArchLinux/ArchLinux.php
Diffstat (limited to 'tests/browser/features/step_definitions/preferences_appearance_steps.rb')
-rw-r--r--tests/browser/features/step_definitions/preferences_appearance_steps.rb44
1 files changed, 21 insertions, 23 deletions
diff --git a/tests/browser/features/step_definitions/preferences_appearance_steps.rb b/tests/browser/features/step_definitions/preferences_appearance_steps.rb
index 0046af69..133eec3b 100644
--- a/tests/browser/features/step_definitions/preferences_appearance_steps.rb
+++ b/tests/browser/features/step_definitions/preferences_appearance_steps.rb
@@ -18,68 +18,66 @@ When(/^I navigate to Preferences$/) do
end
Then(/^I can click Save$/) do
- on(PreferencesPage).save_button_element.should exist
+ expect(on(PreferencesPage).save_button_element).to exist
end
Then(/^I can restore default settings$/) do
- on(PreferencesAppearancePage).restore_default_link_element.should exist
+ expect(on(PreferencesAppearancePage).restore_default_link_element).to exist
end
Then(/^I can see local time$/) do
- on(PreferencesAppearancePage).local_time_span_element.should exist
+ expect(on(PreferencesAppearancePage).local_time_span_element).to exist
end
Then(/^I can see time offset section$/) do
- on(PreferencesAppearancePage).time_offset_table_element.should be_visible
+ expect(on(PreferencesAppearancePage).time_offset_table_element).to be_visible
end
Then(/^I can select date format$/) do
on(PreferencesAppearancePage) do |page|
- page.no_preference_radio_element.should exist
- page.mo_day_year_radio_element.should exist
- page.day_mo_year_radio_element.should exist
- page.year_mo_day_radio_element.should exist
- page.iso_8601_radio_element.should exist
+ 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
- on(PreferencesAppearancePage).size_select_element.should exist
+ expect(on(PreferencesAppearancePage).size_select_element).to exist
end
Then(/^I can select my time zone$/) do
on(PreferencesAppearancePage) do |page|
- page.time_offset_select_element.should exist
- page.other_offset_element.should exist
+ expect(page.time_offset_select_element).to exist
+ expect(page.other_offset_element).to exist
end
end
Then(/^I can select skins$/) do
on(PreferencesAppearancePage) do |page|
- page.cologne_blue_element.should exist
- page.modern_element.should exist
- page.monobook_element.should exist
- page.vector_element.should exist
+ expect(page.cologne_blue_element).to exist
+ expect(page.modern_element).to exist
+ expect(page.monobook_element).to exist
+ expect(page.vector_element).to exist
end
end
Then(/^I can select Threshold for stub link$/) do
- on(PreferencesAppearancePage).threshold_select_element.should exist
+ expect(on(PreferencesAppearancePage).threshold_select_element).to exist
end
Then(/^I can select thumbnail size$/) do
- on(PreferencesAppearancePage).thumb_select_element.should exist
+ expect(on(PreferencesAppearancePage).thumb_select_element).to exist
end
Then(/^I can select underline preferences$/) do
- on(PreferencesAppearancePage).underline_select_element.should exist
+ expect(on(PreferencesAppearancePage).underline_select_element).to exist
end
Then(/^I have advanced options checkboxes$/) do
on(PreferencesAppearancePage) do |page|
- page.hidden_categories_check_element.should exist
- page.auto_number_check_element.should exist
+ expect(page.hidden_categories_check_element).to exist
+ expect(page.auto_number_check_element).to exist
end
end
-
-