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.
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
12 When(/^I click User profile$/) do
13 visit(PreferencesPage).user_profile_link_element.when_present.click
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
24 Then(/^I can change my language$/) do
25 on(PreferencesUserProfilePage).lang_select_element.should exist
28 Then(/^I can change my signature$/) do
29 on(PreferencesUserProfilePage).signature_field_element.should exist
32 Then(/^I can see my Basic informations$/) do
33 on(PreferencesUserProfilePage).basic_info_table_element.should exist
36 Then(/^I can see my email$/) do
37 on(PreferencesUserProfilePage).email_table_element.should exist
40 Then(/^I can see my signature$/) do
41 on(PreferencesUserProfilePage).signature_table_element.should exist