Skip to content

Commit 0cf0255

Browse files
committed
Disabled video recording for running in headless
1 parent 70c6421 commit 0cf0255

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

cypress.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const { defineConfig } = require("cypress");
22

33
module.exports = defineConfig({
44
projectId: 'dpju4p',
5+
video: false,
56
e2e: {
67
setupNodeEvents(on, config) {
78
// implement node event listeners here

cypress/e2e/Conduit App/Login/loginTests.cy.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
beforeEach(() => {
2+
// Intercept and Alias API Requests
3+
cy.intercept('POST', 'https://api.realworld.io/api/users/login').as('login')
4+
25
// Go to URL
36
cy.visit('https://demo.realworld.io/#/')
47
})
@@ -54,7 +57,7 @@ describe('Conduit Login Scenarios', () => {
5457
cy.get('[type="submit"]').click()
5558

5659
// Verify API returns 500 status code response
57-
cy.intercept('POST', 'https://api.realworld.io/api/users/login').as('login')
60+
5861
cy.wait('@login').its('response.statusCode').should('eq', 500)
5962
})
6063
})

0 commit comments

Comments
 (0)