mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-03-12 04:35:27 -07:00
* updates * test coverage on the plex settings page * features * Update cypress.yml * Update cypress.yml * Update cypress.yml * Update cypress.config.ts * fixes * stuff * put it back * a * always kill docker * Run the wizard as part of the feature files * fix? * slow the tests down * subby * Update user-preferences-profile.spec.ts * Update user-preferences-profile.spec.ts
46 lines
1.3 KiB
TypeScript
46 lines
1.3 KiB
TypeScript
import { defineConfig } from 'cypress';
|
|
import createBundler from "@bahmutov/cypress-esbuild-preprocessor";
|
|
import { addCucumberPreprocessorPlugin } from "@badeball/cypress-cucumber-preprocessor";
|
|
import createEsbuildPlugin from "@badeball/cypress-cucumber-preprocessor/esbuild";
|
|
|
|
export default defineConfig({
|
|
watchForFileChanges: true,
|
|
chromeWebSecurity: false,
|
|
viewportWidth: 2560,
|
|
viewportHeight: 1440,
|
|
retries: {
|
|
runMode: 2,
|
|
openMode: 0,
|
|
},
|
|
env: {
|
|
username: 'a',
|
|
password: 'a',
|
|
dockerhost: 'http://172.17.0.1'
|
|
},
|
|
projectId: 'o5451s',
|
|
e2e: {
|
|
// We've imported your old cypress plugins here.
|
|
// You may want to clean this up later by importing these.
|
|
async setupNodeEvents(
|
|
on: Cypress.PluginEvents,
|
|
config: Cypress.PluginConfigOptions
|
|
): Promise<Cypress.PluginConfigOptions> {
|
|
await addCucumberPreprocessorPlugin(on, config);
|
|
|
|
on(
|
|
"file:preprocessor",
|
|
createBundler({
|
|
plugins: [createEsbuildPlugin(config)],
|
|
})
|
|
);
|
|
|
|
// Make sure to return the config object as it might have been modified by the plugin.
|
|
return config;
|
|
// return require('./cypress/plugins/index.js')(on, config)
|
|
},
|
|
baseUrl: 'http://localhost:5000',
|
|
specPattern: ['cypress/tests/**/*.spec.ts*', '**/*.feature'],
|
|
excludeSpecPattern: ['**/snapshots/*'],
|
|
},
|
|
})
|