@centreon/js-config 23.10.38 → 23.10.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cypress/e2e/commands.ts
CHANGED
|
@@ -229,7 +229,11 @@ interface StartContainerProps {
|
|
|
229
229
|
Cypress.Commands.add(
|
|
230
230
|
'startContainer',
|
|
231
231
|
({ name, image, portBindings }: StartContainerProps): Cypress.Chainable => {
|
|
232
|
-
return cy.task(
|
|
232
|
+
return cy.task(
|
|
233
|
+
'startContainer',
|
|
234
|
+
{ image, name, portBindings },
|
|
235
|
+
{ timeout: 600000 } // 10 minutes because docker pull can be very slow
|
|
236
|
+
);
|
|
233
237
|
}
|
|
234
238
|
);
|
|
235
239
|
|
|
@@ -25,7 +25,7 @@ export default ({
|
|
|
25
25
|
dockerName,
|
|
26
26
|
env
|
|
27
27
|
}: ConfigurationOptions): Cypress.ConfigOptions => {
|
|
28
|
-
const resultsFolder = `${cypressFolder || '
|
|
28
|
+
const resultsFolder = `${cypressFolder || '.'}/results`;
|
|
29
29
|
|
|
30
30
|
const webImageVersion = execSync('git rev-parse --abbrev-ref HEAD')
|
|
31
31
|
.toString('utf8')
|
|
@@ -36,6 +36,7 @@ export default ({
|
|
|
36
36
|
defaultCommandTimeout: 6000,
|
|
37
37
|
e2e: {
|
|
38
38
|
excludeSpecPattern: ['*.js', '*.ts', '*.md'],
|
|
39
|
+
fixturesFolder: 'fixtures',
|
|
39
40
|
reporter: require.resolve('cypress-multi-reporters'),
|
|
40
41
|
reporterOptions: {
|
|
41
42
|
configFile: `${__dirname}/reporter-config.js`
|
|
@@ -47,7 +48,8 @@ export default ({
|
|
|
47
48
|
|
|
48
49
|
return plugins(on, config);
|
|
49
50
|
},
|
|
50
|
-
specPattern
|
|
51
|
+
specPattern,
|
|
52
|
+
supportFile: 'support/e2e.{js,jsx,ts,tsx}'
|
|
51
53
|
},
|
|
52
54
|
env: {
|
|
53
55
|
...env,
|
package/package.json
CHANGED