Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-10-28 15:10:22 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-10-28 15:10:22 +0300
commitd2f4295270852f1ec4b9736f1db493421729474d (patch)
treec3bb3833ab7b6039a6b7223cc26745d373295fa3 /spec/features/invites_spec.rb
parent89cbcca95d58b6185098c13467d2382032f11774 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/invites_spec.rb')
-rw-r--r--spec/features/invites_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/features/invites_spec.rb b/spec/features/invites_spec.rb
index 87fb8955dcc..f9ab780d2d6 100644
--- a/spec/features/invites_spec.rb
+++ b/spec/features/invites_spec.rb
@@ -103,6 +103,20 @@ RSpec.describe 'Group or Project invitations', :aggregate_failures do
expect(page).to have_content('You are already a member of this group.')
end
end
+
+ context 'when email case doesnt match', :js do
+ let(:invite_email) { 'User@example.com' }
+ let(:user) { create(:user, email: 'user@example.com') }
+
+ before do
+ sign_in(user)
+ visit invite_path(group_invite.raw_invite_token)
+ end
+
+ it 'accepts invite' do
+ expect(page).to have_content('You have been granted Developer access to group Owned.')
+ end
+ end
end
context 'when declining the invitation from invitation reminder email' do