Merge "Update the Chinese conversion table for Chinese WikiProjects"
[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 page.gender_undefined_radio_element.should exist
19 page.gender_male_radio_element.should exist
20 page.gender_female_radio_element.should exist
21 end
22 end
23
24 Then(/^I can change my language$/) do
25 on(PreferencesUserProfilePage).lang_select_element.should exist
26 end
27
28 Then(/^I can change my signature$/) do
29 on(PreferencesUserProfilePage).signature_field_element.should exist
30 end
31
32 Then(/^I can see my Basic informations$/) do
33 on(PreferencesUserProfilePage).basic_info_table_element.should exist
34 end
35
36 Then(/^I can see my email$/) do
37 on(PreferencesUserProfilePage).email_table_element.should exist
38 end
39
40 Then(/^I can see my signature$/) do
41 on(PreferencesUserProfilePage).signature_table_element.should exist
42 end