@gtkx/testing 1.0.0-rc.2 → 1.0.0-rc.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 (44) hide show
  1. package/dist/bound-queries.d.ts +2 -3
  2. package/dist/bound-queries.d.ts.map +1 -1
  3. package/dist/bound-queries.js.map +1 -1
  4. package/dist/index.d.ts +7 -4
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +4 -2
  7. package/dist/index.js.map +1 -1
  8. package/dist/matchers.d.ts +81 -21
  9. package/dist/matchers.d.ts.map +1 -1
  10. package/dist/matchers.js +258 -21
  11. package/dist/matchers.js.map +1 -1
  12. package/dist/normalize.d.ts +10 -0
  13. package/dist/normalize.d.ts.map +1 -0
  14. package/dist/normalize.js +20 -0
  15. package/dist/normalize.js.map +1 -0
  16. package/dist/queries.d.ts +3 -21
  17. package/dist/queries.d.ts.map +1 -1
  18. package/dist/queries.js +46 -59
  19. package/dist/queries.js.map +1 -1
  20. package/dist/render.js +1 -1
  21. package/dist/render.js.map +1 -1
  22. package/dist/types.d.ts +29 -3
  23. package/dist/types.d.ts.map +1 -1
  24. package/dist/types.js.map +1 -1
  25. package/dist/user-event/controller.d.ts +2 -1
  26. package/dist/user-event/controller.d.ts.map +1 -1
  27. package/dist/user-event/controller.js +8 -1
  28. package/dist/user-event/controller.js.map +1 -1
  29. package/dist/widget-accessible-properties.d.ts +12 -2
  30. package/dist/widget-accessible-properties.d.ts.map +1 -1
  31. package/dist/widget-accessible-properties.js +112 -10
  32. package/dist/widget-accessible-properties.js.map +1 -1
  33. package/dist/within.js.map +1 -1
  34. package/package.json +6 -6
  35. package/src/bound-queries.ts +2 -3
  36. package/src/index.ts +11 -2
  37. package/src/matchers.ts +456 -53
  38. package/src/normalize.ts +28 -0
  39. package/src/queries.ts +78 -105
  40. package/src/render.tsx +1 -1
  41. package/src/types.ts +48 -2
  42. package/src/user-event/controller.ts +21 -1
  43. package/src/widget-accessible-properties.ts +172 -10
  44. package/src/within.ts +1 -1
@@ -1,13 +1,12 @@
1
1
  import type * as Gtk from "@gtkx/gi/gtk";
2
2
  import type { ReactNode } from "react";
3
- import type { builtinQueries } from "./queries.js";
4
3
  import type { Container } from "./traversal.js";
5
- import type { BoundCustomQueries, DebugUtilities, QueryMap } from "./types.js";
4
+ import type { BoundCustomQueries, DebugUtilities, QueryFamilies, QueryMap } from "./types.js";
6
5
  /**
7
6
  * The set of built-in queries (getBy, findBy, queryBy, and their All variants)
8
7
  * bound to a specific container.
9
8
  */
