Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
Qpixel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Answers
Qpixel
Commits
16b5777e
Commit
16b5777e
authored
Aug 2, 2023
by
Taico Aerts
Browse files
Options
Downloads
Patches
Plain Diff
Expand registration test
Check that confirming email is required.
parent
4edcac65
No related branches found
No related tags found
2 merge requests
!51
Upgrade to latest qpixel
,
!50
Update to latest codidact changes
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/system/login_test.rb
+7
-1
7 additions, 1 deletion
test/system/login_test.rb
with
7 additions
and
1 deletion
test/system/login_test.rb
+
7
−
1
View file @
16b5777e
...
...
@@ -4,8 +4,9 @@ class LoginTest < ApplicationSystemTestCase
test
'User can register a new account and sign-in to it after confirming their email'
do
email
=
'test@test.com'
username
=
'Test User'
password
=
'test1
23
'
password
=
'
login_
test
_
1'
# Sign up for an account
visit
root_url
click_on
'Sign Up'
fill_in
'Email'
,
with:
email
...
...
@@ -19,6 +20,11 @@ class LoginTest < ApplicationSystemTestCase
user
=
User
.
last
# Try logging in directly, this should fail because not confirmed yet
log_in
user
,
password
assert_selector
'.notice'
,
text:
'You have to confirm your email address before continuing.'
# Confirm email and sign in again, should succeed this time
confirm_email
user
log_in
user
,
password
assert_selector
'.notice'
,
text:
'Signed in successfully.'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment