@spscommerce/e2e-core 2.4.1 → 2.4.2
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/Dockerfile +1 -1
- package/Example.test.ts +3 -3
- package/package.json +2 -2
- package/playwright.config.js +2 -0
package/Dockerfile
CHANGED
package/Example.test.ts
CHANGED
|
@@ -3,7 +3,7 @@ import expectExt from './src/matchersSetup';
|
|
|
3
3
|
import { enableLogger, disableLogger } from './src/loggerSetup';
|
|
4
4
|
|
|
5
5
|
test.describe('SPS_Example', () => {
|
|
6
|
-
|
|
6
|
+
test.describe.configure({ retries: 1 });
|
|
7
7
|
test.beforeEach(async ({ page }, testInfo) => {
|
|
8
8
|
process.env.CI && await enableLogger(testInfo.titlePath, page);
|
|
9
9
|
await page.goto(`https://test.commerce.spscommerce.com/fulfillment/`);
|
|
@@ -14,7 +14,7 @@ test.describe('SPS_Example', () => {
|
|
|
14
14
|
});
|
|
15
15
|
|
|
16
16
|
test('First_test', async ({ page }) => {
|
|
17
|
-
await page.waitForTimeout(
|
|
17
|
+
await page.waitForTimeout(10000);
|
|
18
18
|
expect(
|
|
19
19
|
true,
|
|
20
20
|
`Custom error message.`
|
|
@@ -23,7 +23,7 @@ test.describe('SPS_Example', () => {
|
|
|
23
23
|
[1, 2, 3, 4],
|
|
24
24
|
// false,
|
|
25
25
|
`Custom error message.`
|
|
26
|
-
).toIncludeAllMembers([1,
|
|
26
|
+
).toIncludeAllMembers([1, 5, 3]);
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spscommerce/e2e-core",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.2",
|
|
4
4
|
"description": "An automation test framework which is based on Playwright.",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"author": "SPS Commerce",
|
|
25
25
|
"license": "UNLICENSED",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@playwright/test": "1.
|
|
27
|
+
"@playwright/test": "1.29.0",
|
|
28
28
|
"@typescript-eslint/eslint-plugin": "5.30.0",
|
|
29
29
|
"@typescript-eslint/parser": "5.30.0",
|
|
30
30
|
"dotenv": "16.0.3",
|
package/playwright.config.js
CHANGED
|
@@ -119,6 +119,8 @@ const config = {
|
|
|
119
119
|
actionTimeout: +process.env.ACTION_TIMEOUT || 30000,
|
|
120
120
|
/* Collect screenshot after each test failure. See https://playwright.dev/docs/test-configuration#automatic-screenshots */
|
|
121
121
|
screenshot: 'only-on-failure',
|
|
122
|
+
/* Record video only when retrying a test for the first time. See https://playwright.dev/docs/test-configuration#automatic-screenshots */
|
|
123
|
+
video: 'on-first-retry',
|
|
122
124
|
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
|
123
125
|
trace: process.env.TRACER && (process.env.TRACER.toString().toLowerCase() === 'true') ? 'retain-on-failure' : 'off',
|
|
124
126
|
/* Run in headless mode by default (if process.env.HEADLESS is not specified) */
|