@leaflink/dom-testing-utils 1.2.1 → 1.3.0

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/README.md CHANGED
@@ -108,6 +108,27 @@ Helper to assert and manually dismiss a notification. This is useful in scenari
108
108
 
109
109
  **Returns**: `void`
110
110
 
111
+ ### `getByDescriptionTerm`
112
+
113
+ Finds the first HTML element with the role "definition" (DD) that matches the specified text for the description term.
114
+
115
+ | **Parameters** | **Type** | **Default** | **Summary** |
116
+ | ----------- | ----------- | ----------- |----------- |
117
+ | text | `string \| RegExp` | *Required* | Expected description term text or regex |
118
+
119
+ **Returns**: `HTMLElement | undefined` - The first matching description detail element or undefined if no match is found.
120
+
121
+
122
+ ### `getAllByDescriptionTerm`
123
+
124
+ Queries and returns an array of HTML elements with the role "definition" (DD) that matches the specified text of a description term.
125
+
126
+ | **Parameters** | **Type** | **Default** | **Summary** |
127
+ | ----------- | ----------- | ----------- |----------- |
128
+ | textMatch | `string \| RegExp` | *Required* | The text to match within the HTML elements. It can be a string or a regular expression. |
129
+
130
+ **Returns**: `HTMLElement[]` - An array of HTML description detail elements that match the given text.
131
+
111
132
  ### `createFixtureGenerator`
112
133
 
113
134
  Higher order function that takes a method whose responsibility is to create a **single** data fixture object and returns a new generator function that allows you to create 1 or more of those fixtures. Fixture generator function that's returned supports passing optional `num` and `overrides` params.
package/dist/index.d.ts CHANGED
@@ -14,6 +14,21 @@ export declare function waitForLoadingToFinish(textMatch?: RegExp): Promise<void
14
14
  */
15
15
  export declare function cleanupNoty(): void;
16
16
  export declare function cleanupDropdowns(): void;
17
+ /**
18
+ * Queries and returns an array of HTML elements with the role "definition" (DD)
19
+ * that matches the specified text.
20
+ *
21
+ * @param textMatch - The text to match within the HTML elements. It can be a string or a regular expression.
22
+ * @returns An array of HTML elements that match the given text.
23
+ */
24
+ export declare function getAllByDescriptionTerm(textMatch: string | RegExp): HTMLElement[];
25
+ /**
26
+ * Finds the first HTML element with the role "definition" (DD) that matches the specified text.
27
+ *
28
+ * @param textMatch - The text to match within the HTML elements. It can be a string or a regular expression.
29
+ * @returns The matched element, or undefined if no match is found.
30
+ */
31
+ export declare function getByDescriptionTerm(textMatch: string | RegExp): HTMLElement | undefined;
17
32
  /**
18
33
  * Helper to assert and manually dismiss a notification. This is useful in scenarios where
19
34
  * cleanupNoty() does not work as expected, such as when validating error messages in test suites
@@ -41,11 +56,13 @@ export declare function assertAndDismissNoty(text: string): Promise<void>;
41
56
  * generateInvoices(10) // => Array of 10 invoice objects
42
57
  * generateInvoices(10, { foo: 'bar' }) // => Array of 10 invoice objects, override `foo` to equal `'bar'` in each
43
58
  *
44
- * @param {function} fixtureFn - Method that generates a JSON data fixture.
45
- * @returns {function}
46
- * @returns {array|object} - Array of fixture objects or single object if n = 1.
59
+ * @param fixtureFn - Method that generates a JSON data fixture.
60
+ * @returns A fixture generator that return an array of fixture objects or single object if n = 1.
47
61
  */
48
- export declare function createFixtureGenerator(fixtureFn: any): (num?: number | {
49
- [key: string]: any;
50
- }, overrides?: {}) => any;
62
+ export declare function createFixtureGenerator<T>(fixtureFn: (overrides?: Partial<T>) => T): {
63
+ (): T;
64
+ <TNum extends 1>(num: TNum, overrides?: Partial<T>): T;
65
+ <TNum_1 extends Partial<T>>(num: Partial<T>): T;
66
+ <TNum_2 extends number>(num: TNum_2, overrides?: Partial<T>): T[];
67
+ };
51
68
  export { createMockApiUtils, RestMethod };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { screen, waitForElementToBeRemoved } from '@testing-library/vue';
