Skip to content

Commit 2e04455

Browse files
authored
Merge pull request #8893 from GilbertCherrie/fix_cypress_config_file
Fix cypress config file
2 parents bb112a7 + 844db2e commit 2e04455

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

cypress.config.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
1+
/* eslint-disable no-undef */
12
const { defineConfig } = require('cypress');
2-
const fs = require('fs')
3+
const fs = require('fs');
34

45
module.exports = defineConfig({
56
e2e: {
67
baseUrl: 'http://localhost:3000',
8+
viewportHeight: 800,
9+
viewportWidth: 1800,
710
numTestsKeptInMemory: 0,
811
videoCompression: false,
12+
// eslint-disable-next-line no-unused-vars
913
setupNodeEvents(on, config) {
1014
on('after:spec', (spec, results) => {
1115
// Delete the video on CI if the spec passed and no tests retried
1216
if (process.env.CI && results && results.video && fs.existsSync(results.video)) {
1317
// Do we have failures for any retry attempts?
1418
const failures = results.tests.some((test) =>
1519
test.attempts.some((attempt) => attempt.state === 'failed')
16-
)
20+
);
1721
if (!failures) {
18-
fs.unlinkSync(results.video)
22+
fs.unlinkSync(results.video);
1923
}
2024
}
21-
})
25+
});
2226
},
2327
},
2428
});

cypress/e2e/ui/searchbox.cy.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable no-undef */
22
describe('Search box', () => {
33
beforeEach(() => {
4-
cy.viewport(1280, 800);
54
cy.login();
65
});
76

0 commit comments

Comments
 (0)