10
- type BoundQueries = BoundCustomQueries<typeof builtinQueries>;
9
+ type BoundQueries = QueryFamilies<[]>;
11
10
  /**
12
11
  * The global screen object's shape: built-in queries scoped to the current
13
12
  * toplevels, plus debug utilities.
@@ -1 +1 @@
1
- {"version":3,"file":"bound-queries.d.ts","sourceRoot":"","sources":["../src/bound-queries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,GAAG,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE/E;;;GAGG;AACH,KAAK,YAAY,GAAG,kBAAkB,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D;;;GAGG;AACH,KAAK,MAAM,GAAG,YAAY,GAAG,cAAc,CAAC;AAE5C;;;;;GAKG;AACH,KAAK,YAAY,CAAC,CAAC,SAAS,QAAQ,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,YAAY,GACvE,kBAAkB,CAAC,CAAC,CAAC,GACrB,cAAc,GAAG;IACb,0DAA0D;IAC1D,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC;IACtB,sEAAsE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AAM,EAAE,KAAK,YAAY,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"bound-queries.js","sourceRoot":"","sources":["../src/bound-queries.ts"],"names":[],"mappings":"AAoCA,OAAO,EAAqD,CAAC","sourcesContent":["import type * as Gtk from \"@gtkx/gi/gtk\";\nimport type { ReactNode } from \"react\";\nimport type { builtinQueries } from \"./queries.js\";\nimport type { Container } from \"./traversal.js\";\nimport type { BoundCustomQueries, DebugUtilities, QueryMap } from \"./types.js\";\n\n/**\n * The set of built-in queries (getBy, findBy, queryBy, and their All variants)\n * bound to a specific container.\n */\ntype BoundQueries = BoundCustomQueries<typeof builtinQueries>;\n/**\n * The global screen object's shape: built-in queries scoped to the current\n * toplevels, plus debug utilities.\n */\ntype Screen = BoundQueries & DebugUtilities;\n\n/**\n * The result of a render call: queries scoped to the rendered tree, debug\n * utilities, and controls for updating or tearing down the render.\n *\n * @typeParam Q Custom queries provided at render time, merged with the built-in ones.\n */\ntype RenderResult<Q extends QueryMap = Record<never, never>> = BoundQueries &\n BoundCustomQueries<Q> &\n DebugUtilities & {\n /** The top-level widget the element was rendered into. */\n container: Gtk.Widget;\n /** The root the queries are scoped to (defaults to all toplevels). */\n baseElement: Container;\n /** Unmounts the rendered tree and disposes its resources. */\n unmount: () => Promise<void>;\n /** Re-renders the tree with a new element, reusing the same root. */\n rerender: (element: ReactNode) => Promise<void>;\n };\n\nexport { type BoundQueries, type Screen, type RenderResult };\n"]}
1
+ {"version":3,"file":"bound-queries.js","sourceRoot":"","sources":["../src/bound-queries.ts"],"names":[],"mappings":"AAmCA,OAAO,EAAqD,CAAC","sourcesContent":["import type * as Gtk from \"@gtkx/gi/gtk\";\nimport type { ReactNode } from \"react\";\nimport type { Container } from \"./traversal.js\";\nimport type { BoundCustomQueries, DebugUtilities, QueryFamilies, QueryMap } from \"./types.js\";\n\n/**\n * The set of built-in queries (getBy, findBy, queryBy, and their All variants)\n * bound to a specific container.\n */\ntype BoundQueries = QueryFamilies<[]>;\n/**\n * The global screen object's shape: built-in queries scoped to the current\n * toplevels, plus debug utilities.\n */\ntype Screen = BoundQueries & DebugUtilities;\n\n/**\n * The result of a render call: queries scoped to the rendered tree, debug\n * utilities, and controls for updating or tearing down the render.\n *\n * @typeParam Q Custom queries provided at render time, merged with the built-in ones.\n */\ntype RenderResult<Q extends QueryMap = Record<never, never>> = BoundQueries &\n BoundCustomQueries<Q> &\n DebugUtilities & {\n /** The top-level widget the element was rendered into. */\n container: Gtk.Widget;\n /** The root the queries are scoped to (defaults to all toplevels). */\n baseElement: Container;\n /** Unmounts the rendered tree and disposes its resources. */\n unmount: () => Promise<void>;\n /** Re-renders the tree with a new element, reusing the same root. */\n rerender: (element: ReactNode) => Promise<void>;\n };\n\nexport { type BoundQueries, type Screen, type RenderResult };\n"]}
package/dist/index.d.ts CHANGED
@@ -4,11 +4,12 @@ export type { BoundQueries, RenderResult, Screen } from "./bound-queries.js";
4
4
  export type { Config, ConfigFn } from "./config.js";
5
5
  export { configure, getConfig } from "./config.js";
6
6
  export { fireEvent } from "./fire-event.js";
7
- export type { TextExpectation } from "./matchers.js";
7
+ export type { ClassExpectation, TextContentOptions, TextExpectation } from "./matchers.js";
8
8
  export { matchers, registerMatchers } from "./matchers.js";
