1 When(/^I click User profile$/) do
2 visit(PreferencesPage).user_profile_link_element.when_present.click
5 Then(/^I can change my gender$/) do
6 on(PreferencesUserProfilePage) do |page|
7 expect(page.gender_undefined_radio_element).to exist
8 expect(page.gender_male_radio_element).to exist
9 expect(page.gender_female_radio_element).to exist
13 Then(/^I can change my language$/) do
14 expect(on(PreferencesUserProfilePage).lang_select_element).to exist
17 Then(/^I can change my signature$/) do
18 expect(on(PreferencesUserProfilePage).signature_field_element).to exist
21 Then(/^I can see my Basic informations$/) do
22 expect(on(PreferencesUserProfilePage).basic_info_table_element).to exist
25 Then(/^I can see my email$/) do
26 expect(on(PreferencesUserProfilePage).email_table_element).to exist
29 Then(/^I can see my signature$/) do
30 expect(on(PreferencesUserProfilePage).signature_table_element).to exist