Merge "CurlHttpRequest: Follow redirects even under open_basedir"
[lhc/web/wiklou.git] / tests / browser / features / step_definitions / preferences_user_profile_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 User profile$/) do
13 visit(PreferencesPage).user_profile_link_element.when_present.click
14 end
15
16 Then(/^I can change my gender$/) do
17 on(PreferencesUserProfilePage) do |page|
18 expect(page.gender_undefined_radio_element).to exist
19 expect(page.gender_male_radio_element).to exist
20 expect(page.gender_female_radio_element).to exist
21 end
22 end
23
24 Then(/^I can change my language$/) do
25 expect(on(PreferencesUserProfilePage).lang_select_element).to exist
26 end
27
28 Then(/^I can change my signature$/) do
29 expect(on(PreferencesUserProfilePage).signature_field_element).to exist
30 end
31
32 Then(/^I can see my Basic informations$/) do
33 expect(on(PreferencesUserProfilePage).basic_info_table_element).to exist
34 end
35
36 Then(/^I can see my email$/) do
37 expect(on(PreferencesUserProfilePage).email_table_element).to exist
38 end
39
40 Then(/^I can see my signature$/) do
41 expect(on(PreferencesUserProfilePage).signature_table_element).to exist
42 end