diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-06 03:11:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-06 03:11:07 +0300 |
commit | 2c39efa4582c5a225b1e1c4a902cff21bae5c8df (patch) | |
tree | 56fcb1401d6703aa4ff12e6a2e3df91d4265f980 /spec | |
parent | 6f8fe6450380e608cbc1c21f600bee678dde228e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/invites_spec.rb | 6 | ||||
-rw-r--r-- | spec/helpers/registrations_helper_spec.rb | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/spec/features/invites_spec.rb b/spec/features/invites_spec.rb index 939de930df8..b3bd358170d 100644 --- a/spec/features/invites_spec.rb +++ b/spec/features/invites_spec.rb @@ -31,11 +31,15 @@ RSpec.describe 'Group or Project invitations', :aggregate_failures, feature_cate wait_for_all_requests - expect(page).to have_selector('.gl-field-success-outline') + expect_username_to_be_validated click_button submit_button_text end + def expect_username_to_be_validated + expect(page).to have_selector('[data-testid="new_user_username_field"].gl-field-success-outline') + end + def fill_in_welcome_form select 'Software Developer', from: 'user_role' click_button 'Get started!' diff --git a/spec/helpers/registrations_helper_spec.rb b/spec/helpers/registrations_helper_spec.rb index 85cedd4aace..74d46245cc2 100644 --- a/spec/helpers/registrations_helper_spec.rb +++ b/spec/helpers/registrations_helper_spec.rb @@ -5,7 +5,7 @@ require 'spec_helper' RSpec.describe RegistrationsHelper, feature_category: :user_management do describe '#signup_username_data_attributes' do it 'has expected attributes' do - expect(helper.signup_username_data_attributes.keys).to include(:min_length, :min_length_message, :max_length, :max_length_message, :qa_selector) + expect(helper.signup_username_data_attributes.keys).to include(:min_length, :min_length_message, :max_length, :max_length_message, :testid) end end |