9
+ export { getDefaultNormalizer } from "./normalize.js";
9
10
  export type { PrettyWidgetOptions } from "./pretty-widget.js";
10
11
  export { logWidget, prettyWidget } from "./pretty-widget.js";
11
- export { findAllByDisplayValue, findAllByLabelText, findAllByName, findAllByPlaceholderText, findAllByRole, findAllByText, findByDisplayValue, findByLabelText, findByName, findByPlaceholderText, findByRole, findByText, getAllByDisplayValue, getAllByLabelText, getAllByName, getAllByPlaceholderText, getAllByRole, getAllByText, getByDisplayValue, getByLabelText, getByName, getByPlaceholderText, getByRole, getByText, getDefaultNormalizer, queryAllByDisplayValue, queryAllByLabelText, queryAllByName, queryAllByPlaceholderText, queryAllByRole, queryAllByText, queryByDisplayValue, queryByLabelText, queryByName, queryByPlaceholderText, queryByRole, queryByText, } from "./queries.js";
12
+ export { findAllByDisplayValue, findAllByLabelText, findAllByName, findAllByPlaceholderText, findAllByRole, findAllByText, findByDisplayValue, findByLabelText, findByName, findByPlaceholderText, findByRole, findByText, getAllByDisplayValue, getAllByLabelText, getAllByName, getAllByPlaceholderText, getAllByRole, getAllByText, getByDisplayValue, getByLabelText, getByName, getByPlaceholderText, getByRole, getByText, queryAllByDisplayValue, queryAllByLabelText, queryAllByName, queryAllByPlaceholderText, queryAllByRole, queryAllByText, queryByDisplayValue, queryByLabelText, queryByName, queryByPlaceholderText, queryByRole, queryByText, } from "./queries.js";
12
13
  export { renderHook } from "./render-hook.js";
13
14
  export { cleanup, render } from "./render.js";
14
15
  export { formatRole, getRoles, logRoles, prettyRoles } from "./role-helpers.js";
@@ -17,10 +18,12 @@ export { captureAndSaveScreenshot, logScreenshotPath, screenshot } from "./scree
17
18
  export type { Method, Suggestion, Variant } from "./suggestions.js";
18
19
  export { getSuggestedQuery } from "./suggestions.js";
19
20
  export type { Container } from "./traversal.js";
20
- export type { ByRoleOptions, ByRoleValue, Matcher, MatcherFunction, MatcherOptions, NormalizerFn, NormalizerOptions, RenderHookOptions, RenderHookResult, RenderOptions, ScreenshotOptions, ScreenshotResult, WaitForOptions, WindowSelector, WrapperComponent, } from "./types.js";
21
+ export type { ByRoleOptions, ByRoleValue, WidgetType, Matcher, MatcherFunction, MatcherOptions, NormalizerFn, NormalizerOptions, RenderHookOptions, RenderHookResult, RenderOptions, ScreenshotOptions, ScreenshotResult, WaitForOptions, WindowSelector, WrapperComponent, } from "./types.js";
22
+ export type { ControllerConstructor } from "./user-event/controller.js";
23
+ export { getAllControllers, getController, queryAllControllers, queryController, } from "./user-event/controller.js";
21
24
  export type { DragOffset, DragOptions, DropContent, DropOptions, PointerInput, ScrollDelta, TabOptions, TypeOptions, UserEvent, } from "./user-event/index.js";
22
25
  export { userEvent } from "./user-event/index.js";
23
26
  export { waitFor, waitForElementToBeRemoved } from "./wait-for.js";
24
- export { getWidgetErrorMessage, getWidgetInvalidState, getWidgetNodeText, } from "./widget-accessible-properties.js";
27
+ export { getWidgetErrorMessage, getWidgetInvalidState, getWidgetNodeText, getWidgetTextContent, } from "./widget-accessible-properties.js";
25
28
  export { within } from "./within.js";
