Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
805
Merge Requests
52
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
a5f57be5
Commit
a5f57be5
authored
2 hours ago
by
Ben Hayward
Browse files
Options
Download
Update commands.js
parent
95676310
feat/e2e-pipeline-adjustments
1 merge request
!655
WIP: [Sprint/RollingRabbit](fix): E2E Pipeline Adjustments
Pipeline
#95938654
passed with stages
in 88 minutes and 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
cypress/support/commands.js
View file @
a5f57be5
...
...
@@ -74,15 +74,16 @@ const poster = {
Cypress
.
Commands
.
add
(
'
login
'
,
(
canary
=
false
,
username
,
password
)
=>
{
cy
.
clearCookies
();
cy
.
setCookie
(
'
staging
'
,
"
1
"
);
// Run in staging mode. Note: does not impact review sites
cy
.
server
();
cy
.
route
(
"
POST
"
,
"
/api/v1/authenticate
"
).
as
(
"
postLogin
"
);
username
=
username
?
username
:
Cypress
.
env
().
username
;
password
=
password
?
password
:
Cypress
.
env
().
password
;
cy
.
visit
(
'
/login
'
)
.
location
(
'
pathname
'
)
.
should
(
'
eq
'
,
'
/newsfeed/subscriptions
'
);
cy
.
server
();
cy
.
route
(
"
POST
"
,
"
/api/v1/authenticate
"
).
as
(
"
postLogin
"
);
.
should
(
'
eq
'
,
'
/login
'
);
cy
.
get
(
loginForm
.
username
).
focus
().
type
(
username
);
cy
.
get
(
loginForm
.
password
).
focus
().
type
(
password
);
...
...
This diff is collapsed.
Please
register
or
sign in
to comment