@axinom/mosaic-e2e-ui-selectors 0.16.11 → 0.16.12-rc.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.
@@ -12,6 +12,24 @@ export declare class Filters extends ComponentModel {
12
12
  * @param xpath A relative xpath selector to this element from the parent.
13
13
  */
14
14
  constructor(parent: Page | FrameLocator | ComponentModel, xpath?: string);
15
+ /** A locator to the button which expands/collapses the filters list. */
16
+ readonly toggleButton: import("playwright-core").Locator;
17
+ /** A locator to the label shown next to the toggle button only while the filters list is expanded. */
18
+ readonly filtersCount: import("playwright-core").Locator;
19
+ /** This method gets whether the filters list is currently expanded. */
20
+ isExpanded(): Promise<boolean>;
21
+ /**
22
+ * This method expands the filters list if it is currently collapsed, and
23
+ * waits for the expansion to complete. If the list is already expanded,
24
+ * this method does nothing.
25
+ */
26
+ expand(): Promise<void>;
27
+ /**
28
+ * This method collapses the filters list if it is currently expanded, and
29
+ * waits for the collapse to complete. If the list is already collapsed,
30
+ * this method does nothing.
31
+ */
32
+ collapse(): Promise<void>;
15
33
  /**
16
34
  * This method gets a filter by position. Position is 1 indexed. Negative numbers count from the end.
17
35
  * @param position The 1-indexed position among all descendent filters.
@@ -1 +1 @@
1
- {"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../../src/component-models/filters/filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD;;;GAGG;AACH,qBAAa,OAAQ,SAAQ,cAAc;IACzC;;;;OAIG;gBAED,MAAM,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,EAC5C,KAAK,SAAiC;IAKxC;;;;OAIG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,aAAa;IAQ1C;;;;;OAKG;IACH,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,SAAI,GAAG,aAAa;IAQ7D;;;OAGG;IACH,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa;CAM/C"}
1
+ {"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../../src/component-models/filters/filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD;;;GAGG;AACH,qBAAa,OAAQ,SAAQ,cAAc;IACzC;;;;OAIG;gBAED,MAAM,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,EAC5C,KAAK,SAAiC;IAKxC,wEAAwE;IACxE,QAAQ,CAAC,YAAY,oCAEnB;IAEF,sGAAsG;IACtG,QAAQ,CAAC,YAAY,oCAAyD;IAE9E,uEAAuE;IACjE,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC;IAKpC;;;;OAIG;IACG,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ7B;;;;OAIG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ/B;;;;OAIG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,aAAa;IAQ1C;;;;;OAKG;IACH,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,SAAI,GAAG,aAAa;IAQ7D;;;OAGG;IACH,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa;CAM/C"}
@@ -15,6 +15,39 @@ class Filters extends component_model_js_1.ComponentModel {
15
15
  */
16
16
  constructor(parent, xpath = '//*[@data-test-id="filters"]') {
17
17
  super(parent, xpath);
18
+ /** A locator to the button which expands/collapses the filters list. */
19
+ this.toggleButton = this.getLocator('//*[@data-test-id="filters-toggle"]');
20
+ /** A locator to the label shown next to the toggle button only while the filters list is expanded. */
21
+ this.filtersCount = this.getLocator('//*[@data-test-id="filters-count"]');
22
+ }
23
+ /** This method gets whether the filters list is currently expanded. */
24
+ async isExpanded() {
25
+ const title = await this.toggleButton.getAttribute('title');
26
+ return title === 'Collapse filters';
27
+ }
28
+ /**
29
+ * This method expands the filters list if it is currently collapsed, and
30
+ * waits for the expansion to complete. If the list is already expanded,
31
+ * this method does nothing.
32
+ */
33
+ async expand() {
34
+ if (await this.isExpanded()) {
35
+ return;
36
+ }
37
+ await this.toggleButton.click();
38
+ await this.filtersCount.waitFor({ state: 'visible' });
39
+ }
40
+ /**
41
+ * This method collapses the filters list if it is currently expanded, and
42
+ * waits for the collapse to complete. If the list is already collapsed,
43
+ * this method does nothing.
44
+ */
45
+ async collapse() {
46
+ if (!(await this.isExpanded())) {
47
+ return;
48
+ }
49
+ await this.toggleButton.click();
50
+ await this.filtersCount.waitFor({ state: 'hidden' });
18
51
  }
19
52
  /**
20
53
  * This method gets a filter by position. Position is 1 indexed. Negative numbers count from the end.
@@ -1 +1 @@
1
- {"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../src/component-models/filters/filters.ts"],"names":[],"mappings":";;;AACA,iEAA0D;AAC1D,2DAAoD;AAEpD;;;GAGG;AACH,MAAa,OAAQ,SAAQ,mCAAc;IACzC;;;;OAIG;IACH,YACE,MAA4C,EAC5C,KAAK,GAAG,8BAA8B;QAEtC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,SAAS,CAAC,QAAgB;QACxB,OAAO,IAAI,iCAAa,CACtB,IAAI,EACJ,4CAA4C,EAC5C,QAAQ,CACT,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,eAAe,CAAC,YAAoB,EAAE,GAAG,GAAG,CAAC;QAC3C,OAAO,IAAI,iCAAa,CACtB,IAAI,EACJ,6BAA6B,YAAY,IAAI,EAC7C,GAAG,CACJ,C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AAC;QAChC,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;IACvD,CAAC;IAED;;;;OAIG;IACH,SAAS,CAAC,QAAgB;QACxB,OAAO,IAAI,iCAAa,CACtB,IAAI,EACJ,4CAA4C,EAC5C,QAAQ,CACT,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,eAAe,CAAC,YAAoB,EAAE,GAAG,GAAG,CAAC;QAC3C,OAAO,IAAI,iCAAa,CACtB,IAAI,EACJ,6BAA6B,YAAY,IAAI,EAC7C,GAAG,CACJ,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,gBAAgB,CAAC,KAAa;QAC5B,OAAO,IAAI,iCAAa,CACtB,IAAI,EACJ,+FAA+F,KAAK,KAAK,CAC1G,CAAC;IACJ,CAAC;CACF;AA1FD,0BA0FC"}
@@ -12,6 +12,24 @@ export declare class Filters extends ComponentModel {
12
12
  * @param xpath A relative xpath selector to this element from the parent.
13
13
  */
14
14
  constructor(parent: Page | FrameLocator | ComponentModel, xpath?: string);
15
+ /** A locator to the button which expands/collapses the filters list. */
16
+ readonly toggleButton: import("playwright-core").Locator;
17
+ /** A locator to the label shown next to the toggle button only while the filters list is expanded. */
18
+ readonly filtersCount: import("playwright-core").Locator;
19
+ /** This method gets whether the filters list is currently expanded. */
20
+ isExpanded(): Promise<boolean>;
21
+ /**
22
+ * This method expands the filters list if it is currently collapsed, and
23
+ * waits for the expansion to complete. If the list is already expanded,
24
+ * this method does nothing.
25
+ */
26
+ expand(): Promise<void>;
27
+ /**
28
+ * This method collapses the filters list if it is currently expanded, and
29
+ * waits for the collapse to complete. If the list is already collapsed,
30
+ * this method does nothing.
31
+ */
32
+ collapse(): Promise<void>;
15
33
  /**
16
34
  * This method gets a filter by position. Position is 1 indexed. Negative numbers count from the end.
17
35
  * @param position The 1-indexed position among all descendent filters.
@@ -1 +1 @@
1
- {"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../../src/component-models/filters/filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD;;;GAGG;AACH,qBAAa,OAAQ,SAAQ,cAAc;IACzC;;;;OAIG;gBAED,MAAM,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,EAC5C,KAAK,SAAiC;IAKxC;;;;OAIG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,aAAa;IAQ1C;;;;;OAKG;IACH,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,SAAI,GAAG,aAAa;IAQ7D;;;OAGG;IACH,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa;CAM/C"}
1
+ {"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../../../src/component-models/filters/filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD;;;GAGG;AACH,qBAAa,OAAQ,SAAQ,cAAc;IACzC;;;;OAIG;gBAED,MAAM,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,EAC5C,KAAK,SAAiC;IAKxC,wEAAwE;IACxE,QAAQ,CAAC,YAAY,oCAEnB;IAEF,sGAAsG;IACtG,QAAQ,CAAC,YAAY,oCAAyD;IAE9E,uEAAuE;IACjE,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC;IAKpC;;;;OAIG;IACG,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ7B;;;;OAIG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ/B;;;;OAIG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,aAAa;IAQ1C;;;;;OAKG;IACH,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,SAAI,GAAG,aAAa;IAQ7D;;;OAGG;IACH,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa;CAM/C"}
@@ -13,6 +13,39 @@ export class Filters extends ComponentModel {
13
13
  */
14
14
  constructor(parent, xpath = '//*[@data-test-id="filters"]') {
15
15
  super(parent, xpath);
16
+ /** A locator to the button which expands/collapses the filters list. */
17
+ this.toggleButton = this.getLocator('//*[@data-test-id="filters-toggle"]');
18
+ /** A locator to the label shown next to the toggle button only while the filters list is expanded. */
19
+ this.filtersCount = this.getLocator('//*[@data-test-id="filters-count"]');
20
+ }
21
+ /** This method gets whether the filters list is currently expanded. */
22
+ async isExpanded() {
23
+ const title = await this.toggleButton.getAttribute('title');
24
+ return title === 'Collapse filters';
25
+ }
26
+ /**
27
+ * This method expands the filters list if it is currently collapsed, and
28
+ * waits for the expansion to complete. If the list is already expanded,
29
+ * this method does nothing.
30
+ */
31
+ async expand() {
32
+ if (await this.isExpanded()) {
33
+ return;
34
+ }
35
+ await this.toggleButton.click();
36
+ await this.filtersCount.waitFor({ state: 'visible' });
37
+ }
38
+ /**
39
+ * This method collapses the filters list if it is currently expanded, and
40
+ * waits for the collapse to complete. If the list is already collapsed,
41
+ * this method does nothing.
42
+ */
43
+ async collapse() {
44
+ if (!(await this.isExpanded())) {
45
+ return;
46
+ }
47
+ await this.toggleButton.click();
48
+ await this.filtersCount.waitFor({ state: 'hidden' });
16
49
  }
17
50
  /**
18
51
  * This method gets a filter by position. Position is 1 indexed. Negative numbers count from the end.
@@ -1 +1 @@
1
- {"version":3,"file":"filters.js","sourceRoot":"","sources":["../../../../src/component-models/filters/filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,cAAc,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selectors",
3
- "version": "0.16.11",
3
+ "version": "0.16.12-rc.0",
4
4
  "description": "Component models for testing Axinom Mosaic applications with Playwright.",
5
5
  "author": "Axinom",
6
6
  "license": "PROPRIETARY",
@@ -62,5 +62,5 @@
62
62
  "publishConfig": {
63
63
  "access": "public"
64
64
  },
65
- "gitHead": "c423aeda79f59de31422cd52d9821d1b8214c3df"
65
+ "gitHead": "cc1db386b244c6249b973ad548097be3d13a7cbe"
66
66
  }
@@ -19,6 +19,46 @@ export class Filters extends ComponentModel {
19
19
  super(parent, xpath);
20
20
  }
21
21
 
22
+ /** A locator to the button which expands/collapses the filters list. */
23
+ readonly toggleButton = this.getLocator(
24
+ '//*[@data-test-id="filters-toggle"]',
25
+ );
26
+
27
+ /** A locator to the label shown next to the toggle button only while the filters list is expanded. */
28
+ readonly filtersCount = this.getLocator('//*[@data-test-id="filters-count"]');
29
+
30
+ /** This method gets whether the filters list is currently expanded. */
31
+ async isExpanded(): Promise<boolean> {
32
+ const title = await this.toggleButton.getAttribute('title');
33
+ return title === 'Collapse filters';
34
+ }
35
+
36
+ /**
37
+ * This method expands the filters list if it is currently collapsed, and
38
+ * waits for the expansion to complete. If the list is already expanded,
39
+ * this method does nothing.
40
+ */
41
+ async expand(): Promise<void> {
42
+ if (await this.isExpanded()) {
43
+ return;
44
+ }
45
+ await this.toggleButton.click();
46
+ await this.filtersCount.waitFor({ state: 'visible' });
47
+ }
48
+
49
+ /**
50
+ * This method collapses the filters list if it is currently expanded, and
51
+ * waits for the collapse to complete. If the list is already collapsed,
52
+ * this method does nothing.
53
+ */
54
+ async collapse(): Promise<void> {
55
+ if (!(await this.isExpanded())) {
56
+ return;
57
+ }
58
+ await this.toggleButton.click();
59
+ await this.filtersCount.waitFor({ state: 'hidden' });
60
+ }
61
+
22
62
  /**
23
63
  * This method gets a filter by position. Position is 1 indexed. Negative numbers count from the end.
24
64
  * @param position The 1-indexed position among all descendent filters.