26
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC7E,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC3D,YAAY,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EACH,qBAAqB,EACrB,kBAAkB,EAClB,aAAa,EACb,wBAAwB,EACxB,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,UAAU,EACV,qBAAqB,EACrB,UAAU,EACV,UAAU,EACV,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,uBAAuB,EACvB,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,SAAS,EACT,oBAAoB,EACpB,SAAS,EACT,SAAS,EACT,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,EACd,yBAAyB,EACzB,cAAc,EACd,cAAc,EACd,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 -3,16 +3,18 @@ export { act } from "./act.js";
3
3
  export { configure, getConfig } from "./config.js";
4
4
  export { fireEvent } from "./fire-event.js";
5
5
  export { matchers, registerMatchers } from "./matchers.js";
6
+ export { getDefaultNormalizer } from "./normalize.js";
6
7
  export { logWidget, prettyWidget } from "./pretty-widget.js";
7
- export { findAllByDisplayValue, findAllByLabelText, findAllByName, findAllByPlaceholderText, findAllByRole, findAllByText, findByDisplayValue, findByLabelText, findByName, findByPlaceholderText, findByRole, findByText, getAllByDisplayValue, getAllByLabelText, getAllByName, getAllByPlaceholderText, getAllByRole, getAllByText, getByDisplayValue, getByLabelText, getByName, getByPlaceholderText, getByRole, getByText, getDefaultNormalizer, queryAllByDisplayValue, queryAllByLabelText, queryAllByName, queryAllByPlaceholderText, queryAllByRole, queryAllByText, queryByDisplayValue, queryByLabelText, queryByName, queryByPlaceholderText, queryByRole, queryByText, } from "./queries.js";
8
+ export { findAllByDisplayValue, findAllByLabelText, findAllByName, findAllByPlaceholderText, findAllByRole, findAllByText, findByDisplayValue, findByLabelText, findByName, findByPlaceholderText, findByRole, findByText, getAllByDisplayValue, getAllByLabelText, getAllByName, getAllByPlaceholderText, getAllByRole, getAllByText, getByDisplayValue, getByLabelText, getByName, getByPlaceholderText, getByRole, getByText, queryAllByDisplayValue, queryAllByLabelText, queryAllByName, queryAllByPlaceholderText, queryAllByRole, queryAllByText, queryByDisplayValue, queryByLabelText, queryByName, queryByPlaceholderText, queryByRole, queryByText, } from "./queries.js";
8
9
  export { renderHook } from "./render-hook.js";
9
10
  export { cleanup, render } from "./render.js";
10
11
  export { formatRole, getRoles, logRoles, prettyRoles } from "./role-helpers.js";
11
12
  export { screen } from "./screen.js";
12
13
  export { captureAndSaveScreenshot, logScreenshotPath, screenshot } from "./screenshot.js";
13
14
  export { getSuggestedQuery } from "./suggestions.js";
15
+ export { getAllControllers, getController, queryAllControllers, queryController, } from "./user-event/controller.js";
14
16
  export { userEvent } from "./user-event/index.js";
15
17
  export { waitFor, waitForElementToBeRemoved } from "./wait-for.js";
16
- export { getWidgetErrorMessage, getWidgetInvalidState, getWidgetNodeText, } from "./widget-accessible-properties.js";
18
+ export { getWidgetErrorMessage, getWidgetInvalidState, getWidgetNodeText, getWidgetTextContent, } from "./widget-accessible-properties.js";
17
19
  export { within } from "./within.js";
