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>2020-08-10 21:09:54 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-10 21:09:54 +0300
commit350fd8b878fe930b83c52ccae82f861cc499776a (patch)
treeaa01a35b06921103ba9967920165419accb9f72d /spec/features/invites_spec.rb
parent70732753863e569f95ed954ca3c41421292f912b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/invites_spec.rb')
-rw-r--r--spec/features/invites_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/features/invites_spec.rb b/spec/features/invites_spec.rb
index c0f453206a8..e7bcd7876ea 100644
--- a/spec/features/invites_spec.rb
+++ b/spec/features/invites_spec.rb
@@ -48,6 +48,14 @@ RSpec.describe 'Invites', :aggregate_failures do
expect(page).to have_content('To accept this invitation, sign in')
end
+ it 'pre-fills the "Username or email" field on the sign in box with the invite_email from the invite' do
+ expect(find_field('Username or email').value).to eq(group_invite.invite_email)
+ end
+
+ it 'pre-fills the Email field on the sign up box with the invite_email from the invite' do
+ expect(find_field('Email').value).to eq(group_invite.invite_email)
+ end
+
it 'sign in, grants access and redirects to group page' do
fill_in_sign_in_form(user)