Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
server
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
There was an error fetching the commit references. Please try again later.
Show more breadcrumbs
Coko Org
Products
ketty
server
Commits
c3f72a7c
Commit
c3f72a7c
authored
1 year ago
by
Bela Toci
Browse files
Options
Downloads
Patches
Plain Diff
test(fix): added script for verified user
parent
121d00d0
No related branches found
No related tags found
1 merge request
!34
feat:added script for verified user in cypress
Pipeline
#56214
failed with stages
in 4 minutes and 59 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/seeds/createVerifiedUser.js
+8
-3
8 additions, 3 deletions
scripts/seeds/createVerifiedUser.js
with
8 additions
and
3 deletions
scripts/seeds/createVerifiedUser.js
+
8
−
3
View file @
c3f72a7c
...
...
@@ -7,13 +7,18 @@ const User = require('../../models/user/user.model')
;(
async
()
=>
{
try
{
const
email
=
process
.
argv
[
2
]
const
username
=
process
.
argv
[
3
]
// const username = process.argv[3]
const
givenNames
=
process
.
argv
[
3
]
const
surname
=
process
.
argv
[
4
]
const
username
=
process
.
argv
[
5
]
const
newUser
=
await
User
.
insert
({
username
,
password
:
'
Password
@123
'
,
//
username
: 'user'
,
password
:
'
Test
@123
'
,
agreedTc
:
true
,
isActive
:
true
,
givenNames
,
surname
,
})
// eslint-disable-next-line no-console
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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