18
20
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAG/B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAE3D,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EACH,qBAAqB,EACrB,kBAAkB,EAClB,aAAa,EACb,wBAAwB,EACxB,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,UAAU,EACV,qBAAqB,EACrB,UAAU,EACV,UAAU,EACV,oBAAoB,EACpB,iBAAiB,EACjB,YAAY,EACZ,uBAAuB,EACvB,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,SAAS,EACT,oBAAoB,EACpB,SAAS,EACT,SAAS,EACT,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,EACd,yBAAyB,EACzB,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,sBAAsB,EACtB,WAAW,EACX,WAAW,GACd,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AA8BrD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EACH,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,GACpB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC","sourcesContent":["import \"./register-test-hooks.js\";\n\nexport { act } from \"./act.js\";\nexport type { BoundQueries, RenderResult, Screen } from \"./bound-queries.js\";\nexport type { Config, ConfigFn } from \"./config.js\";\nexport { configure, getConfig } from \"./config.js\";\nexport { fireEvent } from \"./fire-event.js\";\nexport type { TextExpectation } from \"./matchers.js\";\nexport { matchers, registerMatchers } from \"./matchers.js\";\nexport type { PrettyWidgetOptions } from \"./pretty-widget.js\";\nexport { logWidget, prettyWidget } from \"./pretty-widget.js\";\nexport {\n findAllByDisplayValue,\n findAllByLabelText,\n findAllByName,\n findAllByPlaceholderText,\n findAllByRole,\n findAllByText,\n findByDisplayValue,\n findByLabelText,\n findByName,\n findByPlaceholderText,\n findByRole,\n findByText,\n getAllByDisplayValue,\n getAllByLabelText,\n getAllByName,\n getAllByPlaceholderText,\n getAllByRole,\n getAllByText,\n getByDisplayValue,\n getByLabelText,\n getByName,\n getByPlaceholderText,\n getByRole,\n getByText,\n getDefaultNormalizer,\n queryAllByDisplayValue,\n queryAllByLabelText,\n queryAllByName,\n queryAllByPlaceholderText,\n queryAllByRole,\n queryAllByText,\n queryByDisplayValue,\n queryByLabelText,\n queryByName,\n queryByPlaceholderText,\n queryByRole,\n queryByText,\n} from \"./queries.js\";\nexport { renderHook } from \"./render-hook.js\";\nexport { cleanup, render } from \"./render.js\";\nexport { formatRole, getRoles, logRoles, prettyRoles } from \"./role-helpers.js\";\nexport { screen } from \"./screen.js\";\nexport { captureAndSaveScreenshot, logScreenshotPath, screenshot } from \"./screenshot.js\";\nexport type { Method, Suggestion, Variant } from \"./suggestions.js\";\nexport { getSuggestedQuery } from \"./suggestions.js\";\nexport type { Container } from \"./traversal.js\";\nexport type {\n ByRoleOptions,\n ByRoleValue,\n Matcher,\n MatcherFunction,\n MatcherOptions,\n NormalizerFn,\n NormalizerOptions,\n RenderHookOptions,\n RenderHookResult,\n RenderOptions,\n ScreenshotOptions,\n ScreenshotResult,\n WaitForOptions,\n WindowSelector,\n WrapperComponent,\n} from \"./types.js\";\nexport type {\n DragOffset,\n DragOptions,\n DropContent,\n DropOptions,\n PointerInput,\n ScrollDelta,\n TabOptions,\n TypeOptions,\n UserEvent,\n} from \"./user-event/index.js\";\nexport { userEvent } from \"./user-event/index.js\";\nexport { waitFor, waitForElementToBeRemoved } from \"./wait-for.js\";\nexport {\n getWidgetErrorMessage,\n getWidgetInvalidState,\n getWidgetNodeText,\n} from \"./widget-accessible-properties.js\";\nexport { within } from \"./within.js\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAG/B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD,OAAO,EAAE,SAAS,EAAE,Y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E,MAAM,aAAa,CAAC","sourcesContent":["import \"./register-test-hooks.js\";\n\nexport { act } from \"./act.js\";\nexport type { BoundQueries, RenderResult, Screen } from \"./bound-queries.js\";\nexport type { Config, ConfigFn } from \"./config.js\";\nexport { configure, getConfig } from \"./config.js\";\nexport { fireEvent } from \"./fire-event.js\";\nexport type { ClassExpectation, TextContentOptions, TextExpectation } from \"./matchers.js\";\nexport { matchers, registerMatchers } from \"./matchers.js\";\nexport { getDefaultNormalizer } from \"./normalize.js\";\nexport type { PrettyWidgetOptions } from \"./pretty-widget.js\";\nexport { logWidget, prettyWidget } from \"./pretty-widget.js\";\nexport {\n findAllByDisplayValue,\n findAllByLabelText,\n findAllByName,\n findAllByPlaceholderText,\n findAllByRole,\n findAllByText,\n findByDisplayValue,\n findByLabelText,\n findByName,\n findByPlaceholderText,\n findByRole,\n findByText,\n getAllByDisplayValue,\n getAllByLabelText,\n getAllByName,\n getAllByPlaceholderText,\n getAllByRole,\n getAllByText,\n getByDisplayValue,\n getByLabelText,\n getByName,\n getByPlaceholderText,\n getByRole,\n getByText,\n queryAllByDisplayValue,\n queryAllByLabelText,\n queryAllByName,\n queryAllByPlaceholderText,\n queryAllByRole,\n queryAllByText,\n queryByDisplayValue,\n queryByLabelText,\n queryByName,\n queryByPlaceholderText,\n queryByRole,\n queryByText,\n} from \"./queries.js\";\nexport { renderHook } from \"./render-hook.js\";\nexport { cleanup, render } from \"./render.js\";\nexport { formatRole, getRoles, logRoles, prettyRoles } from \"./role-helpers.js\";\nexport { screen } from \"./screen.js\";\nexport { captureAndSaveScreenshot, logScreenshotPath, screenshot } from \"./screenshot.js\";\nexport type { Method, Suggestion, Variant } from \"./suggestions.js\";\nexport { getSuggestedQuery } from \"./suggestions.js\";\nexport type { Container } from \"./traversal.js\";\nexport type {\n ByRoleOptions,\n ByRoleValue,\n WidgetType,\n Matcher,\n MatcherFunction,\n MatcherOptions,\n NormalizerFn,\n NormalizerOptions,\n RenderHookOptions,\n RenderHookResult,\n RenderOptions,\n ScreenshotOptions,\n ScreenshotResult,\n WaitForOptions,\n WindowSelector,\n WrapperComponent,\n} from \"./types.js\";\nexport type { ControllerConstructor } from \"./user-event/controller.js\";\nexport {\n getAllControllers,\n getController,\n queryAllControllers,\n queryController,\n} from \"./user-event/controller.js\";\nexport type {\n DragOffset,\n DragOptions,\n DropContent,\n DropOptions,\n PointerInput,\n ScrollDelta,\n TabOptions,\n TypeOptions,\n UserEvent,\n} from \"./user-event/index.js\";\nexport { userEvent } from \"./user-event/index.js\";\nexport { waitFor, waitForElementToBeRemoved } from \"./wait-for.js\";\nexport {\n getWidgetErrorMessage,\n getWidgetInvalidState,\n getWidgetNodeText,\n getWidgetTextContent,\n} from \"./widget-accessible-properties.js\";\nexport { within } from \"./within.js\";\n"]}
@@ -1,59 +1,119 @@
1
+ import * as Gtk from "@gtkx/gi/gtk";
1
2
  /** The expected value for a text matcher: an exact string or a regular expression. */
