@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
@@ -64,16 +64,19 @@ interface Promise<T> {
64
64
  declare const LoginPage: typeof import('../../page-objects/LoginPage/mobile.js').default;
65
65
  declare const ProductPage: typeof import('../../page-objects/ProductPage/mobile.js').default;
66
66
  declare const SettingsPage: typeof import('../../page-objects/SettingsPage/common.js').default;
67
+ declare const NavigationBar: typeof import('../../../../../shared/testing/page-objects/NavigationBar/common.js').default;
67
68
 
68
69
  interface TestSpectraActions extends Omit<typeof import('@testspectra/cli').Spectra, ''> {
69
70
  applyDiscount: (typeof import('../../actions/applyDiscount/mobile.action.js') extends { default: infer T } ? T : typeof import('../../actions/applyDiscount/mobile.action.js'));
70
71
  verifyOtp: (typeof import('../../actions/verifyOtp/mobile.action.js') extends { default: infer T } ? T : typeof import('../../actions/verifyOtp/mobile.action.js'));
72
+ dismissBanner: (typeof import('../../../../../shared/testing/actions/dismissBanner/common.action.js') extends { default: infer T } ? T : typeof import('../../../../../shared/testing/actions/dismissBanner/common.action.js'));
71
73
  }
72
74
  declare const Spectra: TestSpectraActions;
73
75
 
74
76
  interface TestSpectraSteps {
75
77
  loginUser: (typeof import('../../steps/loginUser/mobile.step.js') extends { default: infer T } ? T : typeof import('../../steps/loginUser/mobile.step.js'));
76
78
  searchProduct: (typeof import('../../steps/searchProduct/mobile.step.js') extends { default: infer T } ? T : typeof import('../../steps/searchProduct/mobile.step.js'));
79
+ loginAsAdmin: (typeof import('../../../../../shared/testing/steps/loginAsAdmin/common.step.js') extends { default: infer T } ? T : typeof import('../../../../../shared/testing/steps/loginAsAdmin/common.step.js'));
77
80
  }
78
81
  declare const Step: TestSpectraSteps;
79
82
 
@@ -62,16 +62,19 @@ interface Promise<T> {
62
62
  }
63
63
 
64
64
  declare const SettingsPage: typeof import('../../page-objects/SettingsPage/common.js').default;
65
+ declare const NavigationBar: typeof import('../../../../../shared/testing/page-objects/NavigationBar/common.js').default;
65
66
 
66
67
  interface TestSpectraActions extends Omit<typeof import('@testspectra/cli').Spectra, ''> {
67
68
  applyDiscount: (...args: any[]) => Promise<any>;
68
69
  verifyOtp: (...args: any[]) => Promise<any>;
70
+ dismissBanner: (typeof import('../../../../../shared/testing/actions/dismissBanner/common.action.js') extends { default: infer T } ? T : typeof import('../../../../../shared/testing/actions/dismissBanner/common.action.js'));
69
71
  }
70
72
  declare const Spectra: TestSpectraActions;
71
73
 
72
74
  interface TestSpectraSteps {
73
75
  loginUser: (...args: any[]) => Promise<any>;
74
76
  searchProduct: (...args: any[]) => Promise<any>;
77
+ loginAsAdmin: (typeof import('../../../../../shared/testing/steps/loginAsAdmin/common.step.js') extends { default: infer T } ? T : typeof import('../../../../../shared/testing/steps/loginAsAdmin/common.step.js'));
75
78
  }
76
79
  declare const Step: TestSpectraSteps;
77
80
 
@@ -5,5 +5,6 @@ interface TestSpectraFixtures {
5
5
  readonly couponCode: string;
6
6
  readonly searchQuery: string;
7
7
  readonly userData: string;
8
+ readonly appConfig: string;
8
9
  }
9
10
  declare const Fixture: TestSpectraFixtures;
@@ -64,16 +64,19 @@ interface Promise<T> {
64
64
  declare const LoginPage: typeof import('../../page-objects/LoginPage/mobile.js').default;
65
65
  declare const ProductPage: typeof import('../../page-objects/ProductPage/mobile.js').default;
66
66
  declare const SettingsPage: typeof import('../../page-objects/SettingsPage/common.js').default;
67
+ declare const NavigationBar: typeof import('../../../../../shared/testing/page-objects/NavigationBar/common.js').default;
67
68
 
68
69
  interface TestSpectraActions extends Omit<typeof import('@testspectra/cli').Spectra, ''> {
69
70
  applyDiscount: (typeof import('../../actions/applyDiscount/mobile.action.js') extends { default: infer T } ? T : typeof import('../../actions/applyDiscount/mobile.action.js'));
70
71
  verifyOtp: (typeof import('../../actions/verifyOtp/mobile.action.js') extends { default: infer T } ? T : typeof import('../../actions/verifyOtp/mobile.action.js'));
72
+ dismissBanner: (typeof import('../../../../../shared/testing/actions/dismissBanner/common.action.js') extends { default: infer T } ? T : typeof import('../../../../../shared/testing/actions/dismissBanner/common.action.js'));
71
73
  }
72
74
  declare const Spectra: TestSpectraActions;
73
75
 
74
76
  interface TestSpectraSteps {
75
77
  loginUser: (typeof import('../../steps/loginUser/mobile.step.js') extends { default: infer T } ? T : typeof import('../../steps/loginUser/mobile.step.js'));
76
78
  searchProduct: (typeof import('../../steps/searchProduct/mobile.step.js') extends { default: infer T } ? T : typeof import('../../steps/searchProduct/mobile.step.js'));
79
+ loginAsAdmin: (typeof import('../../../../../shared/testing/steps/loginAsAdmin/common.step.js') extends { default: infer T } ? T : typeof import('../../../../../shared/testing/steps/loginAsAdmin/common.step.js'));
77
80
  }
78
81
  declare const Step: TestSpectraSteps;
79
82
 
@@ -64,16 +64,19 @@ interface Promise<T> {
64
64
  declare const LoginPage: typeof import('../../page-objects/LoginPage/mobile.js').default;
65
65
  declare const ProductPage: typeof import('../../page-objects/ProductPage/mobile.js').default;
66
66
  declare const SettingsPage: typeof import('../../page-objects/SettingsPage/common.js').default;
67
+ declare const NavigationBar: typeof import('../../../../../shared/testing/page-objects/NavigationBar/common.js').default;
67
68
 
68
69
  interface TestSpectraActions extends Omit<typeof import('@testspectra/cli').Spectra, ''> {
69
70
  applyDiscount: (typeof import('../../actions/applyDiscount/mobile.action.js') extends { default: infer T } ? T : typeof import('../../actions/applyDiscount/mobile.action.js'));
70
71
  verifyOtp: (typeof import('../../actions/verifyOtp/mobile.action.js') extends { default: infer T } ? T : typeof import('../../actions/verifyOtp/mobile.action.js'));
72
+ dismissBanner: (typeof import('../../../../../shared/testing/actions/dismissBanner/common.action.js') extends { default: infer T } ? T : typeof import('../../../../../shared/testing/actions/dismissBanner/common.action.js'));
71
73
  }
72
74
  declare const Spectra: TestSpectraActions;
73
75
 
74
76
  interface TestSpectraSteps {
75
77
  loginUser: (typeof import('../../steps/loginUser/mobile.step.js') extends { default: infer T } ? T : typeof import('../../steps/loginUser/mobile.step.js'));
76
78
  searchProduct: (typeof import('../../steps/searchProduct/mobile.step.js') extends { default: infer T } ? T : typeof import('../../steps/searchProduct/mobile.step.js'));
79
+ loginAsAdmin: (typeof import('../../../../../shared/testing/steps/loginAsAdmin/common.step.js') extends { default: infer T } ? T : typeof import('../../../../../shared/testing/steps/loginAsAdmin/common.step.js'));
77
80
  }
78
81
  declare const Step: TestSpectraSteps;
79
82
 
@@ -64,16 +64,19 @@ interface Promise<T> {
64
64
  declare const LoginPage: typeof import('../../page-objects/LoginPage/web.js').default;
65
65
  declare const ProductPage: typeof import('../../page-objects/ProductPage/web.js').default;
66
66
  declare const SettingsPage: typeof import('../../page-objects/SettingsPage/common.js').default;
67
+ declare const NavigationBar: typeof import('../../../../../shared/testing/page-objects/NavigationBar/common.js').default;
67
68
 
68
69
  interface TestSpectraActions extends Omit<typeof import('@testspectra/cli').Spectra, ''> {
69
70
  applyDiscount: (typeof import('../../actions/applyDiscount/web.action.js') extends { default: infer T } ? T : typeof import('../../actions/applyDiscount/web.action.js'));
70
71
  verifyOtp: (typeof import('../../actions/verifyOtp/web.action.js') extends { default: infer T } ? T : typeof import('../../actions/verifyOtp/web.action.js'));
72
+ dismissBanner: (typeof import('../../../../../shared/testing/actions/dismissBanner/common.action.js') extends { default: infer T } ? T : typeof import('../../../../../shared/testing/actions/dismissBanner/common.action.js'));
71
73
  }
72
74
  declare const Spectra: TestSpectraActions;
73
75
 
74
76
  interface TestSpectraSteps {
75
77
  loginUser: (typeof import('../../steps/loginUser/web.step.js') extends { default: infer T } ? T : typeof import('../../steps/loginUser/web.step.js'));
76
78
  searchProduct: (typeof import('../../steps/searchProduct/web.step.js') extends { default: infer T } ? T : typeof import('../../steps/searchProduct/web.step.js'));
79
+ loginAsAdmin: (typeof import('../../../../../shared/testing/steps/loginAsAdmin/common.step.js') extends { default: infer T } ? T : typeof import('../../../../../shared/testing/steps/loginAsAdmin/common.step.js'));
77
80
  }
78
81
  declare const Step: TestSpectraSteps;
79
82