@tramvai/test-pw 5.41.2 → 5.45.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/lib/launch.d.ts +14 -1
- package/lib/wrapper.d.ts +1 -1
- package/package.json +6 -6
package/lib/launch.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import type { Browser } from 'playwright-core';
|
|
2
3
|
import { chromium } from 'playwright-core';
|
|
3
4
|
type PWOptions = Parameters<typeof chromium.launch>[0];
|
|
@@ -13,6 +14,16 @@ export declare const initPlaywright: (serverUrl: string, { enableLogging, ...opt
|
|
|
13
14
|
acceptDownloads?: boolean | undefined;
|
|
14
15
|
baseURL?: string | undefined;
|
|
15
16
|
bypassCSP?: boolean | undefined;
|
|
17
|
+
clientCertificates?: {
|
|
18
|
+
origin: string;
|
|
19
|
+
certPath?: string | undefined;
|
|
20
|
+
cert?: Buffer | undefined;
|
|
21
|
+
keyPath?: string | undefined;
|
|
22
|
+
key?: Buffer | undefined;
|
|
23
|
+
pfxPath?: string | undefined;
|
|
24
|
+
pfx?: Buffer | undefined;
|
|
25
|
+
passphrase?: string | undefined;
|
|
26
|
+
}[] | undefined;
|
|
16
27
|
colorScheme?: "light" | "dark" | "no-preference" | null | undefined;
|
|
17
28
|
deviceScaleFactor?: number | undefined;
|
|
18
29
|
extraHTTPHeaders?: {
|
|
@@ -28,6 +39,8 @@ export declare const initPlaywright: (serverUrl: string, { enableLogging, ...opt
|
|
|
28
39
|
httpCredentials?: {
|
|
29
40
|
username: string;
|
|
30
41
|
password: string;
|
|
42
|
+
origin?: string | undefined;
|
|
43
|
+
send?: "always" | "unauthorized" | undefined;
|
|
31
44
|
} | undefined;
|
|
32
45
|
ignoreHTTPSErrors?: boolean | undefined;
|
|
33
46
|
isMobile?: boolean | undefined;
|
|
@@ -96,7 +109,7 @@ export declare const initPlaywright: (serverUrl: string, { enableLogging, ...opt
|
|
|
96
109
|
} | undefined) => Promise<{
|
|
97
110
|
page: import("playwright-core").Page;
|
|
98
111
|
reset: (url?: string) => Promise<import("playwright-core").Response | null>;
|
|
99
|
-
waitForUrl: (url: string) => Promise<import("playwright-core").JSHandle<
|
|
112
|
+
waitForUrl: (url: string) => Promise<import("playwright-core").JSHandle<boolean>>;
|
|
100
113
|
router: {
|
|
101
114
|
navigate: (options: string | import("@tinkoff/router").NavigateOptions) => Promise<any>;
|
|
102
115
|
navigateThenWaitForReload: (options: string | import("@tinkoff/router").NavigateOptions) => Promise<[void, import("playwright-core").Response | null]>;
|
package/lib/wrapper.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ declare global {
|
|
|
8
8
|
export declare const wrapPlaywrightPage: (page: Page) => {
|
|
9
9
|
page: Page;
|
|
10
10
|
reset: (url?: string) => Promise<import("playwright-core").Response | null>;
|
|
11
|
-
waitForUrl: (url: string) => Promise<import("playwright-core").JSHandle<
|
|
11
|
+
waitForUrl: (url: string) => Promise<import("playwright-core").JSHandle<boolean>>;
|
|
12
12
|
router: {
|
|
13
13
|
navigate: (options: string | import("@tinkoff/router").NavigateOptions) => Promise<any>;
|
|
14
14
|
navigateThenWaitForReload: (options: string | import("@tinkoff/router").NavigateOptions) => Promise<[void, import("playwright-core").Response | null]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/test-pw",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.45.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@tinkoff/utils": "^2.1.2",
|
|
21
|
-
"@tramvai/test-integration": "5.
|
|
22
|
-
"@tramvai/tokens-router": "5.
|
|
21
|
+
"@tramvai/test-integration": "5.45.0",
|
|
22
|
+
"@tramvai/tokens-router": "5.45.0",
|
|
23
23
|
"console-with-style": "^1.1.0",
|
|
24
24
|
"get-port": "^5.1.1",
|
|
25
25
|
"supports-color": "8.1.1",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"@types/supports-color": "^8.1.1",
|
|
36
36
|
"@types/env-ci": "^3.1.0",
|
|
37
37
|
"@types/wait-on": "^5.2.0",
|
|
38
|
-
"@tramvai/cli": "5.
|
|
39
|
-
"@playwright/test": "1.
|
|
40
|
-
"playwright-core": "1.
|
|
38
|
+
"@tramvai/cli": "5.45.0",
|
|
39
|
+
"@playwright/test": "1.48.2",
|
|
40
|
+
"playwright-core": "1.48.2"
|
|
41
41
|
},
|
|
42
42
|
"license": "Apache-2.0",
|
|
43
43
|
"module": "lib/index.es.js"
|