2
3
  type TextExpectation = string | RegExp;
4
+ /** Options controlling how `toHaveTextContent` normalizes the text it reads. */
5
+ type TextContentOptions = {
6
+ /**
7
+ * When true (the default), trim the text and collapse runs of whitespace into single spaces
8
+ * before comparing. When false, only replace non-breaking spaces with regular ones.
9
+ */
10
+ normalizeWhitespace?: boolean | undefined;
11
+ };
12
+ /** The expected value for a style class: an exact class name or a regular expression. */
13
+ type ClassExpectation = string | RegExp;
3
14
  type MatcherResult = {
4
15
  pass: boolean;
5
16
  message: () => string;
6
17
  };
18
+ type MatcherContext = {
19
+ equals: (actual: unknown, expected: unknown) => boolean;
20
+ };
7
21
  type TextMatcher = (received: unknown, expected?: TextExpectation) => MatcherResult;
8
22
  type StateMatcher = (received: unknown) => MatcherResult;
9
- type ValueMatcher = (received: unknown, expected: number) => MatcherResult;
23
+ type TextContentMatcher = (received: unknown, expected?: TextExpectation, options?: TextContentOptions) => MatcherResult;
10
24
  type MatcherImplementations = {
11
25
  toHaveDisplayValue: TextMatcher;
12
- toHaveTextContent: TextMatcher;
26
+ toHaveTextContent: TextContentMatcher;
13
27
  toHaveAccessibleName: TextMatcher;
28
+ toHaveAccessibleDescription: TextMatcher;
29
+ toHaveAccessibleErrorMessage: TextMatcher;
14
30
  toHavePlaceholderText: TextMatcher;
31
+ toHaveSelection: TextMatcher;
15
32
  toBeChecked: StateMatcher;
33
+ toBePartiallyChecked: StateMatcher;
16
34
  toBePressed: StateMatcher;
17
35
  toBeExpanded: StateMatcher;
18
36
  toBeSelected: StateMatcher;
19
- toHaveValue: ValueMatcher;
37
+ toBeDisabled: StateMatcher;
38
+ toBeEnabled: StateMatcher;
39
+ toBeVisible: StateMatcher;
40
+ toBeRooted: StateMatcher;
41
+ toBeEmpty: StateMatcher;
42
+ toBeInvalid: StateMatcher;
43
+ toBeValid: StateMatcher;
44
+ toBeRequired: StateMatcher;
45
+ toHaveFocus: StateMatcher;
46
+ toHaveValue: (received: unknown, expected?: number | string) => MatcherResult;
47
+ toHaveRole: (received: unknown, expected: Gtk.AccessibleRole) => MatcherResult;
48
+ toContainElement: (received: unknown, descendant: Gtk.Widget | null) => MatcherResult;
49
+ toHaveClass: (received: unknown, ...args: unknown[]) => MatcherResult;
50
+ toHaveObjectProperty: (this: MatcherContext, received: unknown, ...args: unknown[]) => MatcherResult;
20
51
  };
