@elliemae/ds-monorepo-devops 3.52.0-rc.13 → 3.52.0-rc.14
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.
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineConfig, devices } from '@playwright/experimental-ct-react';
|
|
2
|
+
// import { defineConfig as viteDefineConfig } from 'vite';
|
|
3
|
+
// import react from '@vitejs/plugin-react';
|
|
4
|
+
|
|
5
|
+
export const config = defineConfig({
|
|
6
|
+
testDir: './src/tests',
|
|
7
|
+
testMatch: '**/*.test.playwright.@(js|jsx|ts|tsx)',
|
|
8
|
+
snapshotDir: './__snapshots__',
|
|
9
|
+
timeout: 10 * 1000,
|
|
10
|
+
fullyParallel: process.env.CI ? false : true,
|
|
11
|
+
forbidOnly: false,
|
|
12
|
+
/* Retry on CI only */
|
|
13
|
+
retries: process.env.CI ? 2 : 0,
|
|
14
|
+
/* Opt out of parallel tests on CI. */
|
|
15
|
+
workers: process.env.CI ? 1 : undefined,
|
|
16
|
+
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
|
|
17
|
+
reporter: 'list',
|
|
18
|
+
// ctViteConfig: viteDefineConfig({ logLevel: 'info', plugins: [react()] }),
|
|
19
|
+
use: {
|
|
20
|
+
ctPort: 31500,
|
|
21
|
+
headless: process.env.CI ? true : false,
|
|
22
|
+
launchOptions: {
|
|
23
|
+
devtools: process.env.CI ? false : true,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
projects: [
|
|
27
|
+
{
|
|
28
|
+
name: 'chromium',
|
|
29
|
+
use: { ...devices['Desktop Chrome'] },
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-monorepo-devops",
|
|
3
|
-
"version": "3.52.0-rc.
|
|
3
|
+
"version": "3.52.0-rc.14",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Monorepo Devops",
|
|
6
6
|
"type": "module",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"import": "./configs/jest/jest.config.mjs",
|
|
22
22
|
"require": "./configs/jest/jest.config.mjs"
|
|
23
23
|
},
|
|
24
|
-
"./configs/
|
|
25
|
-
"import": "./configs/
|
|
26
|
-
"require": "./configs/
|
|
24
|
+
"./configs/playwright/playwright-component-testing-config": {
|
|
25
|
+
"import": "./configs/playwright/playwright-component-testing-config.mjs",
|
|
26
|
+
"require": "./configs/playwright/playwright-component-testing-config.mjs"
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"sideEffects": [],
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@elliemae/pui-cli": "9.0.0-next.55",
|
|
47
|
-
"@elliemae/pui-e2e-test-sdk": "~11.0.1",
|
|
48
47
|
"arg": "~5.0.2",
|
|
49
48
|
"glob": "~10.2.5",
|
|
50
49
|
"ignore": "^5.3.0",
|
|
@@ -55,5 +54,8 @@
|
|
|
55
54
|
"access": "public",
|
|
56
55
|
"typeSafety": false
|
|
57
56
|
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"@playwright/experimental-ct-react": "^1.51.1"
|
|
59
|
+
},
|
|
58
60
|
"scripts": {}
|
|
59
61
|
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
/* eslint-disable indent */
|
|
2
|
-
import url from 'url';
|
|
3
|
-
import path from 'path';
|
|
4
|
-
import { config as baseICEConfig } from '@elliemae/pui-e2e-test-sdk';
|
|
5
|
-
const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
|
|
6
|
-
|
|
7
|
-
export const config = {
|
|
8
|
-
autoCompileOpts: {
|
|
9
|
-
autoCompile: true,
|
|
10
|
-
},
|
|
11
|
-
// ==================
|
|
12
|
-
// Specify Test Files
|
|
13
|
-
// ==================
|
|
14
|
-
// Define which test specs should run. The pattern is relative to the directory
|
|
15
|
-
// from which `wdio` was called.
|
|
16
|
-
// The specs are defined as an array of spec files (optionally using wildcards
|
|
17
|
-
// that will be expanded). The test for each spec file will be run in a separate
|
|
18
|
-
// worker process. In order to have a group of spec files run in the same worker
|
|
19
|
-
// process simply enclose them in an array within the specs array.
|
|
20
|
-
// If you are calling `wdio` from an NPM script (see https://docs.npmjs.com/cli/run-script),
|
|
21
|
-
// then the current working directory is where your `package.json` resides, so `wdio`
|
|
22
|
-
// will be called from there.
|
|
23
|
-
// temporarily disable the tests for CI - component testing seems to not work in our current jenkins
|
|
24
|
-
// specs: [...(process.env.CI ? [] : ['./src/tests/**/*.test.wdio.jsx'])],
|
|
25
|
-
specs: ['./src/tests/**/*.test.wdio.jsx'],
|
|
26
|
-
// Patterns to exclude.
|
|
27
|
-
exclude: [],
|
|
28
|
-
// ============
|
|
29
|
-
// Capabilities
|
|
30
|
-
// ============
|
|
31
|
-
// Define your capabilities here. WebdriverIO can run multiple capabilities at the same
|
|
32
|
-
// time. Depending on the number of capabilities, WebdriverIO launches several test
|
|
33
|
-
// sessions. Within your capabilities you can overwrite the spec and exclude options in
|
|
34
|
-
// order to group specific specs to a specific capability.
|
|
35
|
-
// First, you can define how many instances should be started at the same time. Let's
|
|
36
|
-
// say you have 3 different capabilities (Chrome, Firefox, and Safari) and you have
|
|
37
|
-
// set maxInstances to 1; wdio will spawn 3 processes. Therefore, if you have 10 spec
|
|
38
|
-
// files and you set maxInstances to 10, all spec files will get tested at the same time
|
|
39
|
-
// and 30 processes will get spawned. The property handles how many capabilities
|
|
40
|
-
// from the same test should run tests.
|
|
41
|
-
maxInstances: 1,
|
|
42
|
-
headless: process.env.CI,
|
|
43
|
-
// If you have trouble getting all important capabilities together, check out the
|
|
44
|
-
// Sauce Labs platform configurator - a great tool to configure your capabilities:
|
|
45
|
-
// https://saucelabs.com/platform/platform-configurator
|
|
46
|
-
capabilities: [
|
|
47
|
-
{
|
|
48
|
-
browserName: 'chrome',
|
|
49
|
-
'goog:chromeOptions': {
|
|
50
|
-
...(process.env.CI
|
|
51
|
-
? {
|
|
52
|
-
args: [
|
|
53
|
-
// running headless on CI,
|
|
54
|
-
// this is not 1-1 with the local config
|
|
55
|
-
// but jenkins can't do the other so better than nothing?
|
|
56
|
-
'--headless',
|
|
57
|
-
'--disable-gpu',
|
|
58
|
-
// eslint-disable-next-line max-len
|
|
59
|
-
// https://github.com/webdriverio/webdriverio/pull/14148/files#diff-837a0b65f149b698db796204684ce3508e49e8c1046e0d5ea6a2b938f0d44e00L28
|
|
60
|
-
`--user-data-dir=${path.resolve(__dirname, 'usrDataDir')}`,
|
|
61
|
-
// https://github.com/webdriverio/webdriverio/issues/14168#issuecomment-2642880118
|
|
62
|
-
'--no-sandbox',
|
|
63
|
-
],
|
|
64
|
-
}
|
|
65
|
-
: {}),
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
],
|
|
69
|
-
// ===================
|
|
70
|
-
// Test Configurations
|
|
71
|
-
// ===================
|
|
72
|
-
// Define all options that are relevant for the WebdriverIO instance here
|
|
73
|
-
// Level of logging verbosity: trace | debug | info | warn | error | silent
|
|
74
|
-
logLevel: 'info',
|
|
75
|
-
// ...(process.env.CI ? { outputDir: path.resolve(__dirname, 'logs') } : {}),
|
|
76
|
-
// If you only want to run your tests until a specific amount of tests have failed use
|
|
77
|
-
// bail (default is 0 - don't bail, run all tests).
|
|
78
|
-
bail: 0,
|
|
79
|
-
// Set a base URL in order to shorten url command calls. If your `url` parameter starts
|
|
80
|
-
// with `/`, the base url gets prepended, not including the path portion of your baseUrl.
|
|
81
|
-
// If your `url` parameter starts without a scheme or `/` (like `some/path`), the base url
|
|
82
|
-
// gets prepended directly.
|
|
83
|
-
baseUrl: 'http://localhost',
|
|
84
|
-
// Default timeout for all waitFor* commands.
|
|
85
|
-
waitforTimeout: 10000,
|
|
86
|
-
// Default timeout in milliseconds for request
|
|
87
|
-
// if browser driver or grid doesn't send response
|
|
88
|
-
connectionRetryTimeout: 120000,
|
|
89
|
-
// Default request retries count
|
|
90
|
-
connectionRetryCount: 3,
|
|
91
|
-
// Test runner services
|
|
92
|
-
// Services take over a specific job you don't want to take care of. They enhance
|
|
93
|
-
// your test setup with almost no effort. Unlike plugins, they don't add new
|
|
94
|
-
// commands. Instead, they hook themselves up into the test process.
|
|
95
|
-
services: [],
|
|
96
|
-
// WebdriverIO Runner:
|
|
97
|
-
runner: [...(process.env.CI ? ['local'] : ['browser', { preset: 'react' }])],
|
|
98
|
-
// runner: ['browser', { preset: 'react' }],
|
|
99
|
-
// Framework you want to run your specs with.
|
|
100
|
-
// The following are supported: Mocha, Jasmine, and Cucumber
|
|
101
|
-
// see also: https://webdriver.io/docs/frameworks
|
|
102
|
-
// Make sure you have the wdio adapter package for the specific framework installed
|
|
103
|
-
// before running any tests.
|
|
104
|
-
framework: baseICEConfig.framework,
|
|
105
|
-
// The number of times to retry the entire specfile when it fails as a whole
|
|
106
|
-
// specFileRetries: 1,
|
|
107
|
-
// Delay in seconds between the spec file retry attempts
|
|
108
|
-
// specFileRetriesDelay: 0,
|
|
109
|
-
// Whether or not retried specfiles should be retried immediately or deferred to the end of the queue
|
|
110
|
-
// specFileRetriesDeferred: false,
|
|
111
|
-
// Test reporter for stdout.
|
|
112
|
-
// The only one supported by default is 'dot'
|
|
113
|
-
// see also: https://webdriver.io/docs/dot-reporter
|
|
114
|
-
reporters: baseICEConfig.reporters,
|
|
115
|
-
// Options to be passed to Mocha.
|
|
116
|
-
// See the full list at http://mochajs.org/
|
|
117
|
-
mochaOpts: baseICEConfig.mochaOpts,
|
|
118
|
-
};
|