Skip to content

Commit e7d8879

Browse files
committed
chore: update cypress config
1 parent 92a4b8e commit e7d8879

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

packages/cubejs-testing/cypress.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ export default defineConfig({
2020
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
2121
},
2222
// set optimal values for the number of tests kept in memory
23-
numTestsKeptInMemory: 10,
23+
numTestsKeptInMemory: 5,
2424
experimentalMemoryManagement: true,
2525
});

packages/cubejs-testing/cypress/e2e/rollup-designer.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@ import { ordersCountQuery } from "../queries";
33

44
context("Playground: Rollup Designer", () => {
55
beforeEach(() => {
6+
cy.wait(500);
67
cy.restoreLocalStorage();
8+
cy.wait(500);
79
});
810

911
afterEach(() => {
12+
cy.wait(500);
1013
cy.saveLocalStorage();
14+
cy.wait(500);
1115
});
1216

1317
describe("Opens the Rollup Designer modal", () => {

packages/cubejs-testing/cypress/plugins/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,12 @@ const { addMatchImageSnapshotPlugin } = require('cypress-image-snapshot/plugin')
2121
module.exports = (on, config) => {
2222
addMatchImageSnapshotPlugin(on, config);
2323

24+
on('before:browser:launch', (browser = {}, launchOptions) => {
25+
if (browser.name === 'chrome') {
26+
launchOptions.args.push('--disable-gpu', '--disable-software-rasterizer');
27+
}
28+
return launchOptions;
29+
});
30+
2431
return config;
2532
};

0 commit comments

Comments
 (0)