@testspectra/cli 1.0.28 → 1.0.30
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/dist/commands/add.js +4 -6
- package/dist/commands/init.js +84 -43
- package/dist/types/generator.js +73 -71
- package/package.json +1 -1
- package/templates/default/tsconfig.json +1 -15
- package/templates/{nx/modules/auth/e2e/tsconfig.json → default/tsconfig.spectra.json} +7 -8
- package/templates/nx/modules/auth/e2e/project.json +3 -4
- package/templates/nx/modules/catalog/e2e/project.json +3 -4
- package/templates/nx/package.json +1 -1
- package/templates/nx/shared/testing/page-objects/NavigationBar/common.ts +2 -2
- package/templates/nx/tsconfig.json +1 -3
- package/templates/nx/tsconfig.spectra.android.json +36 -0
- package/templates/nx/tsconfig.spectra.ios.json +36 -0
- package/templates/nx/{modules/catalog/e2e/tsconfig.json → tsconfig.spectra.json} +7 -8
- package/templates/nx/tsconfig.spectra.web.json +42 -0
- package/templates/nx/modules/auth/e2e/.testspectra/types/android.d.ts +0 -82
- package/templates/nx/modules/auth/e2e/.testspectra/types/common.d.ts +0 -80
- package/templates/nx/modules/auth/e2e/.testspectra/types/fixtures.d.ts +0 -10
- package/templates/nx/modules/auth/e2e/.testspectra/types/index.d.ts +0 -1
- package/templates/nx/modules/auth/e2e/.testspectra/types/ios.d.ts +0 -82
- package/templates/nx/modules/auth/e2e/.testspectra/types/mobile.d.ts +0 -82
- package/templates/nx/modules/auth/e2e/.testspectra/types/web.d.ts +0 -82
- package/templates/nx/modules/auth/e2e/tsconfig.android.json +0 -39
- package/templates/nx/modules/auth/e2e/tsconfig.android.tsbuildinfo +0 -1
- package/templates/nx/modules/auth/e2e/tsconfig.ios.json +0 -39
- package/templates/nx/modules/auth/e2e/tsconfig.ios.tsbuildinfo +0 -1
- package/templates/nx/modules/auth/e2e/tsconfig.web.json +0 -45
- package/templates/nx/modules/auth/e2e/tsconfig.web.tsbuildinfo +0 -1
- package/templates/nx/modules/catalog/e2e/.testspectra/types/android.d.ts +0 -82
- package/templates/nx/modules/catalog/e2e/.testspectra/types/common.d.ts +0 -80
- package/templates/nx/modules/catalog/e2e/.testspectra/types/fixtures.d.ts +0 -10
- package/templates/nx/modules/catalog/e2e/.testspectra/types/index.d.ts +0 -1
- package/templates/nx/modules/catalog/e2e/.testspectra/types/ios.d.ts +0 -82
- package/templates/nx/modules/catalog/e2e/.testspectra/types/mobile.d.ts +0 -82
- package/templates/nx/modules/catalog/e2e/.testspectra/types/web.d.ts +0 -82
- package/templates/nx/modules/catalog/e2e/tsconfig.android.json +0 -39
- package/templates/nx/modules/catalog/e2e/tsconfig.android.tsbuildinfo +0 -1
- package/templates/nx/modules/catalog/e2e/tsconfig.ios.json +0 -39
- package/templates/nx/modules/catalog/e2e/tsconfig.ios.tsbuildinfo +0 -1
- package/templates/nx/modules/catalog/e2e/tsconfig.web.json +0 -45
- package/templates/nx/modules/catalog/e2e/tsconfig.web.tsbuildinfo +0 -1
- package/templates/nx/shared/testing/tsconfig.json +0 -18
- package/templates/nx/shared/testing/tsconfig.tsbuildinfo +0 -1
- /package/templates/default/{tsconfig.android.json → tsconfig.spectra.android.json} +0 -0
- /package/templates/default/{tsconfig.ios.json → tsconfig.spectra.ios.json} +0 -0
- /package/templates/default/{tsconfig.web.json → tsconfig.spectra.web.json} +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "NodeNext",
|
|
5
|
+
"moduleResolution": "NodeNext",
|
|
6
|
+
"composite": true,
|
|
7
|
+
"noEmit": true,
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
"strict": true,
|
|
10
|
+
"types": ["node", "@wdio/globals/types", "@wdio/mocha-framework"]
|
|
11
|
+
},
|
|
12
|
+
"include": [
|
|
13
|
+
".testspectra/types/web.d.ts",
|
|
14
|
+
".testspectra/types/fixtures.d.ts",
|
|
15
|
+
"spectra.config.ts",
|
|
16
|
+
"modules/**/e2e/**/*.ts",
|
|
17
|
+
"packages/**/e2e/**/*.ts",
|
|
18
|
+
"shared/testing/**/*.ts"
|
|
19
|
+
],
|
|
20
|
+
"exclude": [
|
|
21
|
+
"node_modules",
|
|
22
|
+
"dist",
|
|
23
|
+
"**/page-objects/**/android.ts",
|
|
24
|
+
"**/page-objects/**/ios.ts",
|
|
25
|
+
"**/page-objects/**/mobile.ts",
|
|
26
|
+
"**/steps/**/android.step.ts",
|
|
27
|
+
"**/steps/**/ios.step.ts",
|
|
28
|
+
"**/steps/**/mobile.step.ts",
|
|
29
|
+
"**/actions/**/android.action.ts",
|
|
30
|
+
"**/actions/**/ios.action.ts",
|
|
31
|
+
"**/actions/**/mobile.action.ts",
|
|
32
|
+
"**/global-hooks/**/android.hook.ts",
|
|
33
|
+
"**/global-hooks/**/ios.hook.ts",
|
|
34
|
+
"**/global-hooks/**/mobile.hook.ts",
|
|
35
|
+
"**/specs/**/hooks/**/android.hook.ts",
|
|
36
|
+
"**/specs/**/hooks/**/ios.hook.ts",
|
|
37
|
+
"**/specs/**/hooks/**/mobile.hook.ts",
|
|
38
|
+
"**/specs/**/android.test.ts",
|
|
39
|
+
"**/specs/**/ios.test.ts",
|
|
40
|
+
"**/specs/**/mobile.test.ts"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
// Auto-generated ambient declarations for TestSpectra [ANDROID]
|
|
2
|
-
// Do not edit manually. Run 'spectra watch' or let the Language Service manage this.
|
|
3
|
-
|
|
4
|
-
/// <reference types="@wdio/globals/types" />
|
|
5
|
-
/// <reference types="@wdio/mocha-framework" />
|
|
6
|
-
/// <reference path="./fixtures.d.ts" />
|
|
7
|
-
|
|
8
|
-
declare namespace WebdriverIO {
|
|
9
|
-
export interface InterceptFixtureOptions {
|
|
10
|
-
statusCode?: number;
|
|
11
|
-
headers?: Record<string, string>;
|
|
12
|
-
}
|
|
13
|
-
export interface InterceptFixtureObject<TData = unknown> {
|
|
14
|
-
statusCode?: number;
|
|
15
|
-
body: TData;
|
|
16
|
-
headers?: Record<string, string>;
|
|
17
|
-
}
|
|
18
|
-
export type InterceptInput<TData = unknown> = InterceptFixtureObject<TData> | TData | string;
|
|
19
|
-
interface Mock {
|
|
20
|
-
respondWith<TData = unknown>(fixture: InterceptInput<TData>, options?: InterceptFixtureOptions): Promise<void>;
|
|
21
|
-
}
|
|
22
|
-
interface Browser {
|
|
23
|
-
intercept<TData = unknown>(path: string, method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH', fixture?: InterceptInput<TData>, options?: InterceptFixtureOptions): Promise<Mock>;
|
|
24
|
-
shouldHaveUrl(expectedUrl: string): Promise<void>;
|
|
25
|
-
shouldContainUrl(expectedUrl: string): Promise<void>;
|
|
26
|
-
shouldHaveTitle(expectedTitle: string): Promise<void>;
|
|
27
|
-
shouldContainTitle(expectedTitle: string): Promise<void>;
|
|
28
|
-
}
|
|
29
|
-
interface Element {
|
|
30
|
-
shouldBeVisible(): Promise<Element>;
|
|
31
|
-
shouldNotBeVisible(): Promise<Element>;
|
|
32
|
-
shouldExist(): Promise<Element>;
|
|
33
|
-
shouldNotExist(): Promise<Element>;
|
|
34
|
-
shouldBeEnabled(): Promise<Element>;
|
|
35
|
-
shouldBeDisabled(): Promise<Element>;
|
|
36
|
-
shouldBeSelected(): Promise<Element>;
|
|
37
|
-
shouldBeChecked(): Promise<Element>;
|
|
38
|
-
shouldHaveValue(expectedValue: string): Promise<Element>;
|
|
39
|
-
shouldContainValue(expectedValue: string): Promise<Element>;
|
|
40
|
-
shouldHaveText(expectedText: string): Promise<Element>;
|
|
41
|
-
shouldContainText(expectedText: string): Promise<Element>;
|
|
42
|
-
shouldHaveClass(className: string): Promise<Element>;
|
|
43
|
-
shouldHaveAttribute(attributeName: string, expectedValue?: string): Promise<Element>;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
interface Promise<T> {
|
|
48
|
-
shouldBeVisible(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
49
|
-
shouldNotBeVisible(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
50
|
-
shouldExist(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
51
|
-
shouldNotExist(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
52
|
-
shouldBeEnabled(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
53
|
-
shouldBeDisabled(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
54
|
-
shouldBeSelected(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
55
|
-
shouldBeChecked(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
56
|
-
shouldHaveValue(this: Promise<WebdriverIO.Element>, expectedValue: string): Promise<WebdriverIO.Element>;
|
|
57
|
-
shouldContainValue(this: Promise<WebdriverIO.Element>, expectedValue: string): Promise<WebdriverIO.Element>;
|
|
58
|
-
shouldHaveText(this: Promise<WebdriverIO.Element>, expectedText: string): Promise<WebdriverIO.Element>;
|
|
59
|
-
shouldContainText(this: Promise<WebdriverIO.Element>, expectedText: string): Promise<WebdriverIO.Element>;
|
|
60
|
-
shouldHaveClass(this: Promise<WebdriverIO.Element>, className: string): Promise<WebdriverIO.Element>;
|
|
61
|
-
shouldHaveAttribute(this: Promise<WebdriverIO.Element>, attributeName: string, expectedValue?: string): Promise<WebdriverIO.Element>;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
declare const LoginPage: typeof import('../../page-objects/LoginPage/mobile.js').default;
|
|
65
|
-
declare const ProductPage: typeof import('../../page-objects/ProductPage/mobile.js').default;
|
|
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;
|
|
68
|
-
|
|
69
|
-
interface TestSpectraActions extends Omit<typeof import('@testspectra/cli').Spectra, ''> {
|
|
70
|
-
applyDiscount: (typeof import('../../actions/applyDiscount/mobile.action.js') extends { default: infer T } ? T : typeof import('../../actions/applyDiscount/mobile.action.js'));
|
|
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'));
|
|
73
|
-
}
|
|
74
|
-
declare const Spectra: TestSpectraActions;
|
|
75
|
-
|
|
76
|
-
interface TestSpectraSteps {
|
|
77
|
-
loginUser: (typeof import('../../steps/loginUser/mobile.step.js') extends { default: infer T } ? T : typeof import('../../steps/loginUser/mobile.step.js'));
|
|
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'));
|
|
80
|
-
}
|
|
81
|
-
declare const Step: TestSpectraSteps;
|
|
82
|
-
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
// Auto-generated ambient declarations for TestSpectra [COMMON]
|
|
2
|
-
// Do not edit manually. Run 'spectra watch' or let the Language Service manage this.
|
|
3
|
-
|
|
4
|
-
/// <reference types="@wdio/globals/types" />
|
|
5
|
-
/// <reference types="@wdio/mocha-framework" />
|
|
6
|
-
/// <reference path="./fixtures.d.ts" />
|
|
7
|
-
|
|
8
|
-
declare namespace WebdriverIO {
|
|
9
|
-
export interface InterceptFixtureOptions {
|
|
10
|
-
statusCode?: number;
|
|
11
|
-
headers?: Record<string, string>;
|
|
12
|
-
}
|
|
13
|
-
export interface InterceptFixtureObject<TData = unknown> {
|
|
14
|
-
statusCode?: number;
|
|
15
|
-
body: TData;
|
|
16
|
-
headers?: Record<string, string>;
|
|
17
|
-
}
|
|
18
|
-
export type InterceptInput<TData = unknown> = InterceptFixtureObject<TData> | TData | string;
|
|
19
|
-
interface Mock {
|
|
20
|
-
respondWith<TData = unknown>(fixture: InterceptInput<TData>, options?: InterceptFixtureOptions): Promise<void>;
|
|
21
|
-
}
|
|
22
|
-
interface Browser {
|
|
23
|
-
intercept<TData = unknown>(path: string, method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH', fixture?: InterceptInput<TData>, options?: InterceptFixtureOptions): Promise<Mock>;
|
|
24
|
-
shouldHaveUrl(expectedUrl: string): Promise<void>;
|
|
25
|
-
shouldContainUrl(expectedUrl: string): Promise<void>;
|
|
26
|
-
shouldHaveTitle(expectedTitle: string): Promise<void>;
|
|
27
|
-
shouldContainTitle(expectedTitle: string): Promise<void>;
|
|
28
|
-
}
|
|
29
|
-
interface Element {
|
|
30
|
-
shouldBeVisible(): Promise<Element>;
|
|
31
|
-
shouldNotBeVisible(): Promise<Element>;
|
|
32
|
-
shouldExist(): Promise<Element>;
|
|
33
|
-
shouldNotExist(): Promise<Element>;
|
|
34
|
-
shouldBeEnabled(): Promise<Element>;
|
|
35
|
-
shouldBeDisabled(): Promise<Element>;
|
|
36
|
-
shouldBeSelected(): Promise<Element>;
|
|
37
|
-
shouldBeChecked(): Promise<Element>;
|
|
38
|
-
shouldHaveValue(expectedValue: string): Promise<Element>;
|
|
39
|
-
shouldContainValue(expectedValue: string): Promise<Element>;
|
|
40
|
-
shouldHaveText(expectedText: string): Promise<Element>;
|
|
41
|
-
shouldContainText(expectedText: string): Promise<Element>;
|
|
42
|
-
shouldHaveClass(className: string): Promise<Element>;
|
|
43
|
-
shouldHaveAttribute(attributeName: string, expectedValue?: string): Promise<Element>;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
interface Promise<T> {
|
|
48
|
-
shouldBeVisible(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
49
|
-
shouldNotBeVisible(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
50
|
-
shouldExist(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
51
|
-
shouldNotExist(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
52
|
-
shouldBeEnabled(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
53
|
-
shouldBeDisabled(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
54
|
-
shouldBeSelected(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
55
|
-
shouldBeChecked(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
56
|
-
shouldHaveValue(this: Promise<WebdriverIO.Element>, expectedValue: string): Promise<WebdriverIO.Element>;
|
|
57
|
-
shouldContainValue(this: Promise<WebdriverIO.Element>, expectedValue: string): Promise<WebdriverIO.Element>;
|
|
58
|
-
shouldHaveText(this: Promise<WebdriverIO.Element>, expectedText: string): Promise<WebdriverIO.Element>;
|
|
59
|
-
shouldContainText(this: Promise<WebdriverIO.Element>, expectedText: string): Promise<WebdriverIO.Element>;
|
|
60
|
-
shouldHaveClass(this: Promise<WebdriverIO.Element>, className: string): Promise<WebdriverIO.Element>;
|
|
61
|
-
shouldHaveAttribute(this: Promise<WebdriverIO.Element>, attributeName: string, expectedValue?: string): Promise<WebdriverIO.Element>;
|
|
62
|
-
}
|
|
63
|
-
|
|
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;
|
|
66
|
-
|
|
67
|
-
interface TestSpectraActions extends Omit<typeof import('@testspectra/cli').Spectra, ''> {
|
|
68
|
-
applyDiscount: (...args: any[]) => Promise<any>;
|
|
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'));
|
|
71
|
-
}
|
|
72
|
-
declare const Spectra: TestSpectraActions;
|
|
73
|
-
|
|
74
|
-
interface TestSpectraSteps {
|
|
75
|
-
loginUser: (...args: any[]) => Promise<any>;
|
|
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'));
|
|
78
|
-
}
|
|
79
|
-
declare const Step: TestSpectraSteps;
|
|
80
|
-
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// Auto-generated ambient fixture declarations for TestSpectra
|
|
2
|
-
// Do not edit manually. Run 'spectra watch' or let the Language Service manage this.
|
|
3
|
-
|
|
4
|
-
interface TestSpectraFixtures {
|
|
5
|
-
readonly couponCode: string;
|
|
6
|
-
readonly searchQuery: string;
|
|
7
|
-
readonly userData: string;
|
|
8
|
-
readonly appConfig: string;
|
|
9
|
-
}
|
|
10
|
-
declare const Fixture: TestSpectraFixtures;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference path="./common.d.ts" />
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
// Auto-generated ambient declarations for TestSpectra [IOS]
|
|
2
|
-
// Do not edit manually. Run 'spectra watch' or let the Language Service manage this.
|
|
3
|
-
|
|
4
|
-
/// <reference types="@wdio/globals/types" />
|
|
5
|
-
/// <reference types="@wdio/mocha-framework" />
|
|
6
|
-
/// <reference path="./fixtures.d.ts" />
|
|
7
|
-
|
|
8
|
-
declare namespace WebdriverIO {
|
|
9
|
-
export interface InterceptFixtureOptions {
|
|
10
|
-
statusCode?: number;
|
|
11
|
-
headers?: Record<string, string>;
|
|
12
|
-
}
|
|
13
|
-
export interface InterceptFixtureObject<TData = unknown> {
|
|
14
|
-
statusCode?: number;
|
|
15
|
-
body: TData;
|
|
16
|
-
headers?: Record<string, string>;
|
|
17
|
-
}
|
|
18
|
-
export type InterceptInput<TData = unknown> = InterceptFixtureObject<TData> | TData | string;
|
|
19
|
-
interface Mock {
|
|
20
|
-
respondWith<TData = unknown>(fixture: InterceptInput<TData>, options?: InterceptFixtureOptions): Promise<void>;
|
|
21
|
-
}
|
|
22
|
-
interface Browser {
|
|
23
|
-
intercept<TData = unknown>(path: string, method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH', fixture?: InterceptInput<TData>, options?: InterceptFixtureOptions): Promise<Mock>;
|
|
24
|
-
shouldHaveUrl(expectedUrl: string): Promise<void>;
|
|
25
|
-
shouldContainUrl(expectedUrl: string): Promise<void>;
|
|
26
|
-
shouldHaveTitle(expectedTitle: string): Promise<void>;
|
|
27
|
-
shouldContainTitle(expectedTitle: string): Promise<void>;
|
|
28
|
-
}
|
|
29
|
-
interface Element {
|
|
30
|
-
shouldBeVisible(): Promise<Element>;
|
|
31
|
-
shouldNotBeVisible(): Promise<Element>;
|
|
32
|
-
shouldExist(): Promise<Element>;
|
|
33
|
-
shouldNotExist(): Promise<Element>;
|
|
34
|
-
shouldBeEnabled(): Promise<Element>;
|
|
35
|
-
shouldBeDisabled(): Promise<Element>;
|
|
36
|
-
shouldBeSelected(): Promise<Element>;
|
|
37
|
-
shouldBeChecked(): Promise<Element>;
|
|
38
|
-
shouldHaveValue(expectedValue: string): Promise<Element>;
|
|
39
|
-
shouldContainValue(expectedValue: string): Promise<Element>;
|
|
40
|
-
shouldHaveText(expectedText: string): Promise<Element>;
|
|
41
|
-
shouldContainText(expectedText: string): Promise<Element>;
|
|
42
|
-
shouldHaveClass(className: string): Promise<Element>;
|
|
43
|
-
shouldHaveAttribute(attributeName: string, expectedValue?: string): Promise<Element>;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
interface Promise<T> {
|
|
48
|
-
shouldBeVisible(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
49
|
-
shouldNotBeVisible(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
50
|
-
shouldExist(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
51
|
-
shouldNotExist(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
52
|
-
shouldBeEnabled(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
53
|
-
shouldBeDisabled(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
54
|
-
shouldBeSelected(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
55
|
-
shouldBeChecked(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
56
|
-
shouldHaveValue(this: Promise<WebdriverIO.Element>, expectedValue: string): Promise<WebdriverIO.Element>;
|
|
57
|
-
shouldContainValue(this: Promise<WebdriverIO.Element>, expectedValue: string): Promise<WebdriverIO.Element>;
|
|
58
|
-
shouldHaveText(this: Promise<WebdriverIO.Element>, expectedText: string): Promise<WebdriverIO.Element>;
|
|
59
|
-
shouldContainText(this: Promise<WebdriverIO.Element>, expectedText: string): Promise<WebdriverIO.Element>;
|
|
60
|
-
shouldHaveClass(this: Promise<WebdriverIO.Element>, className: string): Promise<WebdriverIO.Element>;
|
|
61
|
-
shouldHaveAttribute(this: Promise<WebdriverIO.Element>, attributeName: string, expectedValue?: string): Promise<WebdriverIO.Element>;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
declare const LoginPage: typeof import('../../page-objects/LoginPage/mobile.js').default;
|
|
65
|
-
declare const ProductPage: typeof import('../../page-objects/ProductPage/mobile.js').default;
|
|
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;
|
|
68
|
-
|
|
69
|
-
interface TestSpectraActions extends Omit<typeof import('@testspectra/cli').Spectra, ''> {
|
|
70
|
-
applyDiscount: (typeof import('../../actions/applyDiscount/mobile.action.js') extends { default: infer T } ? T : typeof import('../../actions/applyDiscount/mobile.action.js'));
|
|
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'));
|
|
73
|
-
}
|
|
74
|
-
declare const Spectra: TestSpectraActions;
|
|
75
|
-
|
|
76
|
-
interface TestSpectraSteps {
|
|
77
|
-
loginUser: (typeof import('../../steps/loginUser/mobile.step.js') extends { default: infer T } ? T : typeof import('../../steps/loginUser/mobile.step.js'));
|
|
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'));
|
|
80
|
-
}
|
|
81
|
-
declare const Step: TestSpectraSteps;
|
|
82
|
-
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
// Auto-generated ambient declarations for TestSpectra [MOBILE]
|
|
2
|
-
// Do not edit manually. Run 'spectra watch' or let the Language Service manage this.
|
|
3
|
-
|
|
4
|
-
/// <reference types="@wdio/globals/types" />
|
|
5
|
-
/// <reference types="@wdio/mocha-framework" />
|
|
6
|
-
/// <reference path="./fixtures.d.ts" />
|
|
7
|
-
|
|
8
|
-
declare namespace WebdriverIO {
|
|
9
|
-
export interface InterceptFixtureOptions {
|
|
10
|
-
statusCode?: number;
|
|
11
|
-
headers?: Record<string, string>;
|
|
12
|
-
}
|
|
13
|
-
export interface InterceptFixtureObject<TData = unknown> {
|
|
14
|
-
statusCode?: number;
|
|
15
|
-
body: TData;
|
|
16
|
-
headers?: Record<string, string>;
|
|
17
|
-
}
|
|
18
|
-
export type InterceptInput<TData = unknown> = InterceptFixtureObject<TData> | TData | string;
|
|
19
|
-
interface Mock {
|
|
20
|
-
respondWith<TData = unknown>(fixture: InterceptInput<TData>, options?: InterceptFixtureOptions): Promise<void>;
|
|
21
|
-
}
|
|
22
|
-
interface Browser {
|
|
23
|
-
intercept<TData = unknown>(path: string, method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH', fixture?: InterceptInput<TData>, options?: InterceptFixtureOptions): Promise<Mock>;
|
|
24
|
-
shouldHaveUrl(expectedUrl: string): Promise<void>;
|
|
25
|
-
shouldContainUrl(expectedUrl: string): Promise<void>;
|
|
26
|
-
shouldHaveTitle(expectedTitle: string): Promise<void>;
|
|
27
|
-
shouldContainTitle(expectedTitle: string): Promise<void>;
|
|
28
|
-
}
|
|
29
|
-
interface Element {
|
|
30
|
-
shouldBeVisible(): Promise<Element>;
|
|
31
|
-
shouldNotBeVisible(): Promise<Element>;
|
|
32
|
-
shouldExist(): Promise<Element>;
|
|
33
|
-
shouldNotExist(): Promise<Element>;
|
|
34
|
-
shouldBeEnabled(): Promise<Element>;
|
|
35
|
-
shouldBeDisabled(): Promise<Element>;
|
|
36
|
-
shouldBeSelected(): Promise<Element>;
|
|
37
|
-
shouldBeChecked(): Promise<Element>;
|
|
38
|
-
shouldHaveValue(expectedValue: string): Promise<Element>;
|
|
39
|
-
shouldContainValue(expectedValue: string): Promise<Element>;
|
|
40
|
-
shouldHaveText(expectedText: string): Promise<Element>;
|
|
41
|
-
shouldContainText(expectedText: string): Promise<Element>;
|
|
42
|
-
shouldHaveClass(className: string): Promise<Element>;
|
|
43
|
-
shouldHaveAttribute(attributeName: string, expectedValue?: string): Promise<Element>;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
interface Promise<T> {
|
|
48
|
-
shouldBeVisible(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
49
|
-
shouldNotBeVisible(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
50
|
-
shouldExist(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
51
|
-
shouldNotExist(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
52
|
-
shouldBeEnabled(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
53
|
-
shouldBeDisabled(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
54
|
-
shouldBeSelected(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
55
|
-
shouldBeChecked(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
56
|
-
shouldHaveValue(this: Promise<WebdriverIO.Element>, expectedValue: string): Promise<WebdriverIO.Element>;
|
|
57
|
-
shouldContainValue(this: Promise<WebdriverIO.Element>, expectedValue: string): Promise<WebdriverIO.Element>;
|
|
58
|
-
shouldHaveText(this: Promise<WebdriverIO.Element>, expectedText: string): Promise<WebdriverIO.Element>;
|
|
59
|
-
shouldContainText(this: Promise<WebdriverIO.Element>, expectedText: string): Promise<WebdriverIO.Element>;
|
|
60
|
-
shouldHaveClass(this: Promise<WebdriverIO.Element>, className: string): Promise<WebdriverIO.Element>;
|
|
61
|
-
shouldHaveAttribute(this: Promise<WebdriverIO.Element>, attributeName: string, expectedValue?: string): Promise<WebdriverIO.Element>;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
declare const LoginPage: typeof import('../../page-objects/LoginPage/mobile.js').default;
|
|
65
|
-
declare const ProductPage: typeof import('../../page-objects/ProductPage/mobile.js').default;
|
|
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;
|
|
68
|
-
|
|
69
|
-
interface TestSpectraActions extends Omit<typeof import('@testspectra/cli').Spectra, ''> {
|
|
70
|
-
applyDiscount: (typeof import('../../actions/applyDiscount/mobile.action.js') extends { default: infer T } ? T : typeof import('../../actions/applyDiscount/mobile.action.js'));
|
|
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'));
|
|
73
|
-
}
|
|
74
|
-
declare const Spectra: TestSpectraActions;
|
|
75
|
-
|
|
76
|
-
interface TestSpectraSteps {
|
|
77
|
-
loginUser: (typeof import('../../steps/loginUser/mobile.step.js') extends { default: infer T } ? T : typeof import('../../steps/loginUser/mobile.step.js'));
|
|
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'));
|
|
80
|
-
}
|
|
81
|
-
declare const Step: TestSpectraSteps;
|
|
82
|
-
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
// Auto-generated ambient declarations for TestSpectra [WEB]
|
|
2
|
-
// Do not edit manually. Run 'spectra watch' or let the Language Service manage this.
|
|
3
|
-
|
|
4
|
-
/// <reference types="@wdio/globals/types" />
|
|
5
|
-
/// <reference types="@wdio/mocha-framework" />
|
|
6
|
-
/// <reference path="./fixtures.d.ts" />
|
|
7
|
-
|
|
8
|
-
declare namespace WebdriverIO {
|
|
9
|
-
export interface InterceptFixtureOptions {
|
|
10
|
-
statusCode?: number;
|
|
11
|
-
headers?: Record<string, string>;
|
|
12
|
-
}
|
|
13
|
-
export interface InterceptFixtureObject<TData = unknown> {
|
|
14
|
-
statusCode?: number;
|
|
15
|
-
body: TData;
|
|
16
|
-
headers?: Record<string, string>;
|
|
17
|
-
}
|
|
18
|
-
export type InterceptInput<TData = unknown> = InterceptFixtureObject<TData> | TData | string;
|
|
19
|
-
interface Mock {
|
|
20
|
-
respondWith<TData = unknown>(fixture: InterceptInput<TData>, options?: InterceptFixtureOptions): Promise<void>;
|
|
21
|
-
}
|
|
22
|
-
interface Browser {
|
|
23
|
-
intercept<TData = unknown>(path: string, method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH', fixture?: InterceptInput<TData>, options?: InterceptFixtureOptions): Promise<Mock>;
|
|
24
|
-
shouldHaveUrl(expectedUrl: string): Promise<void>;
|
|
25
|
-
shouldContainUrl(expectedUrl: string): Promise<void>;
|
|
26
|
-
shouldHaveTitle(expectedTitle: string): Promise<void>;
|
|
27
|
-
shouldContainTitle(expectedTitle: string): Promise<void>;
|
|
28
|
-
}
|
|
29
|
-
interface Element {
|
|
30
|
-
shouldBeVisible(): Promise<Element>;
|
|
31
|
-
shouldNotBeVisible(): Promise<Element>;
|
|
32
|
-
shouldExist(): Promise<Element>;
|
|
33
|
-
shouldNotExist(): Promise<Element>;
|
|
34
|
-
shouldBeEnabled(): Promise<Element>;
|
|
35
|
-
shouldBeDisabled(): Promise<Element>;
|
|
36
|
-
shouldBeSelected(): Promise<Element>;
|
|
37
|
-
shouldBeChecked(): Promise<Element>;
|
|
38
|
-
shouldHaveValue(expectedValue: string): Promise<Element>;
|
|
39
|
-
shouldContainValue(expectedValue: string): Promise<Element>;
|
|
40
|
-
shouldHaveText(expectedText: string): Promise<Element>;
|
|
41
|
-
shouldContainText(expectedText: string): Promise<Element>;
|
|
42
|
-
shouldHaveClass(className: string): Promise<Element>;
|
|
43
|
-
shouldHaveAttribute(attributeName: string, expectedValue?: string): Promise<Element>;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
interface Promise<T> {
|
|
48
|
-
shouldBeVisible(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
49
|
-
shouldNotBeVisible(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
50
|
-
shouldExist(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
51
|
-
shouldNotExist(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
52
|
-
shouldBeEnabled(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
53
|
-
shouldBeDisabled(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
54
|
-
shouldBeSelected(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
55
|
-
shouldBeChecked(this: Promise<WebdriverIO.Element>): Promise<WebdriverIO.Element>;
|
|
56
|
-
shouldHaveValue(this: Promise<WebdriverIO.Element>, expectedValue: string): Promise<WebdriverIO.Element>;
|
|
57
|
-
shouldContainValue(this: Promise<WebdriverIO.Element>, expectedValue: string): Promise<WebdriverIO.Element>;
|
|
58
|
-
shouldHaveText(this: Promise<WebdriverIO.Element>, expectedText: string): Promise<WebdriverIO.Element>;
|
|
59
|
-
shouldContainText(this: Promise<WebdriverIO.Element>, expectedText: string): Promise<WebdriverIO.Element>;
|
|
60
|
-
shouldHaveClass(this: Promise<WebdriverIO.Element>, className: string): Promise<WebdriverIO.Element>;
|
|
61
|
-
shouldHaveAttribute(this: Promise<WebdriverIO.Element>, attributeName: string, expectedValue?: string): Promise<WebdriverIO.Element>;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
declare const LoginPage: typeof import('../../page-objects/LoginPage/web.js').default;
|
|
65
|
-
declare const ProductPage: typeof import('../../page-objects/ProductPage/web.js').default;
|
|
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;
|
|
68
|
-
|
|
69
|
-
interface TestSpectraActions extends Omit<typeof import('@testspectra/cli').Spectra, ''> {
|
|
70
|
-
applyDiscount: (typeof import('../../actions/applyDiscount/web.action.js') extends { default: infer T } ? T : typeof import('../../actions/applyDiscount/web.action.js'));
|
|
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'));
|
|
73
|
-
}
|
|
74
|
-
declare const Spectra: TestSpectraActions;
|
|
75
|
-
|
|
76
|
-
interface TestSpectraSteps {
|
|
77
|
-
loginUser: (typeof import('../../steps/loginUser/web.step.js') extends { default: infer T } ? T : typeof import('../../steps/loginUser/web.step.js'));
|
|
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'));
|
|
80
|
-
}
|
|
81
|
-
declare const Step: TestSpectraSteps;
|
|
82
|
-
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2022",
|
|
4
|
-
"module": "NodeNext",
|
|
5
|
-
"moduleResolution": "NodeNext",
|
|
6
|
-
"composite": true,
|
|
7
|
-
"noEmit": true,
|
|
8
|
-
"skipLibCheck": true,
|
|
9
|
-
"strict": true,
|
|
10
|
-
"types": ["node", "@wdio/globals/types", "@wdio/mocha-framework"]
|
|
11
|
-
},
|
|
12
|
-
"include": [
|
|
13
|
-
".testspectra/types/android.d.ts",
|
|
14
|
-
".testspectra/types/fixtures.d.ts",
|
|
15
|
-
"page-objects/**/*.ts",
|
|
16
|
-
"steps/**/*.ts",
|
|
17
|
-
"actions/**/*.ts",
|
|
18
|
-
"global-hooks/**/*.ts",
|
|
19
|
-
"specs/**/hooks/**/*.ts",
|
|
20
|
-
"specs/**/*.ts",
|
|
21
|
-
"spectra.config.ts"
|
|
22
|
-
],
|
|
23
|
-
"exclude": [
|
|
24
|
-
"node_modules",
|
|
25
|
-
"dist",
|
|
26
|
-
"page-objects/**/web.ts",
|
|
27
|
-
"page-objects/**/ios.ts",
|
|
28
|
-
"steps/**/web.step.ts",
|
|
29
|
-
"steps/**/ios.step.ts",
|
|
30
|
-
"actions/**/web.action.ts",
|
|
31
|
-
"actions/**/ios.action.ts",
|
|
32
|
-
"global-hooks/**/web.hook.ts",
|
|
33
|
-
"global-hooks/**/ios.hook.ts",
|
|
34
|
-
"specs/**/hooks/**/web.hook.ts",
|
|
35
|
-
"specs/**/hooks/**/ios.hook.ts",
|
|
36
|
-
"specs/**/web.test.ts",
|
|
37
|
-
"specs/**/ios.test.ts"
|
|
38
|
-
]
|
|
39
|
-
}
|