@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skbkontur/playwright-react-ui-components",
|
|
3
|
-
"version": "1.14.0-beta.
|
|
3
|
+
"version": "1.14.0-beta.3",
|
|
4
4
|
"description": "Пакет для взаимодействия с компонентами @skbkontur/react-ui при тестировании с помощью Playwright",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"files": [
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { AttributeOptions } from '../../options';
|
|
2
|
-
import type { Tab } from '../../components';
|
|
3
|
-
export declare const toBeActiveEx: (this: import("@playwright/test").ExpectMatcherState, component: Tab, args_0?: AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { FxInput } from '../../components';
|
|
2
|
-
import type { VisibleOptions } from '../../options';
|
|
3
|
-
export declare const toBeAutoEx: (this: import("@playwright/test").ExpectMatcherState, component: FxInput, args_0?: VisibleOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { Tab } from '../../components';
|
|
2
|
-
import type { AttributeOptions } from '../../options';
|
|
3
|
-
export declare const toBeInactiveEx: (this: import("@playwright/test").ExpectMatcherState, component: Tab, args_0?: AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { RadioGroup } from '../../components';
|
|
2
|
-
import type { CheckedOptions } from '../../options/AssertionOptions';
|
|
3
|
-
export declare const toBeUncheckedByIndexEx: (this: import("playwright/test").ExpectMatcherState, component: RadioGroup, args_0: number, args_1?: CheckedOptions | undefined) => Promise<import("playwright/test").MatcherReturnType>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { RadioGroup } from '../../components';
|
|
2
|
-
import type { CheckedOptions } from '../../options/AssertionOptions';
|
|
3
|
-
export declare const toBeUncheckedByTextEx: (this: import("playwright/test").ExpectMatcherState, component: RadioGroup, args_0: string | RegExp, args_1?: CheckedOptions | undefined) => Promise<import("playwright/test").MatcherReturnType>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { RadioGroup } from '../../components';
|
|
2
|
-
import type { CheckedOptions } from '../../options/AssertionOptions';
|
|
3
|
-
export declare const toBeUncheckedByValueEx: (this: import("playwright/test").ExpectMatcherState, component: RadioGroup, args_0: string | RegExp, args_1?: CheckedOptions | undefined) => Promise<import("playwright/test").MatcherReturnType>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { CheckedOptions } from '../../options';
|
|
2
|
-
import { type ToBeCheckableElementLocator } from './LocatorSymbols';
|
|
3
|
-
export declare const toBeUncheckedEx: (this: import("@playwright/test").ExpectMatcherState, component: ToBeCheckableElementLocator, args_0?: CheckedOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { MenuComponent } from '../../components';
|
|
2
|
-
import type { TextOptions } from '../../options/AssertionOptions';
|
|
3
|
-
import type { ToContainItemElementLocator } from './LocatorSymbols';
|
|
4
|
-
export declare const toContainItemEx: (this: import("@playwright/test").ExpectMatcherState, component: MenuComponent & ToContainItemElementLocator, args_0: string, args_1?: TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { ToHaveItemsElementLocator } from './LocatorSymbols';
|
|
2
|
-
import type { TextOptions } from '../../options';
|
|
3
|
-
export declare const toContainItemsEx: (this: import("@playwright/test").ExpectMatcherState, component: ToHaveItemsElementLocator, args_0: string[], args_1?: TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { Tabs } from '../../components';
|
|
2
|
-
import type { TextOptions } from '../../options';
|
|
3
|
-
export declare const toContainTabsEx: (this: import("@playwright/test").ExpectMatcherState, component: Tabs, args_0: string[], args_1?: TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { FileUploader } from '../../components';
|
|
2
|
-
export declare const toContainUploadedFilesEx: (this: import("@playwright/test").ExpectMatcherState, component: FileUploader, args_0: string[], args_1?: {
|
|
3
|
-
timeout?: number;
|
|
4
|
-
} | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { TextOptions } from '../../options';
|
|
2
|
-
import type { Select } from '../../components';
|
|
3
|
-
export declare const toContainValueEx: (this: import("@playwright/test").ExpectMatcherState, component: Select, args_0: string | RegExp | readonly (string | RegExp)[], args_1?: TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { AttributeOptions } from '../../options';
|
|
2
|
-
import type { Link } from '../../components';
|
|
3
|
-
export declare const toHaveHrefEx: (this: import("@playwright/test").ExpectMatcherState, component: Link, args_0: string | RegExp, args_1?: AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { ToHaveItemsElementLocator } from './LocatorSymbols';
|
|
2
|
-
import type { TextOptions } from '../../options';
|
|
3
|
-
export declare const toHaveItemsEx: (this: import("@playwright/test").ExpectMatcherState, component: ToHaveItemsElementLocator, args_0: string[], args_1?: TextOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { AttributeOptions } from '../../options';
|
|
2
|
-
import type { RootSymbolLocator } from './LocatorSymbols';
|
|
3
|
-
export declare const toHaveWarningEx: (this: import("@playwright/test").ExpectMatcherState, component: RootSymbolLocator, args_0?: AttributeOptions | undefined) => Promise<import("@playwright/test").MatcherReturnType>;
|
package/build/src/utils/is.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { Locator } from '@playwright/test';
|
|
2
|
-
import type { BaseComponent } from '../components';
|
|
3
|
-
export declare const isComponent: <T extends BaseComponent>(component: unknown, instance: new (rootLocator: Locator, itemsLocator: (rootLocator: Locator) => Locator, itemFactory: (locator: Locator) => BaseComponent) => T) => component is T;
|
package/build/src/utils/is.js
DELETED