diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-20 02:18:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-20 02:18:09 +0300 |
commit | 6ed4ec3e0b1340f96b7c043ef51d1b33bbe85fde (patch) | |
tree | dc4d20fe6064752c0bd323187252c77e0a89144b /spec/features/profiles/user_edit_profile_spec.rb | |
parent | 9868dae7fc0655bd7ce4a6887d4e6d487690eeed (diff) |
Add latest changes from gitlab-org/gitlab@15-4-stable-eev15.4.0-rc42
Diffstat (limited to 'spec/features/profiles/user_edit_profile_spec.rb')
-rw-r--r-- | spec/features/profiles/user_edit_profile_spec.rb | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/spec/features/profiles/user_edit_profile_spec.rb b/spec/features/profiles/user_edit_profile_spec.rb index 2f7b722f553..d887a367fcb 100644 --- a/spec/features/profiles/user_edit_profile_spec.rb +++ b/spec/features/profiles/user_edit_profile_spec.rb @@ -8,6 +8,7 @@ RSpec.describe 'User edit profile' do let(:user) { create(:user) } before do + stub_feature_flags(remove_user_attributes_projects: false) sign_in(user) visit(profile_path) end @@ -179,7 +180,7 @@ RSpec.describe 'User edit profile' do end it 'adds emoji to user status' do - emoji = 'biohazard' + emoji = 'basketball' select_emoji(emoji) submit_settings @@ -192,7 +193,7 @@ RSpec.describe 'User edit profile' do it 'adds message to user status' do message = 'I have something to say' - fill_in 'js-status-message-field', with: message + fill_in s_("SetStatusModal|What's your status?"), with: message submit_settings visit_user @@ -207,7 +208,7 @@ RSpec.describe 'User edit profile' do emoji = '8ball' message = 'Playing outside' select_emoji(emoji) - fill_in 'js-status-message-field', with: message + fill_in s_("SetStatusModal|What's your status?"), with: message submit_settings visit_user @@ -229,7 +230,7 @@ RSpec.describe 'User edit profile' do end visit(profile_path) - click_button 'js-clear-user-status-button' + click_button s_('SetStatusModal|Clear status') submit_settings visit_user @@ -239,9 +240,9 @@ RSpec.describe 'User edit profile' do it 'displays a default emoji if only message is entered' do message = 'a status without emoji' - fill_in 'js-status-message-field', with: message + fill_in s_("SetStatusModal|What's your status?"), with: message - within('.js-toggle-emoji-menu') do + within('.emoji-menu-toggle-button') do expect(page).to have_emoji('speech_balloon') end end @@ -405,7 +406,7 @@ RSpec.describe 'User edit profile' do it 'adds message to user status' do message = 'I have something to say' open_user_status_modal - find('.js-status-message-field').native.send_keys(message) + find_field(s_("SetStatusModal|What's your status?")).native.send_keys(message) set_user_status_in_modal visit_user @@ -421,7 +422,7 @@ RSpec.describe 'User edit profile' do message = 'Playing outside' open_user_status_modal select_emoji(emoji, true) - find('.js-status-message-field').native.send_keys(message) + find_field(s_("SetStatusModal|What's your status?")).native.send_keys(message) set_user_status_in_modal visit_user @@ -445,7 +446,7 @@ RSpec.describe 'User edit profile' do open_edit_status_modal - find('.js-clear-user-status-button').click + click_button s_('SetStatusModal|Clear status') set_user_status_in_modal visit_user @@ -490,7 +491,7 @@ RSpec.describe 'User edit profile' do it 'displays a default emoji if only message is entered' do message = 'a status without emoji' open_user_status_modal - find('.js-status-message-field').native.send_keys(message) + find_field(s_("SetStatusModal|What's your status?")).native.send_keys(message) expect(page).to have_emoji('speech_balloon') end |