@testspectra/cli 1.0.16 → 1.0.18

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.
Files changed (37) hide show
  1. package/dist/commands/init.js +273 -58
  2. package/dist/commands/run.js +11 -1
  3. package/dist/config/loader.js +11 -4
  4. package/dist/types/generator.d.ts +2 -1
  5. package/dist/types/generator.js +108 -27
  6. package/package.json +1 -1
  7. package/templates/nx/modules/auth/e2e/.testspectra/types/android.d.ts +3 -0
  8. package/templates/nx/modules/auth/e2e/.testspectra/types/common.d.ts +3 -0
  9. package/templates/nx/modules/auth/e2e/.testspectra/types/fixtures.d.ts +1 -0
  10. package/templates/nx/modules/auth/e2e/.testspectra/types/ios.d.ts +3 -0
  11. package/templates/nx/modules/auth/e2e/.testspectra/types/mobile.d.ts +3 -0
  12. package/templates/nx/modules/auth/e2e/.testspectra/types/web.d.ts +3 -0
  13. package/templates/nx/modules/auth/e2e/package.json +1 -0
  14. package/templates/nx/modules/auth/e2e/specs/Auth/TC-AUTH-01/web.test.ts +10 -4
  15. package/templates/nx/modules/auth/e2e/tsconfig.android.tsbuildinfo +1 -1
  16. package/templates/nx/modules/auth/e2e/tsconfig.ios.tsbuildinfo +1 -1
  17. package/templates/nx/modules/auth/e2e/tsconfig.web.tsbuildinfo +1 -1
  18. package/templates/nx/modules/catalog/e2e/.testspectra/types/android.d.ts +3 -0
  19. package/templates/nx/modules/catalog/e2e/.testspectra/types/common.d.ts +3 -0
  20. package/templates/nx/modules/catalog/e2e/.testspectra/types/fixtures.d.ts +1 -0
  21. package/templates/nx/modules/catalog/e2e/.testspectra/types/ios.d.ts +3 -0
  22. package/templates/nx/modules/catalog/e2e/.testspectra/types/mobile.d.ts +3 -0
  23. package/templates/nx/modules/catalog/e2e/.testspectra/types/web.d.ts +3 -0
  24. package/templates/nx/modules/catalog/e2e/tsconfig.android.tsbuildinfo +1 -1
  25. package/templates/nx/modules/catalog/e2e/tsconfig.ios.tsbuildinfo +1 -1
  26. package/templates/nx/modules/catalog/e2e/tsconfig.web.tsbuildinfo +1 -1
  27. package/templates/nx/node_modules/.svelte2tsx-language-server-files/svelte-native-jsx.d.ts +32 -0
  28. package/templates/nx/node_modules/.svelte2tsx-language-server-files/svelte-shims-v4.d.ts +290 -0
  29. package/templates/nx/shared/testing/actions/dismissBanner/common.action.ts +6 -0
  30. package/templates/nx/shared/testing/fixtures/appConfig.json +4 -0
  31. package/templates/nx/shared/testing/page-objects/NavigationBar/common.ts +13 -0
  32. package/templates/nx/shared/testing/steps/loginAsAdmin/common.step.ts +3 -0
  33. package/templates/nx/shared/testing/tsconfig.json +9 -5
  34. package/templates/nx/shared/testing/tsconfig.tsbuildinfo +1 -1
  35. package/templates/nx/modules/catalog/e2e/spectra.config.ts +0 -61
  36. package/templates/nx/shared/testing/src/index.ts +0 -5
  37. /package/templates/nx/{modules/auth/e2e/spectra.config.ts → spectra.config.ts} +0 -0
@@ -1,61 +0,0 @@
1
- import { defineConfig } from "@testspectra/cli";
2
-
3
- export default defineConfig({
4
- webConfig: {
5
- baseUrl: "https://the-internet.herokuapp.com",
6
- maxConcurrentSessions: "1",
7
- headlessMode: true,
8
- implicitWait: "5000",
9
- pageLoadTimeout: "30000",
10
- scriptTimeout: "30000",
11
- parallelizationMode: "testcase",
12
- },
13
- browsers: [
14
- {
15
- id: "chrome-desktop",
16
- type: "chrome",
17
- mobileEmulation: false,
18
- },
19
- ],
20
- androidConfig: {
21
- appiumServer: "http://127.0.0.1:4723",
22
- platformName: "Android",
23
- platformVersion: "13",
24
- deviceName: "emulator-5554",
25
- automationName: "UiAutomator2",
26
- appPackage: "",
27
- appActivity: "",
28
- autoGrantPermissions: true,
29
- noReset: false,
30
- implicitWait: "10000",
31
- parallelizationMode: "suite",
32
- },
33
- iosConfig: {
34
- appiumServer: "http://127.0.0.1:4723",
35
- platformName: "iOS",
36
- platformVersion: "16.0",
37
- deviceName: "iPhone 14",
38
- automationName: "XCUITest",
39
- bundleId: "",
40
- udid: "auto",
41
- xcodeOrgId: "",
42
- xcodeSigningId: "iPhone Developer",
43
- autoAcceptAlerts: true,
44
- noReset: false,
45
- implicitWait: "10000",
46
- parallelizationMode: "suite",
47
- },
48
- loadConfig: {
49
- virtualUsers: "10",
50
- duration: "1m",
51
- },
52
- loadStages: [],
53
- thresholds: [],
54
- executionConfig: {
55
- networkMonitoringEnabled: true,
56
- fastResponseTime: "200",
57
- normalResponseTime: "1000",
58
- monitoredDomains: [],
59
- environmentVariables: [],
60
- },
61
- });
@@ -1,5 +0,0 @@
1
- export const API_BASE_URL = "https://the-internet.herokuapp.com";
2
-
3
- export function generateTestUser(prefix = "user") {
4
- return `${prefix}_${Date.now()}@example.com`;
5
- }