Skip to content

Commit

Permalink
Tools: Removed product switch in root cypress.config to avoid CI issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
bre1470 committed Nov 10, 2023
1 parent 7abde7e commit 1ad4536
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions cypress.config.mjs
Original file line number Diff line number Diff line change
@@ -1,33 +1,10 @@
import { defineConfig } from 'cypress';
import { getProducts } from './tools/gulptasks/lib/test.js';

const products = new Set();

for (const product of getProducts()) {
switch (product) {
case 'Dashboards':
products.add('dashboards');
products.add('data-grid');
continue;
default:
products.add('highcharts');
continue;
}
}

const productsPattern = (
products.length > 1 ?
`{${Array.from(products).join(',')}}` :
products.length ?
products[0] :
'**'
);

export default defineConfig({
fixturesFolder: 'test/cypress/fixtures',
e2e: {
baseUrl: 'http://localhost:3030/samples/view?mobile=true&path=/',
specPattern: `test/cypress/${productsPattern}/integration/*.cy.{js,jsx,ts,tsx}`,
specPattern: 'test/cypress/**/integration/*.cy.{js,jsx,ts,tsx}',
supportFile: 'test/cypress/support/index.js',
testIsolation: false
}
Expand Down

0 comments on commit 1ad4536

Please sign in to comment.