21935: Rename safeapi.ThreadSafeApiCache to api.ThreadSafeAPIClient
[arvados.git] / services / workbench2 / cypress.config.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { defineConfig } from 'cypress'
6
7 export default defineConfig({
8   chromeWebSecurity: false,
9   viewportWidth: 1920,
10   viewportHeight: 1080,
11   downloadsFolder: 'cypress/downloads',
12   videoCompression: false,
13   e2e: {
14     // We've imported your old cypress plugins here.
15     // You may want to clean this up later by importing these.
16       setupNodeEvents(on, config) {
17           require("cypress-fail-fast/plugin")(on, config);
18           require('./cypress/plugins/index.js')(on, config)
19           return config;
20       },
21       baseUrl: 'https://localhost:3000/',
22       experimentalRunAllSpecs: true,
23       // The 2 options below make Electron crash a lot less and Firefox behave better
24       experimentalMemoryManagement: true,
25       numTestsKeptInMemory: 2,
26   },
27 })