21
- declare const toHaveDisplayValue: TextMatcher;
22
- declare const toHaveTextContent: TextMatcher;
23
52
  declare const toHaveAccessibleName: TextMatcher;
53
+ declare const toHaveAccessibleDescription: TextMatcher;
54
+ declare const toHaveAccessibleErrorMessage: TextMatcher;
24
55
  declare const toHavePlaceholderText: TextMatcher;
25
- declare const toBeChecked: StateMatcher;
56
+ declare const toHaveSelection: TextMatcher;
26
57
  declare const toBePressed: StateMatcher;
27
58
  declare const toBeExpanded: StateMatcher;
28
59
  declare const toBeSelected: StateMatcher;
60
+ declare const toBeRequired: StateMatcher;
29
61
  /** The widget assertion matchers keyed by name, suitable for passing to `expect.extend`. */
30
62
  declare const matchers: MatcherImplementations;
31
- declare function toHaveValue(received: unknown, expected: number): MatcherResult;
63
+ declare function toHaveTextContent(received: unknown, expected?: TextExpectation, options?: TextContentOptions): MatcherResult;
64
+ declare function toBeChecked(received: unknown): MatcherResult;
65
+ declare function toBePartiallyChecked(received: unknown): MatcherResult;
66
+ declare function toHaveDisplayValue(received: unknown, expected?: TextExpectation): MatcherResult;
67
+ declare function toHaveValue(received: unknown, expected?: number | string): MatcherResult;
68
+ declare function toBeDisabled(received: unknown): MatcherResult;
69
+ declare function toBeEnabled(received: unknown): MatcherResult;
70
+ declare function toBeVisible(received: unknown): MatcherResult;
71
+ declare function toBeRooted(received: unknown): MatcherResult;
72
+ declare function toBeEmpty(received: unknown): MatcherResult;
73
+ declare function toBeInvalid(received: unknown): MatcherResult;
74
+ declare function toBeValid(received: unknown): MatcherResult;
75
+ declare function toHaveFocus(received: unknown): MatcherResult;
76
+ declare function toHaveRole(received: unknown, expected: Gtk.AccessibleRole): MatcherResult;
77
+ declare function toContainElement(received: unknown, descendant: Gtk.Widget | null): MatcherResult;
78
+ declare function toHaveClass(received: unknown, ...args: unknown[]): MatcherResult;
79
+ declare function toHaveObjectProperty(this: MatcherContext, received: unknown, ...args: unknown[]): MatcherResult;
32
80
  /** Registers the widget matchers on the global `expect`, when one is available. Safe to call more than once. */
