@testspectra/cli 1.2.19 → 1.2.20
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/package.json +9 -9
- package/templates/default/package.json +3 -3
- package/templates/default-nested/README.md +10 -0
- package/templates/default-nested/apps/web/package.json +1 -0
- package/templates/default-nested/e2e/package.json +18 -0
- package/templates/default-nested/e2e/specs/GlobalSettings/Brand/TC-0002-brand-example/spec.md +15 -0
- package/templates/default-nested/e2e/specs/GlobalSettings/Brand/TC-0002-brand-example/web.test.ts +4 -0
- package/templates/default-nested/e2e/specs/GlobalSettings/Brand/suite.md +9 -0
- package/templates/default-nested/e2e/specs/Smoke/TC-0001-example-title/spec.md +15 -0
- package/templates/default-nested/e2e/specs/Smoke/TC-0001-example-title/web.test.ts +4 -0
- package/templates/default-nested/e2e/specs/Smoke/suite.md +9 -0
- package/templates/default-nested/e2e/spectra.config.ts +17 -0
- package/templates/default-nested/e2e/tsconfig.json +4 -0
- package/templates/default-nested/package.json +6 -0
- package/templates/default-nested/pnpm-workspace.yaml +3 -0
- package/templates/nx/package.json +2 -2
- package/templates/react-component/package.json +3 -3
- package/templates/react-native-component/package.json +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@testspectra/cli",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.20",
|
|
4
4
|
"description": "TestSpectra Cross-Platform Test Runner CLI",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@clack/prompts": "^1.7.0",
|
|
28
|
-
"@testspectra/matchers": "^1.2.
|
|
29
|
-
"@testspectra/react": "^1.2.
|
|
30
|
-
"@testspectra/react-native": "^1.2.
|
|
31
|
-
"@testspectra/reporter": "^1.2.
|
|
32
|
-
"@testspectra/skills": "^1.2.
|
|
28
|
+
"@testspectra/matchers": "^1.2.20",
|
|
29
|
+
"@testspectra/react": "^1.2.20",
|
|
30
|
+
"@testspectra/react-native": "^1.2.20",
|
|
31
|
+
"@testspectra/reporter": "^1.2.20",
|
|
32
|
+
"@testspectra/skills": "^1.2.20",
|
|
33
33
|
"chalk": "^5.3.0",
|
|
34
34
|
"commander": "^12.1.0",
|
|
35
35
|
"cross-spawn": "^7.0.6",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"zod": "^3.23.8"
|
|
41
41
|
},
|
|
42
42
|
"optionalDependencies": {
|
|
43
|
-
"@testspectra/cli-darwin-arm64": "1.2.
|
|
44
|
-
"@testspectra/cli-linux-x64": "1.2.
|
|
45
|
-
"@testspectra/cli-win32-x64": "1.2.
|
|
43
|
+
"@testspectra/cli-darwin-arm64": "1.2.20",
|
|
44
|
+
"@testspectra/cli-linux-x64": "1.2.20",
|
|
45
|
+
"@testspectra/cli-win32-x64": "1.2.20"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/cross-spawn": "^6.0.6",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"postinstall": "spectra sync-types"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@testspectra/cli": "^1.2.
|
|
21
|
-
"@testspectra/matchers": "^1.2.
|
|
22
|
-
"@testspectra/plugin-demo": "^1.2.
|
|
20
|
+
"@testspectra/cli": "^1.2.20",
|
|
21
|
+
"@testspectra/matchers": "^1.2.20",
|
|
22
|
+
"@testspectra/plugin-demo": "^1.2.20",
|
|
23
23
|
"@types/node": "^20.14.0",
|
|
24
24
|
"@wdio/cli": "^9.2.8",
|
|
25
25
|
"@wdio/local-runner": "^9.2.8",
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# default-nested
|
|
2
|
+
|
|
3
|
+
Default-mode project nested in a monorepo: the root has **no** Spectra config; the TestSpectra project lives in `e2e/`.
|
|
4
|
+
Used to try the VS Code extension's nested-project detection. Not registered in `spectra init`.
|
|
5
|
+
|
|
6
|
+
1. Run the extension from source: open `tools/vscode` and press F5 (Extension Development Host).
|
|
7
|
+
2. In that host window, open this folder (`cli/templates/default-nested`) — the ROOT, not `e2e/`.
|
|
8
|
+
3. Expect: the TestSpectra sidebar activates and the Test Explorer lists `Smoke` and the nested
|
|
9
|
+
`GlobalSettings/Brand`.
|
|
10
|
+
4. To execute: from `e2e/`, `pnpm install && pnpm spectra sync-types` (generates `.testspectra/`).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "name": "web", "private": true, "version": "0.0.0" }
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "e2e",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "spectra run",
|
|
8
|
+
"spectra": "spectra",
|
|
9
|
+
"sync-types": "spectra sync-types",
|
|
10
|
+
"type-check": "tsc -b"
|
|
11
|
+
},
|
|
12
|
+
"devDependencies": {
|
|
13
|
+
"@testspectra/cli": "link:../../..",
|
|
14
|
+
"@testspectra/matchers": "link:../../../../tools/matchers",
|
|
15
|
+
"@types/node": "^20.14.0",
|
|
16
|
+
"typescript": "^5.4.5"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: TC-0002-brand-example
|
|
3
|
+
title: Verify the example page heading
|
|
4
|
+
priority: Medium
|
|
5
|
+
caseType: Positive
|
|
6
|
+
status: ready-for-automation
|
|
7
|
+
coverage:
|
|
8
|
+
web: automated
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Verify the example page heading
|
|
12
|
+
|
|
13
|
+
## Test Steps
|
|
14
|
+
1. Open the base URL
|
|
15
|
+
2. Verify the page URL contains example.com
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: TC-0001-example-title
|
|
3
|
+
title: Verify the example page title
|
|
4
|
+
priority: High
|
|
5
|
+
caseType: Positive
|
|
6
|
+
status: ready-for-automation
|
|
7
|
+
coverage:
|
|
8
|
+
web: automated
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Verify the example page title
|
|
12
|
+
|
|
13
|
+
## Test Steps
|
|
14
|
+
1. Open the base URL
|
|
15
|
+
2. Verify the page title contains Example
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { defineConfig } from '@testspectra/cli';
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
webConfig: {
|
|
5
|
+
baseUrl: 'https://example.com',
|
|
6
|
+
maxConcurrentSessions: '1',
|
|
7
|
+
headless: true,
|
|
8
|
+
implicitWait: '5000',
|
|
9
|
+
parallelizationMode: 'testcase',
|
|
10
|
+
},
|
|
11
|
+
executionConfig: {
|
|
12
|
+
networkMonitoringEnabled: false,
|
|
13
|
+
fastResponseTime: '200',
|
|
14
|
+
normalResponseTime: '1000',
|
|
15
|
+
monitoredDomains: [],
|
|
16
|
+
},
|
|
17
|
+
});
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"postinstall": "spectra sync-types"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@testspectra/cli": "^1.2.
|
|
16
|
-
"@testspectra/matchers": "^1.2.
|
|
15
|
+
"@testspectra/cli": "^1.2.20",
|
|
16
|
+
"@testspectra/matchers": "^1.2.20",
|
|
17
17
|
"@types/node": "^20.14.0",
|
|
18
18
|
"@wdio/cli": "^9.2.8",
|
|
19
19
|
"@wdio/local-runner": "^9.2.8",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"postinstall": "spectra sync-types"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@testspectra/cli": "^1.2.
|
|
18
|
-
"@testspectra/matchers": "^1.2.
|
|
19
|
-
"@testspectra/react": "^1.2.
|
|
17
|
+
"@testspectra/cli": "^1.2.20",
|
|
18
|
+
"@testspectra/matchers": "^1.2.20",
|
|
19
|
+
"@testspectra/react": "^1.2.20",
|
|
20
20
|
"@types/node": "^20.14.0",
|
|
21
21
|
"@types/react": "^18.3.3",
|
|
22
22
|
"@types/react-dom": "^18.3.0",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"postinstall": "spectra sync-types"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@testspectra/cli": "^1.2.
|
|
16
|
-
"@testspectra/matchers": "^1.2.
|
|
17
|
-
"@testspectra/react-native": "^1.2.
|
|
15
|
+
"@testspectra/cli": "^1.2.20",
|
|
16
|
+
"@testspectra/matchers": "^1.2.20",
|
|
17
|
+
"@testspectra/react-native": "^1.2.20",
|
|
18
18
|
"@types/node": "^20.14.0",
|
|
19
19
|
"@types/react": "^18.3.12",
|
|
20
20
|
"@types/react-native": "^0.73.0",
|