@empiricalrun/playwright-utils 0.15.4 → 0.15.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/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playwright-extensions.d.ts","sourceRoot":"","sources":["../src/playwright-extensions.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAC7C,CAAC;AAEF,OAAO,QAAQ,iBAAiB,CAAC;IAC/B,UAAU,OAAQ,SAAQ,eAAe;KAAG;CAC7C"}
|
|
1
|
+
{"version":3,"file":"playwright-extensions.d.ts","sourceRoot":"","sources":["../src/playwright-extensions.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAC7C,CAAC;AAEF,OAAO,QAAQ,iBAAiB,CAAC;IAC/B,UAAU,OAAQ,SAAQ,eAAe;KAAG;CAC7C;AAED,OAAO,QAAQ,kBAAkB,CAAC;IAChC,UAAU,OAAQ,SAAQ,eAAe;KAAG;CAC7C"}
|
package/dist/test/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { PlaywrightTestOptions, PlaywrightWorkerArgs, PlaywrightWorkerOptions, TestType } from "@playwright/test";
|
|
1
|
+
import type { PlaywrightTestArgs, PlaywrightTestOptions, PlaywrightWorkerArgs, PlaywrightWorkerOptions, TestType } from "@playwright/test";
|
|
2
2
|
import { injectLocatorHighlightScripts } from "./scripts";
|
|
3
|
-
import {
|
|
4
|
-
export declare const baseTestFixture: (testFn: TestType<
|
|
3
|
+
import { HighlighterOpts } from "./types";
|
|
4
|
+
export declare const baseTestFixture: (testFn: TestType<PlaywrightTestArgs & PlaywrightTestOptions, PlaywrightWorkerArgs & PlaywrightWorkerOptions>, options?: HighlighterOpts) => TestType<PlaywrightTestArgs & PlaywrightTestOptions & {
|
|
5
5
|
[key: string]: any;
|
|
6
6
|
}, PlaywrightWorkerArgs & PlaywrightWorkerOptions>;
|
|
7
7
|
export { injectLocatorHighlightScripts };
|
package/dist/test/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/test/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,QAAQ,EACT,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,6BAA6B,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/test/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,QAAQ,EACT,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,6BAA6B,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,eAAO,MAAM,eAAe,WAClB,SACN,kBAAkB,GAAG,qBAAqB,EAC1C,oBAAoB,GAAG,uBAAuB,CAC/C,YACQ,eAAe;;kDAYzB,CAAC;AAEF,OAAO,EAAE,6BAA6B,EAAE,CAAC"}
|
package/dist/test/types.d.ts
CHANGED
|
@@ -1,49 +1,6 @@
|
|
|
1
|
-
import type { Locator, Page, PlaywrightTestArgs } from "@playwright/test";
|
|
2
1
|
export type HighlighterOpts = {
|
|
3
2
|
mousePointerHighlighter?: boolean;
|
|
4
3
|
locatorHighlighter?: boolean;
|
|
5
4
|
visionMethods?: boolean;
|
|
6
5
|
};
|
|
7
|
-
interface EnhancedLocator extends Locator {
|
|
8
|
-
query(instruction: string): Promise<string>;
|
|
9
|
-
}
|
|
10
|
-
interface EnhancedPage extends Page {
|
|
11
|
-
locator(selector: string, options?: {
|
|
12
|
-
has?: Locator;
|
|
13
|
-
hasNot?: Locator;
|
|
14
|
-
hasNotText?: string | RegExp;
|
|
15
|
-
hasText?: string | RegExp;
|
|
16
|
-
}): EnhancedLocator;
|
|
17
|
-
getByRole(role: "alert" | "alertdialog" | "application" | "article" | "banner" | "blockquote" | "button" | "caption" | "cell" | "checkbox" | "code" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "deletion" | "dialog" | "directory" | "document" | "emphasis" | "feed" | "figure" | "form" | "generic" | "grid" | "gridcell" | "group" | "heading" | "img" | "insertion" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "meter" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "none" | "note" | "option" | "paragraph" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "strong" | "subscript" | "superscript" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "time" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem", options?: {
|
|
18
|
-
checked?: boolean;
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
exact?: boolean;
|
|
21
|
-
expanded?: boolean;
|
|
22
|
-
includeHidden?: boolean;
|
|
23
|
-
level?: number;
|
|
24
|
-
name?: string | RegExp;
|
|
25
|
-
pressed?: boolean;
|
|
26
|
-
selected?: boolean;
|
|
27
|
-
}): EnhancedLocator;
|
|
28
|
-
getByLabel(text: string | RegExp, options?: {
|
|
29
|
-
exact?: boolean;
|
|
30
|
-
}): EnhancedLocator;
|
|
31
|
-
getByPlaceholder(text: string | RegExp, options?: {
|
|
32
|
-
exact?: boolean;
|
|
33
|
-
}): EnhancedLocator;
|
|
34
|
-
getByText(text: string | RegExp, options?: {
|
|
35
|
-
exact?: boolean;
|
|
36
|
-
}): EnhancedLocator;
|
|
37
|
-
getByTestId(testId: string | RegExp): EnhancedLocator;
|
|
38
|
-
getByAltText(text: string | RegExp, options?: {
|
|
39
|
-
exact?: boolean;
|
|
40
|
-
}): EnhancedLocator;
|
|
41
|
-
getByTitle(text: string | RegExp, options?: {
|
|
42
|
-
exact?: boolean;
|
|
43
|
-
}): EnhancedLocator;
|
|
44
|
-
}
|
|
45
|
-
export interface EnhancedPlaywrightTestArgs extends PlaywrightTestArgs {
|
|
46
|
-
page: EnhancedPage;
|
|
47
|
-
}
|
|
48
|
-
export {};
|
|
49
6
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/test/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/test/types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/test/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC"}
|