33
81
  declare const registerMatchers: () => void;
34
82
  declare module "@vitest/expect" {
35
- interface Assertion {
83
+ interface WidgetMatchers {
36
84
  toHaveDisplayValue(expected?: TextExpectation): void;
37
- toHaveTextContent(expected?: TextExpectation): void;
85
+ toHaveTextContent(expected?: TextExpectation, options?: TextContentOptions): void;
38
86
  toHaveAccessibleName(expected?: TextExpectation): void;
87
+ toHaveAccessibleDescription(expected?: TextExpectation): void;
88
+ toHaveAccessibleErrorMessage(expected?: TextExpectation): void;
39
89
  toHavePlaceholderText(expected?: TextExpectation): void;
90
+ toHaveSelection(expected?: TextExpectation): void;
40
91
  toBeChecked(): void;
92
+ toBePartiallyChecked(): void;
41
93
  toBePressed(): void;
42
94
  toBeExpanded(): void;
43
95
  toBeSelected(): void;
44
- toHaveValue(expected: number): void;
96
+ toBeDisabled(): void;
97
+ toBeEnabled(): void;
98
+ toBeVisible(): void;
99
+ toBeRooted(): void;
100
+ toBeEmpty(): void;
101
+ toBeInvalid(): void;
102
+ toBeValid(): void;
103
+ toBeRequired(): void;
104
+ toHaveFocus(): void;
105
+ toHaveValue(expected?: number | string): void;
106
+ toHaveRole(expected: Gtk.AccessibleRole): void;
107
+ toContainElement(descendant: Gtk.Widget | null): void;
108
+ toHaveClass(...args: (ClassExpectation | {
109
+ exact: boolean;
110
+ })[]): void;
111
+ toHaveObjectProperty(name: string, expected?: unknown): void;
45
112
  }
46
- interface AsymmetricMatchersContaining {
47
- toHaveDisplayValue(expected?: TextExpectation): void;
48
- toHaveTextContent(expected?: TextExpectation): void;
49
- toHaveAccessibleName(expected?: TextExpectation): void;
50
- toHavePlaceholderText(expected?: TextExpectation): void;
51
- toBeChecked(): void;
52
- toBePressed(): void;
53
- toBeExpanded(): void;
54
- toBeSelected(): void;
55
- toHaveValue(expected: number): void;
113
+ interface Assertion extends WidgetMatchers {
114
+ }
115
+ interface AsymmetricMatchersContaining extends WidgetMatchers {
56
116
  }
57
117
  }
58
- export { toHaveDisplayValue, toHaveTextContent, toHaveAccessibleName, toHavePlaceholderText, toBeChecked, toBePressed, toBeExpanded, toBeSelected, matchers, toHaveValue, registerMatchers, type TextExpectation, };
118
+ export { toHaveDisplayValue, toHaveTextContent, toHaveAccessibleName, toHaveAccessibleDescription, toHaveAccessibleErrorMessage, toHavePlaceholderText, toHaveSelection, toBeChecked, toBePartiallyChecked, toBePressed, toBeExpanded, toBeSelected, toBeDisabled, toBeEnabled, toBeVisible, toBeRooted, toBeEmpty, toBeInvalid, toBeValid, toBeRequired, toHaveFocus, toHaveValue, toHaveRole, toContainElement, toHaveClass, toHaveObjectProperty, matchers, registerMatchers, type ClassExpectation, type TextContentOptions, type TextExpectation, };
59
119
  //# sourceMappingURL=matchers.d.ts.map
@@ -1 +1 @@
1
- {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