1
+ import { getNodeText, screen, waitForElementToBeRemoved } from '@testing-library/vue';
2
2
  import { default as userEvent } from '@testing-library/user-event';
3
3
  import { createMockApiUtils } from "./api/mockEndpoints.js";
4
4
  /**
@@ -26,6 +26,54 @@ export function cleanupDropdowns() {
26
26
  .querySelectorAll('.mount-point-container')
27
27
  .forEach((elem) => elem.parentNode?.removeChild(elem));
28
28
  }
29
+ /**
30
+ * Type guard function to check if the provided value is an instance of HTMLElement.
31
+ *
32
+ * @param element - The value to check if it is an HTMLElement.
33
+ * @returns Returns true if the value is an HTMLElement, otherwise false.
34
+ */
35
+ function isHTMLElement(element) {
36
+ return element instanceof HTMLElement;
37
+ }
38
+ /**
39
+ * Checks if the given HTML element contains the specified text or matches the regular expression.
40
+ *
41
+ * @param node - The HTML element to check for the presence of text.
42
+ * @param textMatch - The text or regular expression to match within the HTML element.
43
+ * @returns Returns one of the following:
44
+ * - true, if the element contains the exact text match;
45
+ * - RegExpMatchArray, if the element's text matches the regular expression;
46
+ * - null, if there is no match.
47
+ */
48
+ function hasText(node, textMatch) {
49
+ const nodeText = getNodeText(node);
50
+ return nodeText === textMatch || nodeText.match(textMatch);
51
+ }
52
+ /**
53
+ * Queries and returns an array of HTML elements with the role "definition" (DD)
54
+ * that matches the specified text.
55
+ *
56
+ * @param textMatch - The text to match within the HTML elements. It can be a string or a regular expression.
57
+ * @returns An array of HTML elements that match the given text.
58
+ */
59
+ export function getAllByDescriptionTerm(textMatch) {
60
+ return screen
61
+ .getAllByRole('definition')
62
+ .filter((term) => term.tagName === 'DD' && isHTMLElement(term.previousElementSibling) && hasText(term?.previousElementSibling, textMatch));
63
+ }
64
+ ;
65
+ /**
66
+ * Finds the first HTML element with the role "definition" (DD) that matches the specified text.
67
+ *
68
+ * @param textMatch - The text to match within the HTML elements. It can be a string or a regular expression.
69
+ * @returns The matched element, or undefined if no match is found.
70
+ */
71
+ export function getByDescriptionTerm(textMatch) {
72
+ return screen
73
+ .getAllByRole('definition')
74
+ .find((term) => term.tagName === 'DD' && isHTMLElement(term.previousElementSibling) && hasText(term?.previousElementSibling, textMatch));
75
+ }
76
+ ;
29
77
  /**
30
78
  * Helper to assert and manually dismiss a notification. This is useful in scenarios where
31
79
  * cleanupNoty() does not work as expected, such as when validating error messages in test suites
@@ -57,20 +105,26 @@ export async function assertAndDismissNoty(text) {
57
105
  * generateInvoices(10) // => Array of 10 invoice objects
58
106
  * generateInvoices(10, { foo: 'bar' }) // => Array of 10 invoice objects, override `foo` to equal `'bar'` in each
59
107
  *
60
- * @param {function} fixtureFn - Method that generates a JSON data fixture.
61
- * @returns {function}
62
- * @returns {array|object} - Array of fixture objects or single object if n = 1.
108
+ * @param fixtureFn - Method that generates a JSON data fixture.
109
+ * @returns A fixture generator that return an array of fixture objects or single object if n = 1.
63
110
  */
