@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.
Files changed (104) hide show
  1. package/build/src/assertions/CheckboxAssertions.js +1 -1
  2. package/build/src/assertions/ComboBoxAssertions.js +4 -4
  3. package/build/src/assertions/DropdownAssertions.js +4 -4
  4. package/build/src/assertions/DropdownMenuAssertions.js +4 -4
  5. package/build/src/assertions/FileUploaderAssertions.js +1 -1
  6. package/build/src/assertions/FxInputAssertions.js +2 -2
  7. package/build/src/assertions/KebabAssertions.js +4 -4
  8. package/build/src/assertions/LinkAssertions.js +2 -2
  9. package/build/src/assertions/PagingAssertions.js +2 -2
  10. package/build/src/assertions/RadioGroupAssertions.js +6 -6
  11. package/build/src/assertions/SelectAssertions.js +2 -2
  12. package/build/src/assertions/TabAssertions.js +2 -2
  13. package/build/src/assertions/TabsAssertions.js +3 -3
  14. package/build/src/assertions/TokenInputAssertions.js +1 -1
  15. package/build/src/components/ComboBox.d.ts +1 -2
  16. package/build/src/components/ComboBox.js +53 -54
  17. package/build/src/components/Dropdown.d.ts +1 -2
  18. package/build/src/components/Dropdown.js +61 -62
  19. package/build/src/components/DropdownMenu.d.ts +1 -2
  20. package/build/src/components/DropdownMenu.js +61 -62
  21. package/build/src/components/Kebab.d.ts +1 -2
  22. package/build/src/components/Kebab.js +43 -44
  23. package/build/src/components/MenuComponent.d.ts +2 -1
  24. package/build/src/components/MenuComponent.js +6 -5
  25. package/build/src/matchers/component/toBeActiveTab.d.ts +3 -0
  26. package/build/src/matchers/component/{toBeActiveEx.js → toBeActiveTab.js} +2 -2
  27. package/build/src/matchers/component/toBeAutoMode.d.ts +3 -0
  28. package/build/src/matchers/component/{toBeAutoEx.js → toBeAutoMode.js} +2 -2
  29. package/build/src/matchers/component/toBeCheckedByIndex.d.ts +3 -0
  30. package/build/src/matchers/component/{toBeUncheckedByIndexEx.js → toBeCheckedByIndex.js} +4 -4
  31. package/build/src/matchers/component/toBeCheckedByText.d.ts +3 -0
  32. package/build/src/matchers/component/{toBeCheckedByTextEx.js → toBeCheckedByText.js} +2 -2
  33. package/build/src/matchers/component/toBeCheckedByValue.d.ts +3 -0
  34. package/build/src/matchers/component/{toBeCheckedByValueEx.js → toBeCheckedByValue.js} +2 -2
  35. package/build/src/matchers/component/toBeDisabledEx.d.ts +1 -1
  36. package/build/src/matchers/component/toBeDisabledEx.js +7 -8
  37. package/build/src/matchers/component/toBeEmptyEx.d.ts +1 -1
  38. package/build/src/matchers/component/toBeEmptyEx.js +4 -5
  39. package/build/src/matchers/component/toBeEnabledEx.js +15 -25
  40. package/build/src/matchers/component/toBeHiddenEx.js +1 -2
  41. package/build/src/matchers/component/toBeInactiveTab.d.ts +3 -0
  42. package/build/src/matchers/component/{toBeInactiveEx.js → toBeInactiveTab.js} +2 -2
  43. package/build/src/matchers/component/toBeUnchecked.d.ts +3 -0
  44. package/build/src/matchers/component/{toBeUncheckedEx.js → toBeUnchecked.js} +2 -2
  45. package/build/src/matchers/component/{toBeCheckedByIndexEx.d.ts → toBeUncheckedByIndex.d.ts} +2 -2
  46. package/build/src/matchers/component/{toBeCheckedByIndexEx.js → toBeUncheckedByIndex.js} +4 -4
  47. package/build/src/matchers/component/{toBeCheckedByTextEx.d.ts → toBeUncheckedByText.d.ts} +2 -2
  48. package/build/src/matchers/component/{toBeUncheckedByTextEx.js → toBeUncheckedByText.js} +3 -3
  49. package/build/src/matchers/component/{toBeCheckedByValueEx.d.ts → toBeUncheckedByValue.d.ts} +2 -2
  50. package/build/src/matchers/component/{toBeUncheckedByValueEx.js → toBeUncheckedByValue.js} +3 -3
  51. package/build/src/matchers/component/toBeVisibleEx.js +1 -2
  52. package/build/src/matchers/component/toContainItem.d.ts +4 -0
  53. package/build/src/matchers/component/{toContainItemEx.js → toContainItem.js} +2 -3
  54. package/build/src/matchers/component/toContainItems.d.ts +3 -0
  55. package/build/src/matchers/component/{toContainItemsEx.js → toContainItems.js} +4 -4
  56. package/build/src/matchers/component/toContainSelectValue.d.ts +3 -0
  57. package/build/src/matchers/component/{toContainValueEx.js → toContainSelectValue.js} +2 -2
  58. package/build/src/matchers/component/toContainTabs.d.ts +3 -0
  59. package/build/src/matchers/component/{toContainTabsEx.js → toContainTabs.js} +2 -2
  60. package/build/src/matchers/component/{toContainTokensEx.d.ts → toContainTokens.d.ts} +1 -1
  61. package/build/src/matchers/component/{toContainTokensEx.js → toContainTokens.js} +2 -2
  62. package/build/src/matchers/component/toContainUploadedFiles.d.ts +4 -0
  63. package/build/src/matchers/component/{toContainUploadedFilesEx.js → toContainUploadedFiles.js} +2 -2
  64. package/build/src/matchers/component/{toHavePageCountEx.d.ts → toHaveActivePage.d.ts} +1 -1
  65. package/build/src/matchers/component/{toHaveActivePageEx.js → toHaveActivePage.js} +2 -2
  66. package/build/src/matchers/component/toHaveActiveTab.d.ts +2 -0
  67. package/build/src/matchers/component/{toHaveActiveTabEx.js → toHaveActiveTab.js} +4 -4
  68. package/build/src/matchers/component/toHaveError.d.ts +3 -0
  69. package/build/src/matchers/component/{toHaveWarningEx.js → toHaveError.js} +3 -3
  70. package/build/src/matchers/component/toHaveHref.d.ts +3 -0
  71. package/build/src/matchers/component/{toHaveHrefEx.js → toHaveHref.js} +2 -2
  72. package/build/src/matchers/component/toHaveItems.d.ts +3 -0
  73. package/build/src/matchers/component/{toHaveItemsEx.js → toHaveItems.js} +4 -4
  74. package/build/src/matchers/component/{toHaveActivePageEx.d.ts → toHavePageCount.d.ts} +1 -1
  75. package/build/src/matchers/component/{toHavePageCountEx.js → toHavePageCount.js} +2 -2
  76. package/build/src/matchers/component/toHaveValueEx.d.ts +1 -1
  77. package/build/src/matchers/component/toHaveValueEx.js +4 -5
  78. package/build/src/matchers/component/{toHaveErrorEx.d.ts → toHaveWarning.d.ts} +2 -2
  79. package/build/src/matchers/component/{toHaveErrorEx.js → toHaveWarning.js} +3 -3
  80. package/build/src/matchers/componentMatchers.d.ts +76 -76
  81. package/build/src/matchers/componentMatchers.js +56 -50
  82. package/build/src/matchers/createAsyncMatcher.d.ts +35 -10
  83. package/build/src/matchers/createAsyncMatcher.js +38 -13
  84. package/build/src/utils/toMatchMessage.d.ts +11 -0
  85. package/build/src/utils/toMatchMessage.js +11 -0
  86. package/package.json +1 -1
  87. package/build/src/matchers/component/toBeActiveEx.d.ts +0 -3
  88. package/build/src/matchers/component/toBeAutoEx.d.ts +0 -3
  89. package/build/src/matchers/component/toBeInactiveEx.d.ts +0 -3
  90. package/build/src/matchers/component/toBeUncheckedByIndexEx.d.ts +0 -3
  91. package/build/src/matchers/component/toBeUncheckedByTextEx.d.ts +0 -3
  92. package/build/src/matchers/component/toBeUncheckedByValueEx.d.ts +0 -3
  93. package/build/src/matchers/component/toBeUncheckedEx.d.ts +0 -3
  94. package/build/src/matchers/component/toContainItemEx.d.ts +0 -4
  95. package/build/src/matchers/component/toContainItemsEx.d.ts +0 -3
  96. package/build/src/matchers/component/toContainTabsEx.d.ts +0 -3
  97. package/build/src/matchers/component/toContainUploadedFilesEx.d.ts +0 -4
  98. package/build/src/matchers/component/toContainValueEx.d.ts +0 -3
  99. package/build/src/matchers/component/toHaveActiveTabEx.d.ts +0 -2
  100. package/build/src/matchers/component/toHaveHrefEx.d.ts +0 -3
  101. package/build/src/matchers/component/toHaveItemsEx.d.ts +0 -3
  102. package/build/src/matchers/component/toHaveWarningEx.d.ts +0 -3
  103. package/build/src/utils/is.d.ts +0 -3
  104. 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.1",
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,2 +0,0 @@
1
- import type { Tabs } from '../../components';
2
- export declare const toHaveActiveTabEx: (this: import("playwright/test").ExpectMatcherState, component: Tabs, args_0: string | RegExp) => 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>;
@@ -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;
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isComponent = void 0;
4
- var isComponent = function (component, instance) { return component instanceof instance; };
5
- exports.isComponent = isComponent;