@jscutlery/playwright-ct-angular 0.1.4 → 0.2.0
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/_commonjsHelpers.cjs.js +10 -0
- package/_commonjsHelpers.esm.js +7 -0
- package/hooks.cjs.d.ts +1 -0
- package/hooks.cjs.default.js +1 -0
- package/hooks.cjs.js +32 -0
- package/hooks.cjs.mjs +2 -0
- package/hooks.esm.js +27 -0
- package/index.cjs.js +58916 -23
- package/index.esm.js +58881 -20
- package/package.json +12 -2
- package/register-source.mjs +13 -7
- package/register.cjs.d.ts +2 -0
- package/register.cjs.default.js +1 -0
- package/register.cjs.js +23554 -0
- package/register.cjs.mjs +2 -0
- package/register.esm.js +23552 -0
- package/src/hooks.d.ts +17 -0
- package/src/index.d.ts +18 -1
- package/src/lib/playwright-ct-angular.d.ts +82 -2
- package/src/register.d.ts +17 -0
package/src/hooks.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
export declare const beforeMount: (callback: any) => void;
|
|
17
|
+
export declare const afterMount: (callback: any) => void;
|
package/src/index.d.ts
CHANGED
|
@@ -1,2 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export { devices, expect, test } from './lib/playwright-ct-angular';
|
|
2
|
-
export type { ComponentFixtures
|
|
17
|
+
export type { ComponentFixtures } from './lib/playwright-ct-angular';
|
|
18
|
+
import { defineConfig as originalDefineConfig } from '@playwright/experimental-ct-core';
|
|
19
|
+
export declare const defineConfig: typeof originalDefineConfig;
|
|
@@ -8,7 +8,7 @@ export declare const test: playwright.TestType<playwright.PlaywrightTestArgs & p
|
|
|
8
8
|
} & {
|
|
9
9
|
mount: ComponentFixtures['mount'];
|
|
10
10
|
}, playwright.PlaywrightWorkerArgs & playwright.PlaywrightWorkerOptions>;
|
|
11
|
-
export declare const expect: playwright.Expect
|
|
11
|
+
export declare const expect: playwright.Expect<{}>;
|
|
12
12
|
export declare const devices: {
|
|
13
13
|
[key: string]: {
|
|
14
14
|
viewport: playwright.ViewportSize;
|
|
@@ -162,6 +162,22 @@ export declare const devices: {
|
|
|
162
162
|
hasTouch: boolean;
|
|
163
163
|
defaultBrowserType: "chromium" | "firefox" | "webkit";
|
|
164
164
|
};
|
|
165
|
+
"iPad (gen 5)": {
|
|
166
|
+
viewport: playwright.ViewportSize;
|
|
167
|
+
userAgent: string;
|
|
168
|
+
deviceScaleFactor: number;
|
|
169
|
+
isMobile: boolean;
|
|
170
|
+
hasTouch: boolean;
|
|
171
|
+
defaultBrowserType: "chromium" | "firefox" | "webkit";
|
|
172
|
+
};
|
|
173
|
+
"iPad (gen 5) landscape": {
|
|
174
|
+
viewport: playwright.ViewportSize;
|
|
175
|
+
userAgent: string;
|
|
176
|
+
deviceScaleFactor: number;
|
|
177
|
+
isMobile: boolean;
|
|
178
|
+
hasTouch: boolean;
|
|
179
|
+
defaultBrowserType: "chromium" | "firefox" | "webkit";
|
|
180
|
+
};
|
|
165
181
|
"iPad (gen 6)": {
|
|
166
182
|
viewport: playwright.ViewportSize;
|
|
167
183
|
userAgent: string;
|
|
@@ -546,6 +562,70 @@ export declare const devices: {
|
|
|
546
562
|
hasTouch: boolean;
|
|
547
563
|
defaultBrowserType: "chromium" | "firefox" | "webkit";
|
|
548
564
|
};
|
|
565
|
+
"iPhone 14": {
|
|
566
|
+
viewport: playwright.ViewportSize;
|
|
567
|
+
userAgent: string;
|
|
568
|
+
deviceScaleFactor: number;
|
|
569
|
+
isMobile: boolean;
|
|
570
|
+
hasTouch: boolean;
|
|
571
|
+
defaultBrowserType: "chromium" | "firefox" | "webkit";
|
|
572
|
+
};
|
|
573
|
+
"iPhone 14 landscape": {
|
|
574
|
+
viewport: playwright.ViewportSize;
|
|
575
|
+
userAgent: string;
|
|
576
|
+
deviceScaleFactor: number;
|
|
577
|
+
isMobile: boolean;
|
|
578
|
+
hasTouch: boolean;
|
|
579
|
+
defaultBrowserType: "chromium" | "firefox" | "webkit";
|
|
580
|
+
};
|
|
581
|
+
"iPhone 14 Plus": {
|
|
582
|
+
viewport: playwright.ViewportSize;
|
|
583
|
+
userAgent: string;
|
|
584
|
+
deviceScaleFactor: number;
|
|
585
|
+
isMobile: boolean;
|
|
586
|
+
hasTouch: boolean;
|
|
587
|
+
defaultBrowserType: "chromium" | "firefox" | "webkit";
|
|
588
|
+
};
|
|
589
|
+
"iPhone 14 Plus landscape": {
|
|
590
|
+
viewport: playwright.ViewportSize;
|
|
591
|
+
userAgent: string;
|
|
592
|
+
deviceScaleFactor: number;
|
|
593
|
+
isMobile: boolean;
|
|
594
|
+
hasTouch: boolean;
|
|
595
|
+
defaultBrowserType: "chromium" | "firefox" | "webkit";
|
|
596
|
+
};
|
|
597
|
+
"iPhone 14 Pro": {
|
|
598
|
+
viewport: playwright.ViewportSize;
|
|
599
|
+
userAgent: string;
|
|
600
|
+
deviceScaleFactor: number;
|
|
601
|
+
isMobile: boolean;
|
|
602
|
+
hasTouch: boolean;
|
|
603
|
+
defaultBrowserType: "chromium" | "firefox" | "webkit";
|
|
604
|
+
};
|
|
605
|
+
"iPhone 14 Pro landscape": {
|
|
606
|
+
viewport: playwright.ViewportSize;
|
|
607
|
+
userAgent: string;
|
|
608
|
+
deviceScaleFactor: number;
|
|
609
|
+
isMobile: boolean;
|
|
610
|
+
hasTouch: boolean;
|
|
611
|
+
defaultBrowserType: "chromium" | "firefox" | "webkit";
|
|
612
|
+
};
|
|
613
|
+
"iPhone 14 Pro Max": {
|
|
614
|
+
viewport: playwright.ViewportSize;
|
|
615
|
+
userAgent: string;
|
|
616
|
+
deviceScaleFactor: number;
|
|
617
|
+
isMobile: boolean;
|
|
618
|
+
hasTouch: boolean;
|
|
619
|
+
defaultBrowserType: "chromium" | "firefox" | "webkit";
|
|
620
|
+
};
|
|
621
|
+
"iPhone 14 Pro Max landscape": {
|
|
622
|
+
viewport: playwright.ViewportSize;
|
|
623
|
+
userAgent: string;
|
|
624
|
+
deviceScaleFactor: number;
|
|
625
|
+
isMobile: boolean;
|
|
626
|
+
hasTouch: boolean;
|
|
627
|
+
defaultBrowserType: "chromium" | "firefox" | "webkit";
|
|
628
|
+
};
|
|
549
629
|
"Kindle Fire HDX": {
|
|
550
630
|
viewport: playwright.ViewportSize;
|
|
551
631
|
userAgent: string;
|
|
@@ -954,7 +1034,7 @@ type Emitted<OBSERVABLE> = OBSERVABLE extends Observable<infer EMITTED> ? EMITTE
|
|
|
954
1034
|
Cf. https://github.com/microsoft/playwright/tree/20957f820d34a53003ab0722fa149c80fedec846/packages/playwright-test/types */
|
|
955
1035
|
declare global {
|
|
956
1036
|
export namespace PlaywrightTest {
|
|
957
|
-
interface Matchers<R
|
|
1037
|
+
interface Matchers<R> {
|
|
958
1038
|
lastCalledWith(...args: Array<unknown>): R;
|
|
959
1039
|
lastReturnedWith(value: unknown): R;
|
|
960
1040
|
not: Matchers<R>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
declare const _default: (components: any) => void;
|
|
17
|
+
export default _default;
|