Merge "update.php: Remove max seconds of lag from wfWaitForSlaves() call"
[lhc/web/wiklou.git] / tests / browser / features / step_definitions / preferences_editing_steps.rb
1 #
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.
7 #
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
11 #
12 When(/^I click Editing$/) do
13 visit(PreferencesPage).editing_link_element.when_present.click
14 end
15
16 Then(/^I can select edit area font style$/) do
17 expect(on(PreferencesEditingPage).edit_area_font_style_select_element.when_present).to exist
18 end
19
20 Then(/^I can select live preview$/) do
21 expect(on(PreferencesEditingPage).live_preview_check_element.when_present).to exist
22 end
23
24 Then(/^I can select section editing by double clicking$/) do
25 expect(on(PreferencesEditingPage).edit_section_double_click_check_element.when_present).to exist
26 end
27
28 Then(/^I can select section editing by right clicking$/) do
29 expect(on(PreferencesEditingPage).edit_section_right_click_check_element.when_present).to exist
30 end
31
32 Then(/^I can select section editing via edit links$/) do
33 expect(on(PreferencesEditingPage).edit_section_edit_link_element.when_present).to exist
34 end
35
36 Then(/^I can select show edit toolbar$/) do
37 expect(on(PreferencesEditingPage).show_edit_toolbar_check_element.when_present).to exist
38 end
39
40 Then(/^I can select show preview before edit box$/) do
41 expect(on(PreferencesEditingPage).preview_on_top_check_element.when_present).to exist
42 end
43
44 Then(/^I can select show preview on first edit$/) do
45 expect(on(PreferencesEditingPage).preview_on_first_check_element.when_present).to exist
46 end
47
48 Then(/^I can select to prompt me when entering a blank edit summary$/) do
49 expect(on(PreferencesEditingPage).forced_edit_summary_check_element.when_present).to exist
50 end
51
52 Then(/^I can select to warn me when I leave an edit page with unsaved changes$/) do
53 expect(on(PreferencesEditingPage).unsaved_changes_check_element.when_present).to exist
54 end