@molecule/app-e2e-fixtures-default 1.2.3 → 1.2.5
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/README.md +176 -143
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
|
|
|
3
3
|
Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
|
|
4
4
|
Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
|
|
5
5
|
To change this document, edit the module-level JSDoc in src/index.ts.
|
|
6
|
-
Generated: 2026-10-
|
|
6
|
+
Generated: 2026-10-26T04:25:11.081Z
|
|
7
7
|
-->
|
|
8
8
|
|
|
9
9
|
# @molecule/app-e2e-fixtures-default
|
|
@@ -1619,12 +1619,11 @@ interface Locator {
|
|
|
1619
1619
|
* multiple elements match the locator, throws.
|
|
1620
1620
|
* @param options
|
|
1621
1621
|
*/
|
|
1622
|
-
elementHandle(options?: { timeout?: number }): Promise<ElementHandle<SVGElement | HTMLElement>>;
|
|
1622
|
+
elementHandle(options?: { timeout?: number, signal?: AbortSignal }): Promise<ElementHandle<SVGElement | HTMLElement>>;
|
|
1623
1623
|
/**
|
|
1624
1624
|
* Highlight the corresponding element(s) on the screen. Useful for debugging, don't commit the code that uses
|
|
1625
1625
|
* [locator.highlight([options])](https://playwright.dev/docs/api/class-locator#locator-highlight).
|
|
1626
1626
|
* @param options
|
|
1627
|
-
*/
|
|
1628
1627
|
// … truncated — the full declaration is in node_modules/playwright-core/types/types.d.ts
|
|
1629
1628
|
````
|
|
1630
1629
|
|
|
@@ -1833,6 +1832,139 @@ If you want API requests that do **not** share cookies with the browser, create
|
|
|
1833
1832
|
|
|
1834
1833
|
````typescript
|
|
1835
1834
|
interface APIRequestContext {
|
|
1835
|
+
/**
|
|
1836
|
+
* Adds cookies into this request context. They will be sent with matching subsequent requests. For
|
|
1837
|
+
* [browserContext.request](https://playwright.dev/docs/api/class-browsercontext#browser-context-request) and
|
|
1838
|
+
* [page.request](https://playwright.dev/docs/api/class-page#page-request), this is equivalent to calling
|
|
1839
|
+
* [browserContext.addCookies(cookies)](https://playwright.dev/docs/api/class-browsercontext#browser-context-add-cookies)
|
|
1840
|
+
* on the corresponding browser context.
|
|
1841
|
+
*
|
|
1842
|
+
* **Usage**
|
|
1843
|
+
*
|
|
1844
|
+
* ```js
|
|
1845
|
+
* await request.addCookies([cookieObject1, cookieObject2]);
|
|
1846
|
+
* ```
|
|
1847
|
+
*
|
|
1848
|
+
* @param cookies
|
|
1849
|
+
*/
|
|
1850
|
+
addCookies(cookies: ReadonlyArray<{
|
|
1851
|
+
name: string;
|
|
1852
|
+
|
|
1853
|
+
value: string;
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* Either `url` or both `domain` and `path` are required. Optional.
|
|
1857
|
+
*/
|
|
1858
|
+
url?: string;
|
|
1859
|
+
|
|
1860
|
+
/**
|
|
1861
|
+
* For the cookie to apply to all subdomains as well, prefix domain with a dot, like this: ".example.com". Either
|
|
1862
|
+
* `url` or both `domain` and `path` are required. Optional.
|
|
1863
|
+
*/
|
|
1864
|
+
domain?: string;
|
|
1865
|
+
|
|
1866
|
+
/**
|
|
1867
|
+
* Either `url` or both `domain` and `path` are required. Optional.
|
|
1868
|
+
*/
|
|
1869
|
+
path?: string;
|
|
1870
|
+
|
|
1871
|
+
/**
|
|
1872
|
+
* Unix time in seconds. Optional.
|
|
1873
|
+
*/
|
|
1874
|
+
expires?: number;
|
|
1875
|
+
|
|
1876
|
+
/**
|
|
1877
|
+
* Optional.
|
|
1878
|
+
*/
|
|
1879
|
+
httpOnly?: boolean;
|
|
1880
|
+
|
|
1881
|
+
/**
|
|
1882
|
+
* Optional.
|
|
1883
|
+
*/
|
|
1884
|
+
secure?: boolean;
|
|
1885
|
+
|
|
1886
|
+
/**
|
|
1887
|
+
* Optional.
|
|
1888
|
+
*/
|
|
1889
|
+
sameSite?: "Strict"|"Lax"|"None";
|
|
1890
|
+
|
|
1891
|
+
/**
|
|
1892
|
+
* For partitioned third-party cookies (aka
|
|
1893
|
+
* [CHIPS](https://developer.mozilla.org/en-US/docs/Web/Privacy/Guides/Privacy_sandbox/Partitioned_cookies)), the
|
|
1894
|
+
* partition key. Optional.
|
|
1895
|
+
*/
|
|
1896
|
+
partitionKey?: string;
|
|
1897
|
+
}>): Promise<void>;
|
|
1898
|
+
|
|
1899
|
+
/**
|
|
1900
|
+
* Removes cookies from this request context. Accepts optional filter. For
|
|
1901
|
+
* [browserContext.request](https://playwright.dev/docs/api/class-browsercontext#browser-context-request) and
|
|
1902
|
+
* [page.request](https://playwright.dev/docs/api/class-page#page-request), this is equivalent to calling
|
|
1903
|
+
* [browserContext.clearCookies([options])](https://playwright.dev/docs/api/class-browsercontext#browser-context-clear-cookies)
|
|
1904
|
+
* on the corresponding browser context.
|
|
1905
|
+
*
|
|
1906
|
+
* **Usage**
|
|
1907
|
+
*
|
|
1908
|
+
* ```js
|
|
1909
|
+
* await request.clearCookies();
|
|
1910
|
+
* await request.clearCookies({ name: 'session-id' });
|
|
1911
|
+
* await request.clearCookies({ domain: 'my-origin.com' });
|
|
1912
|
+
* await request.clearCookies({ domain: /.*my-origin\.com/ });
|
|
1913
|
+
* await request.clearCookies({ path: '/api/v1' });
|
|
1914
|
+
* await request.clearCookies({ name: 'session-id', domain: 'my-origin.com' });
|
|
1915
|
+
* ```
|
|
1916
|
+
*
|
|
1917
|
+
* @param options
|
|
1918
|
+
*/
|
|
1919
|
+
clearCookies(options?: {
|
|
1920
|
+
/**
|
|
1921
|
+
* Only removes cookies with the given domain.
|
|
1922
|
+
*/
|
|
1923
|
+
domain?: string|RegExp;
|
|
1924
|
+
|
|
1925
|
+
/**
|
|
1926
|
+
* Only removes cookies with the given name.
|
|
1927
|
+
*/
|
|
1928
|
+
name?: string|RegExp;
|
|
1929
|
+
|
|
1930
|
+
/**
|
|
1931
|
+
* Only removes cookies with the given path.
|
|
1932
|
+
*/
|
|
1933
|
+
path?: string|RegExp;
|
|
1934
|
+
}): Promise<void>;
|
|
1935
|
+
|
|
1936
|
+
/**
|
|
1937
|
+
* If no URLs are specified, this method returns all cookies. If URLs are specified, only cookies that affect those
|
|
1938
|
+
* URLs are returned. For
|
|
1939
|
+
* [browserContext.request](https://playwright.dev/docs/api/class-browsercontext#browser-context-request) and
|
|
1940
|
+
* [page.request](https://playwright.dev/docs/api/class-page#page-request), this is equivalent to calling
|
|
1941
|
+
* [browserContext.cookies([urls])](https://playwright.dev/docs/api/class-browsercontext#browser-context-cookies) on
|
|
1942
|
+
* the corresponding browser context.
|
|
1943
|
+
* @param urls Optional list of URLs.
|
|
1944
|
+
*/
|
|
1945
|
+
cookies(urls?: string|ReadonlyArray<string>): Promise<Array<{
|
|
1946
|
+
name: string;
|
|
1947
|
+
|
|
1948
|
+
value: string;
|
|
1949
|
+
|
|
1950
|
+
domain: string;
|
|
1951
|
+
|
|
1952
|
+
path: string;
|
|
1953
|
+
|
|
1954
|
+
/**
|
|
1955
|
+
* Unix time in seconds.
|
|
1956
|
+
*/
|
|
1957
|
+
expires: number;
|
|
1958
|
+
|
|
1959
|
+
httpOnly: boolean;
|
|
1960
|
+
|
|
1961
|
+
secure: boolean;
|
|
1962
|
+
|
|
1963
|
+
sameSite: "Strict"|"Lax"|"None";
|
|
1964
|
+
|
|
1965
|
+
partitionKey?: string;
|
|
1966
|
+
}>>;
|
|
1967
|
+
|
|
1836
1968
|
/**
|
|
1837
1969
|
* Sends HTTP(S) [DELETE](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/DELETE) request and returns its
|
|
1838
1970
|
* response. The method will populate request cookies from the context and update context cookies from the response.
|
|
@@ -1934,102 +2066,6 @@ interface APIRequestContext {
|
|
|
1934
2066
|
* All responses returned by
|
|
1935
2067
|
* [apiRequestContext.get(url[, options])](https://playwright.dev/docs/api/class-apirequestcontext#api-request-context-get)
|
|
1936
2068
|
* and similar methods are stored in the memory, so that you can later call
|
|
1937
|
-
* [apiResponse.body()](https://playwright.dev/docs/api/class-apiresponse#api-response-body).This method discards all
|
|
1938
|
-
* its resources, calling any method on disposed
|
|
1939
|
-
* [APIRequestContext](https://playwright.dev/docs/api/class-apirequestcontext) will throw an exception.
|
|
1940
|
-
* @param options
|
|
1941
|
-
*/
|
|
1942
|
-
dispose(options?: {
|
|
1943
|
-
/**
|
|
1944
|
-
* The reason to be reported to the operations interrupted by the context disposal.
|
|
1945
|
-
*/
|
|
1946
|
-
reason?: string;
|
|
1947
|
-
}): Promise<void>;
|
|
1948
|
-
|
|
1949
|
-
/**
|
|
1950
|
-
* Sends HTTP(S) request and returns its response. The method will populate request cookies from the context and
|
|
1951
|
-
* update context cookies from the response. The method will automatically follow redirects.
|
|
1952
|
-
*
|
|
1953
|
-
* **Usage**
|
|
1954
|
-
*
|
|
1955
|
-
* JSON objects can be passed directly to the request:
|
|
1956
|
-
*
|
|
1957
|
-
* ```js
|
|
1958
|
-
* await request.fetch('https://example.com/api/createBook', {
|
|
1959
|
-
* method: 'post',
|
|
1960
|
-
* data: {
|
|
1961
|
-
* title: 'Book Title',
|
|
1962
|
-
* author: 'John Doe',
|
|
1963
|
-
* }
|
|
1964
|
-
* });
|
|
1965
|
-
* ```
|
|
1966
|
-
*
|
|
1967
|
-
* The common way to send file(s) in the body of a request is to upload them as form fields with `multipart/form-data`
|
|
1968
|
-
* encoding, by specifiying the `multipart` parameter:
|
|
1969
|
-
*
|
|
1970
|
-
* ```js
|
|
1971
|
-
* const form = new FormData();
|
|
1972
|
-
* form.set('name', 'John');
|
|
1973
|
-
* form.append('name', 'Doe');
|
|
1974
|
-
* // Send two file fields with the same name.
|
|
1975
|
-
* form.append('file', new File(['console.log(2024);'], 'f1.js', { type: 'text/javascript' }));
|
|
1976
|
-
* form.append('file', new File(['hello'], 'f2.txt', { type: 'text/plain' }));
|
|
1977
|
-
* await request.fetch('https://example.com/api/uploadForm', {
|
|
1978
|
-
* multipart: form
|
|
1979
|
-
* });
|
|
1980
|
-
* ```
|
|
1981
|
-
*
|
|
1982
|
-
* @param urlOrRequest Target URL or Request to get all parameters from.
|
|
1983
|
-
* @param options
|
|
1984
|
-
*/
|
|
1985
|
-
fetch<T = any>(urlOrRequest: string|Request, options?: {
|
|
1986
|
-
/**
|
|
1987
|
-
* Allows to set post data of the request. If the data parameter is an object, it will be serialized to json string
|
|
1988
|
-
* and `content-type` header will be set to `application/json` if not explicitly set. Otherwise the `content-type`
|
|
1989
|
-
* header will be set to `application/octet-stream` if not explicitly set.
|
|
1990
|
-
*/
|
|
1991
|
-
data?: string|Buffer|Serializable;
|
|
1992
|
-
|
|
1993
|
-
/**
|
|
1994
|
-
* Whether to throw on response codes other than 2xx and 3xx. By default response object is returned for all status
|
|
1995
|
-
* codes.
|
|
1996
|
-
*/
|
|
1997
|
-
failOnStatusCode?: boolean;
|
|
1998
|
-
|
|
1999
|
-
/**
|
|
2000
|
-
* Provides an object that will be serialized as html form using `application/x-www-form-urlencoded` encoding and sent
|
|
2001
|
-
* as this request body. If this parameter is specified `content-type` header will be set to
|
|
2002
|
-
* `application/x-www-form-urlencoded` unless explicitly provided.
|
|
2003
|
-
*/
|
|
2004
|
-
form?: { [key: string]: string|number|boolean; }|FormData;
|
|
2005
|
-
|
|
2006
|
-
/**
|
|
2007
|
-
* Allows to set HTTP headers. These headers will apply to the fetched request as well as any redirects initiated by
|
|
2008
|
-
* it.
|
|
2009
|
-
*/
|
|
2010
|
-
headers?: { [key: string]: string; };
|
|
2011
|
-
|
|
2012
|
-
/**
|
|
2013
|
-
* Whether to ignore HTTPS errors when sending network requests. Defaults to `false`.
|
|
2014
|
-
*/
|
|
2015
|
-
ignoreHTTPSErrors?: boolean;
|
|
2016
|
-
|
|
2017
|
-
/**
|
|
2018
|
-
* Maximum number of request redirects that will be followed automatically. An error will be thrown if the number is
|
|
2019
|
-
* exceeded. Defaults to `20`. Pass `0` to not follow redirects.
|
|
2020
|
-
*/
|
|
2021
|
-
maxRedirects?: number;
|
|
2022
|
-
|
|
2023
|
-
/**
|
|
2024
|
-
* Maximum number of times network errors should be retried. Currently only `ECONNRESET` error is retried. Does not
|
|
2025
|
-
* retry based on HTTP response codes. An error will be thrown if the limit is exceeded. Defaults to `0` - no retries.
|
|
2026
|
-
*/
|
|
2027
|
-
maxRetries?: number;
|
|
2028
|
-
|
|
2029
|
-
/**
|
|
2030
|
-
* If set changes the fetch method (e.g. [PUT](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PUT) or
|
|
2031
|
-
* [POST](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST)). If not specified, GET method is used.
|
|
2032
|
-
*/
|
|
2033
2069
|
// … truncated — the full declaration is in node_modules/playwright-core/types/types.d.ts
|
|
2034
2070
|
````
|
|
2035
2071
|
|
|
@@ -2726,7 +2762,7 @@ interface Keyboard {
|
|
|
2726
2762
|
* **Usage**
|
|
2727
2763
|
*
|
|
2728
2764
|
* ```js
|
|
2729
|
-
* page.keyboard.insertText('嗨');
|
|
2765
|
+
* await page.keyboard.insertText('嗨');
|
|
2730
2766
|
* ```
|
|
2731
2767
|
*
|
|
2732
2768
|
* **NOTE** Modifier keys DO NOT effect `keyboard.insertText`. Holding down `Shift` will not type the text in upper
|
|
@@ -3175,7 +3211,7 @@ interface Request {
|
|
|
3175
3211
|
/**
|
|
3176
3212
|
* Contains the request's resource type as it was perceived by the rendering engine. ResourceType will be one of the
|
|
3177
3213
|
* following: `document`, `stylesheet`, `image`, `media`, `font`, `script`, `texttrack`, `xhr`, `fetch`,
|
|
3178
|
-
* `eventsource`, `websocket`, `manifest`, `other`.
|
|
3214
|
+
* `eventsource`, `websocket`, `manifest`, `beacon`, `ping`, `cspreport`, `other`.
|
|
3179
3215
|
*/
|
|
3180
3216
|
resourceType(): string;
|
|
3181
3217
|
|
|
@@ -3243,9 +3279,6 @@ interface Request {
|
|
|
3243
3279
|
/**
|
|
3244
3280
|
* Request start time in milliseconds elapsed since January 1, 1970 00:00:00 UTC
|
|
3245
3281
|
*/
|
|
3246
|
-
startTime: number;
|
|
3247
|
-
|
|
3248
|
-
/**
|
|
3249
3282
|
// … truncated — the full declaration is in node_modules/playwright-core/types/types.d.ts
|
|
3250
3283
|
````
|
|
3251
3284
|
|
|
@@ -3290,9 +3323,10 @@ interface Response {
|
|
|
3290
3323
|
headers(): { [key: string]: string }
|
|
3291
3324
|
|
|
3292
3325
|
/**
|
|
3293
|
-
* An array with all the
|
|
3326
|
+
* An array with all the response HTTP headers associated with this response. Unlike
|
|
3294
3327
|
* [response.allHeaders()](https://playwright.dev/docs/api/class-response#response-all-headers), header names are NOT
|
|
3295
|
-
* lower-cased. Headers with multiple entries, such as `Set-Cookie`, appear in the array multiple times.
|
|
3328
|
+
* lower-cased. Headers with multiple entries, such as `Set-Cookie`, appear in the array multiple times. Some browser
|
|
3329
|
+
* network stacks combine multiple field values before reporting them, so separate entries are not always available.
|
|
3296
3330
|
*/
|
|
3297
3331
|
headersArray(): Promise<
|
|
3298
3332
|
Array<{
|
|
@@ -3783,6 +3817,13 @@ interface FullConfig<TestArgs = {}, WorkerArgs = {}> {
|
|
|
3783
3817
|
*/
|
|
3784
3818
|
failOnFlakyTests: boolean
|
|
3785
3819
|
|
|
3820
|
+
/**
|
|
3821
|
+
* List of projects that were selected to run, after applying the `--project` command line filter. When no filter is
|
|
3822
|
+
* specified, this is the same as
|
|
3823
|
+
* [fullConfig.projects](https://playwright.dev/docs/api/class-fullconfig#full-config-projects).
|
|
3824
|
+
*/
|
|
3825
|
+
filteredProjects: Array<FullProject>
|
|
3826
|
+
|
|
3786
3827
|
/**
|
|
3787
3828
|
* See [testConfig.forbidOnly](https://playwright.dev/docs/api/class-testconfig#test-config-forbid-only).
|
|
3788
3829
|
*/
|
|
@@ -3881,7 +3922,7 @@ interface FullConfig<TestArgs = {}, WorkerArgs = {}> {
|
|
|
3881
3922
|
/**
|
|
3882
3923
|
* See [testConfig.updateSnapshots](https://playwright.dev/docs/api/class-testconfig#test-config-update-snapshots).
|
|
3883
3924
|
*/
|
|
3884
|
-
updateSnapshots: 'all' | 'changed' | 'missing' | 'none'
|
|
3925
|
+
updateSnapshots: 'all' | 'changed' | 'missing' | 'none' | 'default'
|
|
3885
3926
|
|
|
3886
3927
|
/**
|
|
3887
3928
|
* See
|
|
@@ -4485,9 +4526,7 @@ interface PlaywrightWorkerOptions {
|
|
|
4485
4526
|
* [fixtures.browser](https://playwright.dev/docs/api/class-fixtures#fixtures-browser),
|
|
4486
4527
|
* [fixtures.context](https://playwright.dev/docs/api/class-fixtures#fixtures-context) and
|
|
4487
4528
|
* [fixtures.page](https://playwright.dev/docs/api/class-fixtures#fixtures-page) use the remote browser instead of
|
|
4488
|
-
* launching a browser locally
|
|
4489
|
-
* [testOptions.headless](https://playwright.dev/docs/api/class-testoptions#test-options-headless) or
|
|
4490
|
-
* [testOptions.channel](https://playwright.dev/docs/api/class-testoptions#test-options-channel) are ignored.
|
|
4529
|
+
* launching a browser locally.
|
|
4491
4530
|
*/
|
|
4492
4531
|
connectOptions: ConnectOptions | undefined;
|
|
4493
4532
|
/**
|
|
@@ -4571,6 +4610,9 @@ interface PlaywrightWorkerOptions {
|
|
|
4571
4610
|
/**
|
|
4572
4611
|
* Whether to record trace for each test. Defaults to `'off'`. The initial run of a test is the "first run";
|
|
4573
4612
|
* subsequent runs caused by [retries](https://playwright.dev/docs/test-retries) are "retries".
|
|
4613
|
+
* - `'off'`: Do not record trace.
|
|
4614
|
+
* - `'on'`: Record and keep a trace for every run.
|
|
4615
|
+
* - `'on-first-retry'`: Record and keep a trace only for the first retry of a test.
|
|
4574
4616
|
// … truncated — the full declaration is in node_modules/playwright/types/test.d.ts
|
|
4575
4617
|
````
|
|
4576
4618
|
|
|
@@ -4847,30 +4889,23 @@ interface PlaywrightTestOptions {
|
|
|
4847
4889
|
* });
|
|
4848
4890
|
* ```
|
|
4849
4891
|
*
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
/**
|
|
4853
|
-
* Whether to ignore HTTPS errors when sending network requests. Defaults to `false`.
|
|
4854
|
-
*
|
|
4855
|
-
* **Usage**
|
|
4892
|
+
* When passing an array of credentials to [test.use(options)](https://playwright.dev/docs/api/class-test#test-use),
|
|
4893
|
+
* wrap it into an extra array, see [fixture options](https://playwright.dev/docs/test-fixtures#fixtures-options).
|
|
4856
4894
|
*
|
|
4857
4895
|
* ```js
|
|
4858
|
-
* //
|
|
4859
|
-
*
|
|
4860
|
-
*
|
|
4861
|
-
*
|
|
4862
|
-
*
|
|
4863
|
-
*
|
|
4864
|
-
* },
|
|
4896
|
+
* // example.spec.ts
|
|
4897
|
+
* test.use({
|
|
4898
|
+
* httpCredentials: [[
|
|
4899
|
+
* { username: 'alice', password: 'alice-pass', origin: 'https://a.example.com' },
|
|
4900
|
+
* { username: 'bob', password: 'bob-pass', origin: 'https://b.example.com' },
|
|
4901
|
+
* ], { scope: 'test' }],
|
|
4865
4902
|
* });
|
|
4866
4903
|
* ```
|
|
4867
4904
|
*
|
|
4868
4905
|
*/
|
|
4869
|
-
|
|
4906
|
+
httpCredentials: HTTPCredentials | HTTPCredentials[] | undefined;
|
|
4870
4907
|
/**
|
|
4871
|
-
* Whether
|
|
4872
|
-
* so you don't actually need to set it manually. Defaults to `false` and is not supported in Firefox. Learn more
|
|
4873
|
-
* about [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
|
|
4908
|
+
* Whether to ignore HTTPS errors when sending network requests. Defaults to `false`.
|
|
4874
4909
|
*
|
|
4875
4910
|
* **Usage**
|
|
4876
4911
|
*
|
|
@@ -4880,24 +4915,22 @@ interface PlaywrightTestOptions {
|
|
|
4880
4915
|
*
|
|
4881
4916
|
* export default defineConfig({
|
|
4882
4917
|
* use: {
|
|
4883
|
-
*
|
|
4918
|
+
* ignoreHTTPSErrors: true,
|
|
4884
4919
|
* },
|
|
4885
4920
|
* });
|
|
4886
4921
|
* ```
|
|
4887
4922
|
*
|
|
4888
4923
|
*/
|
|
4889
|
-
|
|
4924
|
+
ignoreHTTPSErrors: boolean;
|
|
4890
4925
|
/**
|
|
4891
|
-
* Whether
|
|
4892
|
-
*
|
|
4926
|
+
* Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device,
|
|
4927
|
+
* so you don't actually need to set it manually. Defaults to `false`. Learn more about
|
|
4928
|
+
* [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
|
|
4893
4929
|
*
|
|
4894
4930
|
* **Usage**
|
|
4895
4931
|
*
|
|
4896
4932
|
* ```js
|
|
4897
4933
|
* // playwright.config.ts
|
|
4898
|
-
* import { defineConfig } from '@playwright/test';
|
|
4899
|
-
*
|
|
4900
|
-
* export default defineConfig({
|
|
4901
4934
|
// … truncated — the full declaration is in node_modules/playwright/types/test.d.ts
|
|
4902
4935
|
````
|
|
4903
4936
|
|
|
@@ -5735,7 +5768,7 @@ class PageImpl {
|
|
|
5735
5768
|
Defines Playwright config
|
|
5736
5769
|
|
|
5737
5770
|
```typescript
|
|
5738
|
-
function defineConfig(config: PlaywrightTestConfig
|
|
5771
|
+
function defineConfig(config: PlaywrightTestConfig): PlaywrightTestConfig
|
|
5739
5772
|
```
|
|
5740
5773
|
|
|
5741
5774
|
#### `withConsoleGuard(base)`
|
|
@@ -5791,7 +5824,7 @@ function createEvaluatePage(transport: E2ETransport, options?: E2EPageOptions):
|
|
|
5791
5824
|
Whether a value is a locator built by {@link createEvaluatePage}.
|
|
5792
5825
|
|
|
5793
5826
|
```typescript
|
|
5794
|
-
function isE2ELocator(value: unknown):
|
|
5827
|
+
function isE2ELocator(value: unknown): value is LocatorImpl
|
|
5795
5828
|
```
|
|
5796
5829
|
|
|
5797
5830
|
#### `isE2EPage(value)`
|
|
@@ -5799,7 +5832,7 @@ function isE2ELocator(value: unknown): boolean
|
|
|
5799
5832
|
Whether a value is a page built by {@link createEvaluatePage}.
|
|
5800
5833
|
|
|
5801
5834
|
```typescript
|
|
5802
|
-
function isE2EPage(value: unknown):
|
|
5835
|
+
function isE2EPage(value: unknown): value is PageImpl
|
|
5803
5836
|
```
|
|
5804
5837
|
|
|
5805
5838
|
#### `installE2ERuntime()`
|
|
@@ -5832,7 +5865,7 @@ This object can be used to launch or connect to Chromium, returning instances of
|
|
|
5832
5865
|
[Browser](https://playwright.dev/docs/api/class-browser).
|
|
5833
5866
|
|
|
5834
5867
|
```typescript
|
|
5835
|
-
const chromium: BrowserType
|
|
5868
|
+
const chromium: BrowserType
|
|
5836
5869
|
```
|
|
5837
5870
|
|
|
5838
5871
|
#### `firefox`
|
|
@@ -5841,7 +5874,7 @@ This object can be used to launch or connect to Firefox, returning instances of
|
|
|
5841
5874
|
[Browser](https://playwright.dev/docs/api/class-browser).
|
|
5842
5875
|
|
|
5843
5876
|
```typescript
|
|
5844
|
-
const firefox: BrowserType
|
|
5877
|
+
const firefox: BrowserType
|
|
5845
5878
|
```
|
|
5846
5879
|
|
|
5847
5880
|
#### `request`
|
|
@@ -5858,7 +5891,7 @@ This object can be used to launch or connect to WebKit, returning instances of
|
|
|
5858
5891
|
[Browser](https://playwright.dev/docs/api/class-browser).
|
|
5859
5892
|
|
|
5860
5893
|
```typescript
|
|
5861
|
-
const webkit: BrowserType
|
|
5894
|
+
const webkit: BrowserType
|
|
5862
5895
|
```
|
|
5863
5896
|
|
|
5864
5897
|
#### `ALWAYS_IGNORE`
|
|
@@ -5878,7 +5911,7 @@ over the preview. `expect(value)`, `expect.soft`, `expect.poll`,
|
|
|
5878
5911
|
Playwright.
|
|
5879
5912
|
|
|
5880
5913
|
```typescript
|
|
5881
|
-
const expect:
|
|
5914
|
+
const expect: AnyExpect
|
|
5882
5915
|
```
|
|
5883
5916
|
|
|
5884
5917
|
#### `E2E_LOCATOR`
|
|
@@ -5886,7 +5919,7 @@ const expect: Expect<{}>
|
|
|
5886
5919
|
Brand on locators created here (the `expect` wrapper routes on it).
|
|
5887
5920
|
|
|
5888
5921
|
```typescript
|
|
5889
|
-
const E2E_LOCATOR:
|
|
5922
|
+
const E2E_LOCATOR: unique symbol
|
|
5890
5923
|
```
|
|
5891
5924
|
|
|
5892
5925
|
#### `E2E_PAGE`
|
|
@@ -5894,7 +5927,7 @@ const E2E_LOCATOR: typeof E2E_LOCATOR
|
|
|
5894
5927
|
Brand on pages created here.
|
|
5895
5928
|
|
|
5896
5929
|
```typescript
|
|
5897
|
-
const E2E_PAGE:
|
|
5930
|
+
const E2E_PAGE: unique symbol
|
|
5898
5931
|
```
|
|
5899
5932
|
|
|
5900
5933
|
#### `E2E_RUNTIME_VERSION`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@molecule/app-e2e-fixtures-default",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"description": "Shared Playwright `test` + `expect` with auto-attached browser console-error/pageerror guard. Every fleet app's e2e specs import from here so a runtime exception (React mount failure, ESM/CJS interop error, unhandled rejection) hard-fails the test instead of silently passing.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
],
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@molecule/app-bond": "1.0.
|
|
37
|
-
"@molecule/app-e2e": "1.2.
|
|
38
|
-
"@playwright/test": "1.
|
|
39
|
-
"jsdom": "30.
|
|
40
|
-
"@types/node": "26.
|
|
36
|
+
"@molecule/app-bond": "1.0.4",
|
|
37
|
+
"@molecule/app-e2e": "1.2.5",
|
|
38
|
+
"@playwright/test": "1.64.1",
|
|
39
|
+
"jsdom": "30.1.3",
|
|
40
|
+
"@types/node": "26.6.5",
|
|
41
41
|
"typescript": "6.0.3",
|
|
42
42
|
"vitest": "4.1.12"
|
|
43
43
|
},
|