Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cypress
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Docker
Cypress
Commits
2f09084e
Commit
2f09084e
authored
4 days ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Upgrade to 14.1.0
Add new command "loginDrush"
parent
92e2d965
Branches
main
Tags
14.1.0
No related merge requests found
Pipeline
#1432427
passed
4 days ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
commands.js
+7
-3
7 additions, 3 deletions
commands.js
with
8 additions
and
4 deletions
.gitlab-ci.yml
+
1
−
1
View file @
2f09084e
variables
:
VERSION
:
${CI_COMMIT_TAG}
CYPRESS_VERSION
:
1
3
.1
6
.0
CYPRESS_VERSION
:
1
4
.1.0
before_script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
...
...
This diff is collapsed.
Click to expand it.
commands.js
+
7
−
3
View file @
2f09084e
...
...
@@ -40,14 +40,18 @@ Cypress.Commands.add('createAndLogin', (username, role) => {
})
})
Cypress
.
Commands
.
add
(
'
createAndLoginDrush
'
,
(
username
,
role
)
=>
{
let
password
=
'
random-password-
'
+
Cypress
.
_
.
random
(
0
,
1
e6
);
cy
.
createDrupalUser
(
username
,
password
,
role
);
Cypress
.
Commands
.
add
(
'
loginDrush
'
,
(
username
)
=>
{
cy
.
drush
(
'
uli --uri
'
+
Cypress
.
config
(
'
baseUrl
'
)
+
'
--name
'
+
username
).
then
((
result
)
=>
{
cy
.
visit
(
result
.
stdout
);
})
})
Cypress
.
Commands
.
add
(
'
createAndLoginDrush
'
,
(
username
,
role
)
=>
{
let
password
=
'
random-password-
'
+
Cypress
.
_
.
random
(
0
,
1
e6
);
cy
.
createDrupalUser
(
username
,
password
,
role
);
cy
.
loginDrush
(
username
);
})
Cypress
.
Commands
.
add
(
'
deleteLogin
'
,
(
username
)
=>
{
cy
.
drush
(
'
user:cancel --delete-content
'
+
username
);
cy
.
deleteTestTaxonomyTerms
();
...
...
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