@skbkontur/playwright-react-ui-components 1.14.0-beta.1 → 1.14.0-beta.3
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/build/src/assertions/CheckboxAssertions.js +1 -1
- package/build/src/assertions/ComboBoxAssertions.js +4 -4
- package/build/src/assertions/DropdownAssertions.js +4 -4
- package/build/src/assertions/DropdownMenuAssertions.js +4 -4
- package/build/src/assertions/FileUploaderAssertions.js +1 -1
- package/build/src/assertions/FxInputAssertions.js +2 -2
- package/build/src/assertions/KebabAssertions.js +4 -4
- package/build/src/assertions/LinkAssertions.js +2 -2
- package/build/src/assertions/PagingAssertions.js +2 -2
- package/build/src/assertions/RadioGroupAssertions.js +6 -6
- package/build/src/assertions/SelectAssertions.js +2 -2
- package/build/src/assertions/TabAssertions.js +2 -2
- package/build/src/assertions/TabsAssertions.js +3 -3
- package/build/src/assertions/TokenInputAssertions.js +1 -1
- package/build/src/components/ComboBox.d.ts +1 -2
- package/build/src/components/ComboBox.js +53 -54
- package/build/src/components/Dropdown.d.ts +1 -2
- package/build/src/components/Dropdown.js +61 -62
- package/build/src/components/DropdownMenu.d.ts +1 -2
- package/build/src/components/DropdownMenu.js +61 -62
- package/build/src/components/Kebab.d.ts +1 -2
- package/build/src/components/Kebab.js +43 -44
- package/build/src/components/MenuComponent.d.ts +2 -1
- package/build/src/components/MenuComponent.js +6 -5
- package/build/src/matchers/component/toBeActiveTab.d.ts +3 -0
- package/build/src/matchers/component/{toBeActiveEx.js → toBeActiveTab.js} +2 -2
- package/build/src/matchers/component/toBeAutoMode.d.ts +3 -0
- package/build/src/matchers/component/{toBeAutoEx.js → toBeAutoMode.js} +2 -2
- package/build/src/matchers/component/toBeCheckedByIndex.d.ts +3 -0
- package/build/src/matchers/component/{toBeUncheckedByIndexEx.js → toBeCheckedByIndex.js} +4 -4
- package/build/src/matchers/component/toBeCheckedByText.d.ts +3 -0
- package/build/src/matchers/component/{toBeCheckedByTextEx.js → toBeCheckedByText.js} +2 -2
- package/build/src/matchers/component/toBeCheckedByValue.d.ts +3 -0
- package/build/src/matchers/component/{toBeCheckedByValueEx.js → toBeCheckedByValue.js} +2 -2
- package/build/src/matchers/component/toBeDisabledEx.d.ts +1 -1
- package/build/src/matchers/component/toBeDisabledEx.js +7 -8
- package/build/src/matchers/component/toBeEmptyEx.d.ts +1 -1
- package/build/src/matchers/component/toBeEmptyEx.js +4 -5
- package/build/src/matchers/component/toBeEnabledEx.js +15 -25
- package/build/src/matchers/component/toBeHiddenEx.js +1 -2
- package/build/src/matchers/component/toBeInactiveTab.d.ts +3 -0
- package/build/src/matchers/component/{toBeInactiveEx.js → toBeInactiveTab.js} +2 -2
- package/build/src/matchers/component/toBeUnchecked.d.ts +3 -0
- package/build/src/matchers/component/{toBeUncheckedEx.js → toBeUnchecked.js} +2 -2
- package/build/src/matchers/component/{toBeCheckedByIndexEx.d.ts → toBeUncheckedByIndex.d.ts} +2 -2
- package/build/src/matchers/component/{toBeCheckedByIndexEx.js → toBeUncheckedByIndex.js} +4 -4
- package/build/src/matchers/component/{toBeCheckedByTextEx.d.ts → toBeUncheckedByText.d.ts} +2 -2
- package/build/src/matchers/component/{toBeUncheckedByTextEx.js → toBeUncheckedByText.js} +3 -3
- package/build/src/matchers/component/{toBeCheckedByValueEx.d.ts → toBeUncheckedByValue.d.ts} +2 -2
- package/build/src/matchers/component/{toBeUncheckedByValueEx.js → toBeUncheckedByValue.js} +3 -3
- package/build/src/matchers/component/toBeVisibleEx.js +1 -2
- package/build/src/matchers/component/toContainItem.d.ts +4 -0
- package/build/src/matchers/component/{toContainItemEx.js → toContainItem.js} +2 -3
- package/build/src/matchers/component/toContainItems.d.ts +3 -0
- package/build/src/matchers/component/{toContainItemsEx.js → toContainItems.js} +4 -4
- package/build/src/matchers/component/toContainSelectValue.d.ts +3 -0
- package/build/src/matchers/component/{toContainValueEx.js → toContainSelectValue.js} +2 -2
- package/build/src/matchers/component/toContainTabs.d.ts +3 -0
- package/build/src/matchers/component/{toContainTabsEx.js → toContainTabs.js} +2 -2
- package/build/src/matchers/component/{toContainTokensEx.d.ts → toContainTokens.d.ts} +1 -1
- package/build/src/matchers/component/{toContainTokensEx.js → toContainTokens.js} +2 -2
- package/build/src/matchers/component/toContainUploadedFiles.d.ts +4 -0
- package/build/src/matchers/component/{toContainUploadedFilesEx.js → toContainUploadedFiles.js} +2 -2
- package/build/src/matchers/component/{toHavePageCountEx.d.ts → toHaveActivePage.d.ts} +1 -1
- package/build/src/matchers/component/{toHaveActivePageEx.js → toHaveActivePage.js} +2 -2
- package/build/src/matchers/component/toHaveActiveTab.d.ts +2 -0
- package/build/src/matchers/component/{toHaveActiveTabEx.js → toHaveActiveTab.js} +4 -4
- package/build/src/matchers/component/toHaveError.d.ts +3 -0
- package/build/src/matchers/component/{toHaveWarningEx.js → toHaveError.js} +3 -3
- package/build/src/matchers/component/toHaveHref.d.ts +3 -0
- package/build/src/matchers/component/{toHaveHrefEx.js → toHaveHref.js} +2 -2
- package/build/src/matchers/component/toHaveItems.d.ts +3 -0
- package/build/src/matchers/component/{toHaveItemsEx.js → toHaveItems.js} +4 -4
- package/build/src/matchers/component/{toHaveActivePageEx.d.ts → toHavePageCount.d.ts} +1 -1
- package/build/src/matchers/component/{toHavePageCountEx.js → toHavePageCount.js} +2 -2
- package/build/src/matchers/component/toHaveValueEx.d.ts +1 -1
- package/build/src/matchers/component/toHaveValueEx.js +4 -5
- package/build/src/matchers/component/{toHaveErrorEx.d.ts → toHaveWarning.d.ts} +2 -2
- package/build/src/matchers/component/{toHaveErrorEx.js → toHaveWarning.js} +3 -3
- package/build/src/matchers/componentMatchers.d.ts +76 -76
- package/build/src/matchers/componentMatchers.js +56 -50
- package/build/src/matchers/createAsyncMatcher.d.ts +35 -10
- package/build/src/matchers/createAsyncMatcher.js +38 -13
- package/build/src/utils/toMatchMessage.d.ts +11 -0
- package/build/src/utils/toMatchMessage.js +11 -0
- package/package.json +1 -1
- package/build/src/matchers/component/toBeActiveEx.d.ts +0 -3
- package/build/src/matchers/component/toBeAutoEx.d.ts +0 -3
- package/build/src/matchers/component/toBeInactiveEx.d.ts +0 -3
- package/build/src/matchers/component/toBeUncheckedByIndexEx.d.ts +0 -3
- package/build/src/matchers/component/toBeUncheckedByTextEx.d.ts +0 -3
- package/build/src/matchers/component/toBeUncheckedByValueEx.d.ts +0 -3
- package/build/src/matchers/component/toBeUncheckedEx.d.ts +0 -3
- package/build/src/matchers/component/toContainItemEx.d.ts +0 -4
- package/build/src/matchers/component/toContainItemsEx.d.ts +0 -3
- package/build/src/matchers/component/toContainTabsEx.d.ts +0 -3
- package/build/src/matchers/component/toContainUploadedFilesEx.d.ts +0 -4
- package/build/src/matchers/component/toContainValueEx.d.ts +0 -3
- package/build/src/matchers/component/toHaveActiveTabEx.d.ts +0 -2
- package/build/src/matchers/component/toHaveHrefEx.d.ts +0 -3
- package/build/src/matchers/component/toHaveItemsEx.d.ts +0 -3
- package/build/src/matchers/component/toHaveWarningEx.d.ts +0 -3
- package/build/src/utils/is.d.ts +0 -3
- package/build/src/utils/is.js +0 -5
|
@@ -1,104 +1,104 @@
|
|
|
1
1
|
declare const matchers: {
|
|
2
|
-
toBeEmptyEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToWithValueElementLocator, args_0?: import("..").EmptyOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
3
|
-
toBeVisibleEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").VisibleElementLocator, args_0?: import("..").VisibleOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
4
|
-
toBeHiddenEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").VisibleElementLocator, args_0?: import("..").HiddenOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
5
|
-
toBeEnabledEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ControlElementLocator, args_0?: import("..").EnabledOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
6
|
-
toBeDisabledEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ControlElementLocator, args_0?: import("..").EnabledOptions | import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
toHaveAttributeEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToHaveAttributeElementLocator, args_0: string, args_1?: string | RegExp | undefined, args_2?: import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
10
|
-
toHaveValueEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToWithValueElementLocator, args_0: string | number | RegExp | readonly (string | RegExp)[] | {
|
|
2
|
+
readonly toBeEmptyEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToWithValueElementLocator, args_0?: import("..").EmptyOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
3
|
+
readonly toBeVisibleEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").VisibleElementLocator, args_0?: import("..").VisibleOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
4
|
+
readonly toBeHiddenEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").VisibleElementLocator, args_0?: import("..").HiddenOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
5
|
+
readonly toBeEnabledEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ControlElementLocator, args_0?: import("..").EnabledOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
6
|
+
readonly toBeDisabledEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ControlElementLocator, args_0?: import("..").EnabledOptions | import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
7
|
+
readonly toBeFocusedEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToBeFocusableElementLocator, args_0?: import("..").FocusedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
8
|
+
readonly toBeCheckedEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToBeCheckableElementLocator, args_0?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
9
|
+
readonly toHaveAttributeEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToHaveAttributeElementLocator, args_0: string, args_1?: string | RegExp | undefined, args_2?: import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
10
|
+
readonly toHaveValueEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToWithValueElementLocator, args_0: string | number | RegExp | readonly (string | RegExp)[] | {
|
|
11
11
|
start?: string;
|
|
12
12
|
end?: string;
|
|
13
13
|
}, args_1?: import("..").ValueOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
readonly toHaveTextEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToTextElementLocator, args_0: string | RegExp | readonly (string | RegExp)[], args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
15
|
+
readonly toHaveCountEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").ComponentList<any>, args_0: number, args_1?: import("..").CountOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
16
|
+
readonly toHaveFormattedValueEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToWithValueElementLocator, args_0: string, args_1?: import("..").TransformOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
17
|
+
readonly toHaveFormattedTextEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToTextElementLocator, args_0: string, args_1?: import("..").TransformOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
18
|
+
readonly toContainTextEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToTextElementLocator, args_0: string | RegExp | readonly (string | RegExp)[], args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
19
|
+
readonly toContainFormattedTextEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Label, args_0: string, args_1?: import("..").TransformOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
20
|
+
readonly toBeAutoMode: (this: import("@playwright/test").ExpectMatcherState, component: import("..").FxInput, args_0?: import("..").VisibleOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
21
|
+
readonly toBeUnchecked: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToBeCheckableElementLocator, args_0?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
22
|
+
readonly toBeActiveTab: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Tab, args_0?: import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
23
|
+
readonly toBeInactiveTab: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Tab, args_0?: import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
24
|
+
readonly toBeCheckedByValue: (this: import("@playwright/test").ExpectMatcherState, component: import("..").RadioGroup, args_0: string | RegExp, args_1?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
25
|
+
readonly toBeCheckedByIndex: (this: import("@playwright/test").ExpectMatcherState, component: import("..").RadioGroup, args_0: number, args_1?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
26
|
+
readonly toBeUncheckedByValue: (this: import("@playwright/test").ExpectMatcherState, component: import("..").RadioGroup, args_0: string | RegExp, args_1?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
27
|
+
readonly toBeUncheckedByIndex: (this: import("@playwright/test").ExpectMatcherState, component: import("..").RadioGroup, args_0: number, args_1?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
28
|
+
readonly toBeCheckedByText: (this: import("@playwright/test").ExpectMatcherState, component: import("..").RadioGroup, args_0: string | RegExp, args_1?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
29
|
+
readonly toBeUncheckedByText: (this: import("@playwright/test").ExpectMatcherState, component: import("..").RadioGroup, args_0: string | RegExp, args_1?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
30
|
+
readonly toHaveHref: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Link, args_0: string | RegExp, args_1?: import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
31
|
+
readonly toHaveItems: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToHaveItemsElementLocator, args_0: string[], args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
32
|
+
readonly toHaveError: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").RootSymbolLocator, args_0?: import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
33
|
+
readonly toHaveWarning: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").RootSymbolLocator, args_0?: import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
34
|
+
readonly toHaveActiveTab: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Tabs, args_0: string | RegExp) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
35
|
+
readonly toHavePageCount: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Paging, args_0: number, args_1?: {
|
|
16
36
|
timeout?: number;
|
|
17
37
|
} | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
18
|
-
|
|
19
|
-
toBeUncheckedEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToBeCheckableElementLocator, args_0?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
20
|
-
toHaveTextEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToTextElementLocator, args_0: string | RegExp | readonly (string | RegExp)[], args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
21
|
-
toContainTextEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToTextElementLocator, args_0: string | RegExp | readonly (string | RegExp)[], args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
22
|
-
toHaveItemsEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToHaveItemsElementLocator, args_0: string[], args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
23
|
-
toContainItemsEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToHaveItemsElementLocator, args_0: string[], args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
24
|
-
toContainItemEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").MenuComponent & import("./component/LocatorSymbols").ToContainItemElementLocator, args_0: string, args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
25
|
-
toHaveCountEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").ComponentList<any>, args_0: number, args_1?: import("..").CountOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
26
|
-
toBeActiveEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Tab, args_0?: import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
27
|
-
toBeInactiveEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Tab, args_0?: import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
28
|
-
toContainTokensEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").TokenInput, args_0: string[], args_1?: {
|
|
38
|
+
readonly toHaveActivePage: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Paging, args_0: number, args_1?: {
|
|
29
39
|
timeout?: number;
|
|
30
40
|
} | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
toHaveHrefEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Link, args_0: string | RegExp, args_1?: import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
35
|
-
toHavePageCountEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Paging, args_0: number, args_1?: {
|
|
41
|
+
readonly toContainItems: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToHaveItemsElementLocator, args_0: string[], args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
42
|
+
readonly toContainItem: (this: import("@playwright/test").ExpectMatcherState, component: import("..").MenuComponent & import("./component/LocatorSymbols").ToContainItemElementLocator, args_0: string, args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
43
|
+
readonly toContainTokens: (this: import("@playwright/test").ExpectMatcherState, component: import("..").TokenInput, args_0: string[], args_1?: {
|
|
36
44
|
timeout?: number;
|
|
37
45
|
} | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
toBeUncheckedByIndexEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").RadioGroup, args_0: number, args_1?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
42
|
-
toContainValueEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Select, args_0: string | RegExp | readonly (string | RegExp)[], args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
43
|
-
toBeCheckedByTextEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").RadioGroup, args_0: string | RegExp, args_1?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
44
|
-
toBeUncheckedByTextEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").RadioGroup, args_0: string | RegExp, args_1?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
45
|
-
toHaveActivePageEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Paging, args_0: number, args_1?: {
|
|
46
|
+
readonly toContainTabs: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Tabs, args_0: string[], args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
47
|
+
readonly toContainSelectValue: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Select, args_0: string | RegExp | readonly (string | RegExp)[], args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
48
|
+
readonly toContainUploadedFiles: (this: import("@playwright/test").ExpectMatcherState, component: import("..").FileUploader, args_0: string[], args_1?: {
|
|
46
49
|
timeout?: number;
|
|
47
50
|
} | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
48
|
-
toHaveFormattedValueEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToWithValueElementLocator, args_0: string, args_1?: import("..").TransformOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
49
|
-
toHaveFormattedTextEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToTextElementLocator, args_0: string, args_1?: import("..").TransformOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
50
|
-
toContainFormattedTextEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Label, args_0: string, args_1?: import("..").TransformOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
51
51
|
};
|
|
52
52
|
export type ComponentMatchers = typeof matchers;
|
|
53
53
|
export declare const componentMatchers: import("@playwright/test").Expect<{
|
|
54
|
-
toBeEmptyEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToWithValueElementLocator, args_0?: import("..").EmptyOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
55
|
-
toBeVisibleEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").VisibleElementLocator, args_0?: import("..").VisibleOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
56
|
-
toBeHiddenEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").VisibleElementLocator, args_0?: import("..").HiddenOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
57
|
-
toBeEnabledEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ControlElementLocator, args_0?: import("..").EnabledOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
58
|
-
toBeDisabledEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ControlElementLocator, args_0?: import("..").EnabledOptions | import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
toHaveAttributeEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToHaveAttributeElementLocator, args_0: string, args_1?: string | RegExp | undefined, args_2?: import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
62
|
-
toHaveValueEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToWithValueElementLocator, args_0: string | number | RegExp | readonly (string | RegExp)[] | {
|
|
54
|
+
readonly toBeEmptyEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToWithValueElementLocator, args_0?: import("..").EmptyOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
55
|
+
readonly toBeVisibleEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").VisibleElementLocator, args_0?: import("..").VisibleOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
56
|
+
readonly toBeHiddenEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").VisibleElementLocator, args_0?: import("..").HiddenOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
57
|
+
readonly toBeEnabledEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ControlElementLocator, args_0?: import("..").EnabledOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
58
|
+
readonly toBeDisabledEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ControlElementLocator, args_0?: import("..").EnabledOptions | import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
59
|
+
readonly toBeFocusedEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToBeFocusableElementLocator, args_0?: import("..").FocusedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
60
|
+
readonly toBeCheckedEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToBeCheckableElementLocator, args_0?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
61
|
+
readonly toHaveAttributeEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToHaveAttributeElementLocator, args_0: string, args_1?: string | RegExp | undefined, args_2?: import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
62
|
+
readonly toHaveValueEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToWithValueElementLocator, args_0: string | number | RegExp | readonly (string | RegExp)[] | {
|
|
63
63
|
start?: string;
|
|
64
64
|
end?: string;
|
|
65
65
|
}, args_1?: import("..").ValueOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
readonly toHaveTextEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToTextElementLocator, args_0: string | RegExp | readonly (string | RegExp)[], args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
67
|
+
readonly toHaveCountEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").ComponentList<any>, args_0: number, args_1?: import("..").CountOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
68
|
+
readonly toHaveFormattedValueEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToWithValueElementLocator, args_0: string, args_1?: import("..").TransformOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
69
|
+
readonly toHaveFormattedTextEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToTextElementLocator, args_0: string, args_1?: import("..").TransformOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
70
|
+
readonly toContainTextEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToTextElementLocator, args_0: string | RegExp | readonly (string | RegExp)[], args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
71
|
+
readonly toContainFormattedTextEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Label, args_0: string, args_1?: import("..").TransformOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
72
|
+
readonly toBeAutoMode: (this: import("@playwright/test").ExpectMatcherState, component: import("..").FxInput, args_0?: import("..").VisibleOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
73
|
+
readonly toBeUnchecked: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToBeCheckableElementLocator, args_0?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
74
|
+
readonly toBeActiveTab: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Tab, args_0?: import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
75
|
+
readonly toBeInactiveTab: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Tab, args_0?: import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
76
|
+
readonly toBeCheckedByValue: (this: import("@playwright/test").ExpectMatcherState, component: import("..").RadioGroup, args_0: string | RegExp, args_1?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
77
|
+
readonly toBeCheckedByIndex: (this: import("@playwright/test").ExpectMatcherState, component: import("..").RadioGroup, args_0: number, args_1?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
78
|
+
readonly toBeUncheckedByValue: (this: import("@playwright/test").ExpectMatcherState, component: import("..").RadioGroup, args_0: string | RegExp, args_1?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
79
|
+
readonly toBeUncheckedByIndex: (this: import("@playwright/test").ExpectMatcherState, component: import("..").RadioGroup, args_0: number, args_1?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
80
|
+
readonly toBeCheckedByText: (this: import("@playwright/test").ExpectMatcherState, component: import("..").RadioGroup, args_0: string | RegExp, args_1?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
81
|
+
readonly toBeUncheckedByText: (this: import("@playwright/test").ExpectMatcherState, component: import("..").RadioGroup, args_0: string | RegExp, args_1?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
82
|
+
readonly toHaveHref: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Link, args_0: string | RegExp, args_1?: import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
83
|
+
readonly toHaveItems: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToHaveItemsElementLocator, args_0: string[], args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
84
|
+
readonly toHaveError: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").RootSymbolLocator, args_0?: import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
85
|
+
readonly toHaveWarning: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").RootSymbolLocator, args_0?: import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
86
|
+
readonly toHaveActiveTab: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Tabs, args_0: string | RegExp) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
87
|
+
readonly toHavePageCount: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Paging, args_0: number, args_1?: {
|
|
68
88
|
timeout?: number;
|
|
69
89
|
} | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
70
|
-
|
|
71
|
-
toBeUncheckedEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToBeCheckableElementLocator, args_0?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
72
|
-
toHaveTextEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToTextElementLocator, args_0: string | RegExp | readonly (string | RegExp)[], args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
73
|
-
toContainTextEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToTextElementLocator, args_0: string | RegExp | readonly (string | RegExp)[], args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
74
|
-
toHaveItemsEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToHaveItemsElementLocator, args_0: string[], args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
75
|
-
toContainItemsEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToHaveItemsElementLocator, args_0: string[], args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
76
|
-
toContainItemEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").MenuComponent & import("./component/LocatorSymbols").ToContainItemElementLocator, args_0: string, args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
77
|
-
toHaveCountEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").ComponentList<any>, args_0: number, args_1?: import("..").CountOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
78
|
-
toBeActiveEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Tab, args_0?: import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
79
|
-
toBeInactiveEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Tab, args_0?: import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
80
|
-
toContainTokensEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").TokenInput, args_0: string[], args_1?: {
|
|
90
|
+
readonly toHaveActivePage: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Paging, args_0: number, args_1?: {
|
|
81
91
|
timeout?: number;
|
|
82
92
|
} | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
toHaveHrefEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Link, args_0: string | RegExp, args_1?: import("..").AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
87
|
-
toHavePageCountEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Paging, args_0: number, args_1?: {
|
|
93
|
+
readonly toContainItems: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToHaveItemsElementLocator, args_0: string[], args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
94
|
+
readonly toContainItem: (this: import("@playwright/test").ExpectMatcherState, component: import("..").MenuComponent & import("./component/LocatorSymbols").ToContainItemElementLocator, args_0: string, args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
95
|
+
readonly toContainTokens: (this: import("@playwright/test").ExpectMatcherState, component: import("..").TokenInput, args_0: string[], args_1?: {
|
|
88
96
|
timeout?: number;
|
|
89
97
|
} | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
toBeUncheckedByIndexEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").RadioGroup, args_0: number, args_1?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
94
|
-
toContainValueEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Select, args_0: string | RegExp | readonly (string | RegExp)[], args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
95
|
-
toBeCheckedByTextEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").RadioGroup, args_0: string | RegExp, args_1?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
96
|
-
toBeUncheckedByTextEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").RadioGroup, args_0: string | RegExp, args_1?: import("..").CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
97
|
-
toHaveActivePageEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Paging, args_0: number, args_1?: {
|
|
98
|
+
readonly toContainTabs: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Tabs, args_0: string[], args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
99
|
+
readonly toContainSelectValue: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Select, args_0: string | RegExp | readonly (string | RegExp)[], args_1?: import("..").TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
100
|
+
readonly toContainUploadedFiles: (this: import("@playwright/test").ExpectMatcherState, component: import("..").FileUploader, args_0: string[], args_1?: {
|
|
98
101
|
timeout?: number;
|
|
99
102
|
} | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
100
|
-
toHaveFormattedValueEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToWithValueElementLocator, args_0: string, args_1?: import("..").TransformOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
101
|
-
toHaveFormattedTextEx: (this: import("@playwright/test").ExpectMatcherState, component: import("./component/LocatorSymbols").ToTextElementLocator, args_0: string, args_1?: import("..").TransformOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
102
|
-
toContainFormattedTextEx: (this: import("@playwright/test").ExpectMatcherState, component: import("..").Label, args_0: string, args_1?: import("..").TransformOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
103
103
|
}>;
|
|
104
104
|
export {};
|
|
@@ -7,77 +7,83 @@ var toBeVisibleEx_1 = require("./component/toBeVisibleEx");
|
|
|
7
7
|
var toBeHiddenEx_1 = require("./component/toBeHiddenEx");
|
|
8
8
|
var toBeEnabledEx_1 = require("./component/toBeEnabledEx");
|
|
9
9
|
var toBeDisabledEx_1 = require("./component/toBeDisabledEx");
|
|
10
|
-
var toHaveErrorEx_1 = require("./component/toHaveErrorEx");
|
|
11
|
-
var toHaveWarningEx_1 = require("./component/toHaveWarningEx");
|
|
12
10
|
var toHaveAttributeEx_1 = require("./component/toHaveAttributeEx");
|
|
13
11
|
var toHaveValueEx_1 = require("./component/toHaveValueEx");
|
|
14
12
|
var toBeFocusedEx_1 = require("./component/toBeFocusedEx");
|
|
15
|
-
var toContainUploadedFilesEx_1 = require("./component/toContainUploadedFilesEx");
|
|
16
13
|
var toBeCheckedEx_1 = require("./component/toBeCheckedEx");
|
|
17
|
-
var
|
|
14
|
+
var toBeUnchecked_1 = require("./component/toBeUnchecked");
|
|
18
15
|
var toHaveTextEx_1 = require("./component/toHaveTextEx");
|
|
19
16
|
var toContainTextEx_1 = require("./component/toContainTextEx");
|
|
20
|
-
var toHaveItemsEx_1 = require("./component/toHaveItemsEx");
|
|
21
|
-
var toContainItemsEx_1 = require("./component/toContainItemsEx");
|
|
22
|
-
var toContainItemEx_1 = require("./component/toContainItemEx");
|
|
23
|
-
var toContainFormattedTextEx_1 = require("./component/toContainFormattedTextEx");
|
|
24
17
|
var toHaveCountEx_1 = require("./component/toHaveCountEx");
|
|
25
|
-
var
|
|
26
|
-
var toBeInactiveEx_1 = require("./component/toBeInactiveEx");
|
|
27
|
-
var toContainTokensEx_1 = require("./component/toContainTokensEx");
|
|
28
|
-
var toHaveActiveTabEx_1 = require("./component/toHaveActiveTabEx");
|
|
29
|
-
var toContainTabsEx_1 = require("./component/toContainTabsEx");
|
|
30
|
-
var toBeAutoEx_1 = require("./component/toBeAutoEx");
|
|
31
|
-
var toHaveHrefEx_1 = require("./component/toHaveHrefEx");
|
|
32
|
-
var toHavePageCountEx_1 = require("./component/toHavePageCountEx");
|
|
33
|
-
var toBeCheckedByValueEx_1 = require("./component/toBeCheckedByValueEx");
|
|
34
|
-
var toBeCheckedByIndexEx_1 = require("./component/toBeCheckedByIndexEx");
|
|
35
|
-
var toBeUncheckedByValueEx_1 = require("./component/toBeUncheckedByValueEx");
|
|
36
|
-
var toBeUncheckedByIndexEx_1 = require("./component/toBeUncheckedByIndexEx");
|
|
37
|
-
var toContainValueEx_1 = require("./component/toContainValueEx");
|
|
38
|
-
var toBeCheckedByTextEx_1 = require("./component/toBeCheckedByTextEx");
|
|
39
|
-
var toBeUncheckedByTextEx_1 = require("./component/toBeUncheckedByTextEx");
|
|
40
|
-
var toHaveActivePageEx_1 = require("./component/toHaveActivePageEx");
|
|
18
|
+
var toContainFormattedTextEx_1 = require("./component/toContainFormattedTextEx");
|
|
41
19
|
var toHaveFormattedValueEx_1 = require("./component/toHaveFormattedValueEx");
|
|
42
20
|
var toHaveFormattedTextEx_1 = require("./component/toHaveFormattedTextEx");
|
|
21
|
+
var toHaveItems_1 = require("./component/toHaveItems");
|
|
22
|
+
var toContainItems_1 = require("./component/toContainItems");
|
|
23
|
+
var toContainItem_1 = require("./component/toContainItem");
|
|
24
|
+
var toBeActiveTab_1 = require("./component/toBeActiveTab");
|
|
25
|
+
var toBeInactiveTab_1 = require("./component/toBeInactiveTab");
|
|
26
|
+
var toBeAutoMode_1 = require("./component/toBeAutoMode");
|
|
27
|
+
var toHaveError_1 = require("./component/toHaveError");
|
|
28
|
+
var toHaveWarning_1 = require("./component/toHaveWarning");
|
|
29
|
+
var toContainUploadedFiles_1 = require("./component/toContainUploadedFiles");
|
|
30
|
+
var toContainTokens_1 = require("./component/toContainTokens");
|
|
31
|
+
var toHaveActiveTab_1 = require("./component/toHaveActiveTab");
|
|
32
|
+
var toContainTabs_1 = require("./component/toContainTabs");
|
|
33
|
+
var toHaveHref_1 = require("./component/toHaveHref");
|
|
34
|
+
var toHavePageCount_1 = require("./component/toHavePageCount");
|
|
35
|
+
var toBeCheckedByValue_1 = require("./component/toBeCheckedByValue");
|
|
36
|
+
var toBeCheckedByIndex_1 = require("./component/toBeCheckedByIndex");
|
|
37
|
+
var toBeUncheckedByValue_1 = require("./component/toBeUncheckedByValue");
|
|
38
|
+
var toBeUncheckedByIndex_1 = require("./component/toBeUncheckedByIndex");
|
|
39
|
+
var toContainSelectValue_1 = require("./component/toContainSelectValue");
|
|
40
|
+
var toBeCheckedByText_1 = require("./component/toBeCheckedByText");
|
|
41
|
+
var toBeUncheckedByText_1 = require("./component/toBeUncheckedByText");
|
|
42
|
+
var toHaveActivePage_1 = require("./component/toHaveActivePage");
|
|
43
43
|
var matchers = {
|
|
44
|
+
/*
|
|
45
|
+
NOTE: некоторые кастомные матчеры содержат суффикс "Ex",
|
|
46
|
+
для того чтобы не переопределять стандартные матчеры playwright,
|
|
47
|
+
тк. уже есть матчеры с такими же именами 'toBeEmpty' и тд и при extend они мутируются и перезаписываются { ...matchers, ...customMatchers }
|
|
48
|
+
https://playwright.dev/docs/test-assertions#auto-retrying-assertions
|
|
49
|
+
*/
|
|
44
50
|
toBeEmptyEx: toBeEmptyEx_1.toBeEmptyEx,
|
|
45
51
|
toBeVisibleEx: toBeVisibleEx_1.toBeVisibleEx,
|
|
46
52
|
toBeHiddenEx: toBeHiddenEx_1.toBeHiddenEx,
|
|
47
53
|
toBeEnabledEx: toBeEnabledEx_1.toBeEnabledEx,
|
|
48
54
|
toBeDisabledEx: toBeDisabledEx_1.toBeDisabledEx,
|
|
49
|
-
toHaveErrorEx: toHaveErrorEx_1.toHaveErrorEx,
|
|
50
|
-
toHaveWarningEx: toHaveWarningEx_1.toHaveWarningEx,
|
|
51
|
-
toHaveAttributeEx: toHaveAttributeEx_1.toHaveAttributeEx,
|
|
52
|
-
toHaveValueEx: toHaveValueEx_1.toHaveValueEx,
|
|
53
55
|
toBeFocusedEx: toBeFocusedEx_1.toBeFocusedEx,
|
|
54
|
-
toContainUploadedFilesEx: toContainUploadedFilesEx_1.toContainUploadedFilesEx,
|
|
55
56
|
toBeCheckedEx: toBeCheckedEx_1.toBeCheckedEx,
|
|
56
|
-
|
|
57
|
+
toHaveAttributeEx: toHaveAttributeEx_1.toHaveAttributeEx,
|
|
58
|
+
toHaveValueEx: toHaveValueEx_1.toHaveValueEx,
|
|
57
59
|
toHaveTextEx: toHaveTextEx_1.toHaveTextEx,
|
|
58
|
-
toContainTextEx: toContainTextEx_1.toContainTextEx,
|
|
59
|
-
toHaveItemsEx: toHaveItemsEx_1.toHaveItemsEx,
|
|
60
|
-
toContainItemsEx: toContainItemsEx_1.toContainItemsEx,
|
|
61
|
-
toContainItemEx: toContainItemEx_1.toContainItemEx,
|
|
62
60
|
toHaveCountEx: toHaveCountEx_1.toHaveCountEx,
|
|
63
|
-
toBeActiveEx: toBeActiveEx_1.toBeActiveEx,
|
|
64
|
-
toBeInactiveEx: toBeInactiveEx_1.toBeInactiveEx,
|
|
65
|
-
toContainTokensEx: toContainTokensEx_1.toContainTokensEx,
|
|
66
|
-
toHaveActiveTabEx: toHaveActiveTabEx_1.toHaveActiveTabEx,
|
|
67
|
-
toContainTabsEx: toContainTabsEx_1.toContainTabsEx,
|
|
68
|
-
toBeAutoEx: toBeAutoEx_1.toBeAutoEx,
|
|
69
|
-
toHaveHrefEx: toHaveHrefEx_1.toHaveHrefEx,
|
|
70
|
-
toHavePageCountEx: toHavePageCountEx_1.toHavePageCountEx,
|
|
71
|
-
toBeCheckedByValueEx: toBeCheckedByValueEx_1.toBeCheckedByValueEx,
|
|
72
|
-
toBeCheckedByIndexEx: toBeCheckedByIndexEx_1.toBeCheckedByIndexEx,
|
|
73
|
-
toBeUncheckedByValueEx: toBeUncheckedByValueEx_1.toBeUncheckedByValueEx,
|
|
74
|
-
toBeUncheckedByIndexEx: toBeUncheckedByIndexEx_1.toBeUncheckedByIndexEx,
|
|
75
|
-
toContainValueEx: toContainValueEx_1.toContainValueEx,
|
|
76
|
-
toBeCheckedByTextEx: toBeCheckedByTextEx_1.toBeCheckedByTextEx,
|
|
77
|
-
toBeUncheckedByTextEx: toBeUncheckedByTextEx_1.toBeUncheckedByTextEx,
|
|
78
|
-
toHaveActivePageEx: toHaveActivePageEx_1.toHaveActivePageEx,
|
|
79
61
|
toHaveFormattedValueEx: toHaveFormattedValueEx_1.toHaveFormattedValueEx,
|
|
80
62
|
toHaveFormattedTextEx: toHaveFormattedTextEx_1.toHaveFormattedTextEx,
|
|
63
|
+
toContainTextEx: toContainTextEx_1.toContainTextEx,
|
|
81
64
|
toContainFormattedTextEx: toContainFormattedTextEx_1.toContainFormattedTextEx,
|
|
65
|
+
toBeAutoMode: toBeAutoMode_1.toBeAutoMode,
|
|
66
|
+
toBeUnchecked: toBeUnchecked_1.toBeUnchecked,
|
|
67
|
+
toBeActiveTab: toBeActiveTab_1.toBeActiveTab,
|
|
68
|
+
toBeInactiveTab: toBeInactiveTab_1.toBeInactiveTab,
|
|
69
|
+
toBeCheckedByValue: toBeCheckedByValue_1.toBeCheckedByValue,
|
|
70
|
+
toBeCheckedByIndex: toBeCheckedByIndex_1.toBeCheckedByIndex,
|
|
71
|
+
toBeUncheckedByValue: toBeUncheckedByValue_1.toBeUncheckedByValue,
|
|
72
|
+
toBeUncheckedByIndex: toBeUncheckedByIndex_1.toBeUncheckedByIndex,
|
|
73
|
+
toBeCheckedByText: toBeCheckedByText_1.toBeCheckedByText,
|
|
74
|
+
toBeUncheckedByText: toBeUncheckedByText_1.toBeUncheckedByText,
|
|
75
|
+
toHaveHref: toHaveHref_1.toHaveHref,
|
|
76
|
+
toHaveItems: toHaveItems_1.toHaveItems,
|
|
77
|
+
toHaveError: toHaveError_1.toHaveError,
|
|
78
|
+
toHaveWarning: toHaveWarning_1.toHaveWarning,
|
|
79
|
+
toHaveActiveTab: toHaveActiveTab_1.toHaveActiveTab,
|
|
80
|
+
toHavePageCount: toHavePageCount_1.toHavePageCount,
|
|
81
|
+
toHaveActivePage: toHaveActivePage_1.toHaveActivePage,
|
|
82
|
+
toContainItems: toContainItems_1.toContainItems,
|
|
83
|
+
toContainItem: toContainItem_1.toContainItem,
|
|
84
|
+
toContainTokens: toContainTokens_1.toContainTokens,
|
|
85
|
+
toContainTabs: toContainTabs_1.toContainTabs,
|
|
86
|
+
toContainSelectValue: toContainSelectValue_1.toContainSelectValue,
|
|
87
|
+
toContainUploadedFiles: toContainUploadedFiles_1.toContainUploadedFiles,
|
|
82
88
|
};
|
|
83
89
|
exports.componentMatchers = test_1.expect.extend(matchers);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ExpectMatcherState, Locator, MatcherReturnType } from '@playwright/test';
|
|
2
|
-
import type { LocatorType } from './component/LocatorSymbols';
|
|
2
|
+
import type { LocatorType, LocatorTypeFn } from './component/LocatorSymbols';
|
|
3
3
|
export interface CreateMatcherLogicParams<TComponent> {
|
|
4
4
|
isNot: boolean;
|
|
5
5
|
locator: Locator;
|
|
@@ -7,12 +7,21 @@ export interface CreateMatcherLogicParams<TComponent> {
|
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Создает асинхронный матчер для конкретного компонента
|
|
10
|
-
*
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
* @param matcherName - уникальное имя матчера
|
|
11
13
|
* @param getLocator - функция для получения локатора
|
|
12
|
-
* @param
|
|
13
|
-
* @param
|
|
14
|
+
* @param createMatcherLogicAsync - функция для создания логики матчера
|
|
15
|
+
* @param createExpectMessage - функция для создания сообщения для ожидания
|
|
14
16
|
*
|
|
15
17
|
* @example
|
|
18
|
+
*
|
|
19
|
+
* Дженерик аргументы:
|
|
20
|
+
*
|
|
21
|
+
* createComponentAsyncMatcher<Component, TArgs>
|
|
22
|
+
* - Component - тип компонента
|
|
23
|
+
* - TArgs - массив аргументов матчера
|
|
24
|
+
*
|
|
16
25
|
* const toExampleEx = createComponentAsyncMatcher<Component, [AttributeOptions?]>(
|
|
17
26
|
* 'toExampleEx',
|
|
18
27
|
* component => component.rootLocator,
|
|
@@ -24,16 +33,32 @@ export interface CreateMatcherLogicParams<TComponent> {
|
|
|
24
33
|
* isNot => (isNot ? 'not to be example' : 'to be example'),
|
|
25
34
|
* );
|
|
26
35
|
*/
|
|
27
|
-
export declare function createComponentAsyncMatcher<TComponent, TArgs extends unknown[]>(matcherName: string, getLocator: (component: TComponent) => LocatorType,
|
|
36
|
+
export declare function createComponentAsyncMatcher<TComponent, TArgs extends unknown[]>(matcherName: string, getLocator: (component: TComponent) => LocatorType, createMatcherLogicAsync: (params: CreateMatcherLogicParams<TComponent>, ...args: TArgs) => Promise<void>, createExpectMessage?: (isNot: boolean, ...args: TArgs) => string): (this: ExpectMatcherState, component: TComponent, ...args: TArgs) => Promise<MatcherReturnType>;
|
|
28
37
|
/**
|
|
29
38
|
* Создает асинхронный типизированный матчер для компонента с символом локатора
|
|
30
|
-
*
|
|
39
|
+
*
|
|
40
|
+
*
|
|
41
|
+
* @param matcherName - уникальное имя матчера
|
|
31
42
|
* @param getLocator - функция для получения локатора
|
|
32
|
-
* @param
|
|
33
|
-
* @param
|
|
43
|
+
* @param createMatcherLogicAsync - асинхронная функция для создания логики матчера
|
|
44
|
+
* @param createExpectMessage - функция для создания сообщения для ожидания
|
|
34
45
|
*
|
|
35
46
|
* @example
|
|
36
|
-
*
|
|
47
|
+
* export type ToExampleExLocator = {
|
|
48
|
+
* [toExampleExLocator]: () => Locator;
|
|
49
|
+
* }
|
|
50
|
+
*
|
|
51
|
+
* export const toExampleExLocator = Symbol.for('toExampleExLocator');
|
|
52
|
+
*
|
|
53
|
+
* Дженерик аргументы:
|
|
54
|
+
*
|
|
55
|
+
* createAsyncMatcher<TLocatorSymbolInterface, TArgs, Component>
|
|
56
|
+
* - TLocatorSymbolInterface - тип с символом локатора
|
|
57
|
+
* - TArgs - массив аргументов матчера
|
|
58
|
+
* - TComponent - тип компонента
|
|
59
|
+
*
|
|
60
|
+
*
|
|
61
|
+
* const toExampleEx = createAsyncMatcher<ToExampleExLocator, [AttributeOptions?], Component>(
|
|
37
62
|
* 'toExampleEx',
|
|
38
63
|
* component => component[toExampleExLocator](),
|
|
39
64
|
* async ({ isNot, locator, component }, options) => {
|
|
@@ -44,4 +69,4 @@ export declare function createComponentAsyncMatcher<TComponent, TArgs extends un
|
|
|
44
69
|
* isNot => (isNot ? 'not to be example' : 'to be example'),
|
|
45
70
|
* );
|
|
46
71
|
*/
|
|
47
|
-
export declare function createAsyncMatcher<TLocatorSymbolInterface, TArgs extends unknown[], TComponent = unknown>(matcherName: string, getLocator: (component: TComponent & TLocatorSymbolInterface) => LocatorType,
|
|
72
|
+
export declare function createAsyncMatcher<TLocatorSymbolInterface extends Record<symbol, LocatorTypeFn>, TArgs extends unknown[], TComponent = unknown>(matcherName: string, getLocator: (component: TComponent & TLocatorSymbolInterface) => LocatorType, createMatcherLogicAsync: (params: CreateMatcherLogicParams<TComponent>, ...args: TArgs) => Promise<void>, createExpectMessage?: (isNot: boolean, ...args: TArgs) => string): (this: ExpectMatcherState, component: TComponent & TLocatorSymbolInterface, ...args: TArgs) => Promise<MatcherReturnType>;
|
|
@@ -51,12 +51,21 @@ var makeMatcher_1 = require("../utils/makeMatcher");
|
|
|
51
51
|
var toMatchMessage_1 = require("../utils/toMatchMessage");
|
|
52
52
|
/**
|
|
53
53
|
* Создает асинхронный матчер для конкретного компонента
|
|
54
|
-
*
|
|
54
|
+
*
|
|
55
|
+
*
|
|
56
|
+
* @param matcherName - уникальное имя матчера
|
|
55
57
|
* @param getLocator - функция для получения локатора
|
|
56
|
-
* @param
|
|
57
|
-
* @param
|
|
58
|
+
* @param createMatcherLogicAsync - функция для создания логики матчера
|
|
59
|
+
* @param createExpectMessage - функция для создания сообщения для ожидания
|
|
58
60
|
*
|
|
59
61
|
* @example
|
|
62
|
+
*
|
|
63
|
+
* Дженерик аргументы:
|
|
64
|
+
*
|
|
65
|
+
* createComponentAsyncMatcher<Component, TArgs>
|
|
66
|
+
* - Component - тип компонента
|
|
67
|
+
* - TArgs - массив аргументов матчера
|
|
68
|
+
*
|
|
60
69
|
* const toExampleEx = createComponentAsyncMatcher<Component, [AttributeOptions?]>(
|
|
61
70
|
* 'toExampleEx',
|
|
62
71
|
* component => component.rootLocator,
|
|
@@ -68,7 +77,7 @@ var toMatchMessage_1 = require("../utils/toMatchMessage");
|
|
|
68
77
|
* isNot => (isNot ? 'not to be example' : 'to be example'),
|
|
69
78
|
* );
|
|
70
79
|
*/
|
|
71
|
-
function createComponentAsyncMatcher(matcherName, getLocator,
|
|
80
|
+
function createComponentAsyncMatcher(matcherName, getLocator, createMatcherLogicAsync, createExpectMessage) {
|
|
72
81
|
return function matcher(component) {
|
|
73
82
|
var args = [];
|
|
74
83
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
@@ -88,14 +97,14 @@ function createComponentAsyncMatcher(matcherName, getLocator, createMatcherLogic
|
|
|
88
97
|
return (0, makeMatcher_1.makeMatcher)(isNot, function () { return __awaiter(_this, void 0, void 0, function () {
|
|
89
98
|
return __generator(this, function (_a) {
|
|
90
99
|
switch (_a.label) {
|
|
91
|
-
case 0: return [4 /*yield*/,
|
|
100
|
+
case 0: return [4 /*yield*/, createMatcherLogicAsync.apply(void 0, __spreadArray([{ isNot: isNot, locator: locator, component: component }], args, false))];
|
|
92
101
|
case 1:
|
|
93
102
|
_a.sent();
|
|
94
103
|
return [2 /*return*/];
|
|
95
104
|
}
|
|
96
105
|
});
|
|
97
106
|
}); });
|
|
98
|
-
},
|
|
107
|
+
}, createExpectMessage === null || createExpectMessage === void 0 ? void 0 : createExpectMessage.apply(void 0, __spreadArray([this.isNot], args, false))]))];
|
|
99
108
|
}
|
|
100
109
|
});
|
|
101
110
|
});
|
|
@@ -103,13 +112,29 @@ function createComponentAsyncMatcher(matcherName, getLocator, createMatcherLogic
|
|
|
103
112
|
}
|
|
104
113
|
/**
|
|
105
114
|
* Создает асинхронный типизированный матчер для компонента с символом локатора
|
|
106
|
-
*
|
|
115
|
+
*
|
|
116
|
+
*
|
|
117
|
+
* @param matcherName - уникальное имя матчера
|
|
107
118
|
* @param getLocator - функция для получения локатора
|
|
108
|
-
* @param
|
|
109
|
-
* @param
|
|
119
|
+
* @param createMatcherLogicAsync - асинхронная функция для создания логики матчера
|
|
120
|
+
* @param createExpectMessage - функция для создания сообщения для ожидания
|
|
110
121
|
*
|
|
111
122
|
* @example
|
|
112
|
-
*
|
|
123
|
+
* export type ToExampleExLocator = {
|
|
124
|
+
* [toExampleExLocator]: () => Locator;
|
|
125
|
+
* }
|
|
126
|
+
*
|
|
127
|
+
* export const toExampleExLocator = Symbol.for('toExampleExLocator');
|
|
128
|
+
*
|
|
129
|
+
* Дженерик аргументы:
|
|
130
|
+
*
|
|
131
|
+
* createAsyncMatcher<TLocatorSymbolInterface, TArgs, Component>
|
|
132
|
+
* - TLocatorSymbolInterface - тип с символом локатора
|
|
133
|
+
* - TArgs - массив аргументов матчера
|
|
134
|
+
* - TComponent - тип компонента
|
|
135
|
+
*
|
|
136
|
+
*
|
|
137
|
+
* const toExampleEx = createAsyncMatcher<ToExampleExLocator, [AttributeOptions?], Component>(
|
|
113
138
|
* 'toExampleEx',
|
|
114
139
|
* component => component[toExampleExLocator](),
|
|
115
140
|
* async ({ isNot, locator, component }, options) => {
|
|
@@ -120,7 +145,7 @@ function createComponentAsyncMatcher(matcherName, getLocator, createMatcherLogic
|
|
|
120
145
|
* isNot => (isNot ? 'not to be example' : 'to be example'),
|
|
121
146
|
* );
|
|
122
147
|
*/
|
|
123
|
-
function createAsyncMatcher(matcherName, getLocator,
|
|
148
|
+
function createAsyncMatcher(matcherName, getLocator, createMatcherLogicAsync, createExpectMessage) {
|
|
124
149
|
return function matcher(component) {
|
|
125
150
|
var args = [];
|
|
126
151
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
@@ -140,14 +165,14 @@ function createAsyncMatcher(matcherName, getLocator, createMatcherLogic, createM
|
|
|
140
165
|
return (0, makeMatcher_1.makeMatcher)(isNot, function () { return __awaiter(_this, void 0, void 0, function () {
|
|
141
166
|
return __generator(this, function (_a) {
|
|
142
167
|
switch (_a.label) {
|
|
143
|
-
case 0: return [4 /*yield*/,
|
|
168
|
+
case 0: return [4 /*yield*/, createMatcherLogicAsync.apply(void 0, __spreadArray([{ isNot: isNot, locator: locator, component: component }], args, false))];
|
|
144
169
|
case 1:
|
|
145
170
|
_a.sent();
|
|
146
171
|
return [2 /*return*/];
|
|
147
172
|
}
|
|
148
173
|
});
|
|
149
174
|
}); });
|
|
150
|
-
},
|
|
175
|
+
}, createExpectMessage === null || createExpectMessage === void 0 ? void 0 : createExpectMessage.apply(void 0, __spreadArray([this.isNot], args, false))]))];
|
|
151
176
|
}
|
|
152
177
|
});
|
|
153
178
|
});
|
|
@@ -4,6 +4,17 @@ export type MatchQueryType = (isNot: boolean, locator: Locator) => Promise<{
|
|
|
4
4
|
matches: boolean;
|
|
5
5
|
matcherResult?: MatcherResult;
|
|
6
6
|
}>;
|
|
7
|
+
/**
|
|
8
|
+
* Создает сообщение для ожидания
|
|
9
|
+
*
|
|
10
|
+
* @param state - this context
|
|
11
|
+
* @param matcherName - имя матчера
|
|
12
|
+
* @param receiver - локатор
|
|
13
|
+
* @param query - функция для проверки соответствия
|
|
14
|
+
*
|
|
15
|
+
* @param expectedMessage - сообщение для ожидания
|
|
16
|
+
* @param receiverType - тип локатора
|
|
17
|
+
*/
|
|
7
18
|
export declare function toMatchMessage(state: ExpectMatcherState, matcherName: string, receiver: Locator, query: MatchQueryType, expectedMessage?: string | RegExp, receiverType?: string): Promise<{
|
|
8
19
|
message: () => string;
|
|
9
20
|
pass: boolean;
|
|
@@ -37,6 +37,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.toMatchMessage = toMatchMessage;
|
|
40
|
+
/**
|
|
41
|
+
* Создает сообщение для ожидания
|
|
42
|
+
*
|
|
43
|
+
* @param state - this context
|
|
44
|
+
* @param matcherName - имя матчера
|
|
45
|
+
* @param receiver - локатор
|
|
46
|
+
* @param query - функция для проверки соответствия
|
|
47
|
+
*
|
|
48
|
+
* @param expectedMessage - сообщение для ожидания
|
|
49
|
+
* @param receiverType - тип локатора
|
|
50
|
+
*/
|
|
40
51
|
function toMatchMessage(state_1, matcherName_1, receiver_1, query_1) {
|
|
41
52
|
return __awaiter(this, arguments, void 0, function (state, matcherName, receiver, query, expectedMessage, receiverType) {
|
|
42
53
|
var _a, pass, matcherResult, _b, matcherHint, printExpected, printReceived, stringify, customExpectedMessage, message;
|