64
111
  export function createFixtureGenerator(fixtureFn) {
65
- return (num = 1, overrides = {}) => {
66
- // if passed a number of 1 or an object, we're only going to generate a
67
- // single data object and treat `num` as the overrides.
68
- if (typeof num !== 'number' || num === 1) {
112
+ function _generator(num = 1, overrides = {}) {
113
+ // if the first param is not a number, it must be the overrides
114
+ if (typeof num !== 'number') {
69
115
  return fixtureFn(num);
70
116
  }
71
- // Otherwise, let's generate however many requested data objects
72
- return Array.apply(null, Array(num)).map(() => fixtureFn(overrides));
73
- };
117
+ else if (num === 1) {
118
+ // If num is 1, then we don't want to return an array, so just generate one with any potential overrides
119
+ return fixtureFn(overrides);
120
+ }
121
+ else {
122
+ // Otherwise, let's generate however many requested data objects
123
+ return Array.apply(null, Array(num)).map(() => fixtureFn(overrides));
124
+ }
125
+ }
126
+ ;
127
+ return _generator;
74
128
  }
75
129
  export { createMockApiUtils };
76
130
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAa,MAAM,wBAAwB,CAAC;AACvE;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB,CACpC,SAAS,GAAG,8BAA8B;IAE1C,OAAO,yBAAyB,CAC9B,GAAG,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,gBAAgB,CAAC,S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;SAC7B;aAAM;YACL,gEAAgE;YAChE,OAAO,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;SACtE;IACH,CAAC;IAAA,CAAC;IAEF,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,OAAO,EAAE,kBAAkB,EAAc,CAAC"}
@@ -1,4 +1,5 @@
1
- import { createFixtureGenerator } from "./index";
1
+ import { render } from '@testing-library/vue';
2
+ import { createFixtureGenerator, getByDescriptionTerm, getAllByDescriptionTerm } from "./index";
2
3
  describe('createFixtureGenerator()', () => {
3
4
  it('returns a function that can generate an array of data objects', () => {
4
5
  const generator = (overrides) => ({
@@ -29,4 +30,29 @@ describe('createFixtureGenerator()', () => {
29
30
  expect(createFixtureGenerator(generator)({ bar: 'yak' })).toEqual({ foo: 'bar', bar: 'yak' });
30
31
  });
31
32
  });
33
+ describe('getByDescriptionTerm', () => {
34
+ it.each `
35
+ term | type
36
+ ${'foo'} | ${'string'}
37
+ ${/foo/i} | ${'regex'}
38
+ ${new RegExp('foo', 'i')} | ${'RegExp'}
39
+ `('should return the description detail for a given $type term', ({ term }) => {
40
+ render({ template: `<dl><dt>foo</dt><dd>bar</dd></dl>` });
41
+ expect(getByDescriptionTerm(term)).toHaveTextContent('bar');
42
+ });
43
+ });
44
+ describe('getAllByDescriptionTerm', () => {
45
+ it.each `
46
+ term | type
47
+ ${'foo'} | ${'string'}
48
+ ${/foo/i} | ${'regex'}
49
+ ${new RegExp('foo', 'i')} | ${'RegExp'}
50
+ `('should return the description details for a given $type term', ({ term }) => {
51
+ render({ template: `<dl><dt>foo</dt><dd>bar1</dd></dl><dl><dt>foo</dt><dd>bar2</dd></dl>` });
52
+ const details = getAllByDescriptionTerm(term);
53
+ expect(details).toHaveLength(2);
54
+ expect(details[0]).toHaveTextContent('bar1');
55
+ expect(details[1]).toHaveTextContent('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AAC,IAAI,EAAC,EAAE,EAAE;QAC1E,MAAM,CAAC,EAAE,QAAQ,EAAE,mCAAmC,EAAE,CAAC,CAAC;QAE1D,MAAM,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;IACvC,EAAE,CAAC,IAAI,CAAA;;IAEL,KAAK,MAAM,QAAQ;IACnB,MAAM,MAAM,OAAO;IACnB,IAAI,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,QAAQ;GACrC,CAAC,8DAA8D,EAAE,CAAC,EAAC,IAAI,EAAC,EAAE,EAAE;QAE3E,MAAM,CAAC,EAAE,QAAQ,EAAE,sEAAsE,EAAE,CAAC,CAAC;QAE7F,MAAM,OAAO,GAAG,uBAAuB,CAAC,IAAI,CAAC,CAAC;QAC9C,MAAM,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QAChC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;QAC7C,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflink/dom-testing-utils",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "description": "Frontend DOM testing utilities",
5
5
  "engines": {
6
6
  "node": ">=16",