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
7cb95657
Commit
7cb95657
authored
1 year ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
amos/allianzapps/sites/azch#595 Add support for Cypress and Mailpit working together
parent
a2ac6e92
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#1155848
passed
1 year ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
commands.js
+10
-0
10 additions, 0 deletions
commands.js
with
10 additions
and
0 deletions
commands.js
+
10
−
0
View file @
7cb95657
...
...
@@ -134,3 +134,13 @@ Cypress.Commands.add('assertMailpitInbox', (callback) => {
callback
(
resp
);
})
})
Cypress
.
Commands
.
add
(
'
assertMailpitMessage
'
,
(
id
,
callback
)
=>
{
cy
.
request
({
url
:
Cypress
.
env
(
'
mailpitUrl
'
)
+
'
/api/v1/message/
'
+
id
,
accept
:
'
application/json
'
}).
then
((
resp
)
=>
{
expect
(
resp
.
status
).
to
.
eq
(
200
);
callback
(
resp
);
})
})
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