@axinom/mosaic-e2e-ui-selectors 0.5.9-rc.16 → 0.5.9-rc.17

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.
@@ -10,7 +10,7 @@ export declare class InlineMenu extends Actions {
10
10
  * @param parent The parent playwright page, frame or component model.
11
11
  * @param xpath A relative xpath selector to this element from the parent. Default: '//*[@data-test-id="inline-menu-button"]'.
12
12
  */
13
- constructor(parent: Page | FrameLocator | ComponentModel, xpath?: string);
13
+ constructor(parent: Page | FrameLocator | ComponentModel, xpath?: string, nth?: number);
14
14
  /** A locator to the button that opens the inline menu. */
15
15
  readonly openButton: import("playwright-core").Locator;
16
16
  /** This method waits for the menu to close. This can be useful to wait for actions to complete. */
@@ -1 +1 @@
1
- {"version":3,"file":"inline-menu.d.ts","sourceRoot":"","sources":["../../src/component-models/inline-menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;GAEG;AACH,qBAAa,UAAW,SAAQ,OAAO;IACrC;;;;OAIG;gBAED,MAAM,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,EAC5C,KAAK,SAA4C;IAMnD,0DAA0D;IAC1D,QAAQ,CAAC,UAAU,oCAAqB;IAExC,mGAAmG;IAC7F,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;CAGpC"}
1
+ {"version":3,"file":"inline-menu.d.ts","sourceRoot":"","sources":["../../src/component-models/inline-menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;GAEG;AACH,qBAAa,UAAW,SAAQ,OAAO;IACrC;;;;OAIG;gBAED,MAAM,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,EAC5C,KAAK,SAA4C,EACjD,GAAG,CAAC,EAAE,MAAM;IAMd,0DAA0D;IAC1D,QAAQ,CAAC,UAAU,oCAAqB;IAExC,mGAAmG;IAC7F,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;CAGpC"}
@@ -12,11 +12,11 @@ class InlineMenu extends actions_1.Actions {
12
12
  * @param parent The parent playwright page, frame or component model.
13
13
  * @param xpath A relative xpath selector to this element from the parent. Default: '//*[@data-test-id="inline-menu-button"]'.
14
14
  */
15
- constructor(parent, xpath = '//*[@data-test-id="inline-menu-button"]') {
15
+ constructor(parent, xpath = '//*[@data-test-id="inline-menu-button"]', nth) {
16
16
  super(parent, `${xpath}/following-sibling::*[@data-test-id="inline-menu"]`);
17
17
  /** A locator to the button that opens the inline menu. */
18
18
  this.openButton = this.getLocator();
19
- this.openButton = new component_model_1.ComponentModel(parent, xpath).getLocator();
19
+ this.openButton = new component_model_1.ComponentModel(parent, xpath, nth).getLocator();
20
20
  }
21
21
  /** This method waits for the menu to close. This can be useful to wait for actions to complete. */
22
22
  async waitForClose() {
@@ -1 +1 @@
1
- {"version":3,"file":"inline-menu.js","sourceRoot":"","sources":["../../src/component-models/inline-menu.ts"],"names":[],"mappings":";;;AACA,wDAAoD;AACpD,uCAAoC;AAEpC;;GAEG;AACH,MAAa,UAAW,SAAQ,iBAAO;IACrC;;;;OAIG;IACH,YACE,MAA4C,EAC5C,KAAK,GAAG,yCAAyC;QAEjD,KAAK,CAAC,MAAM,EAAE,GAAG,KAAK,oDAAoD,CAAC,CAAC;QAI9E,0DAA0D;QACjD,eAAU,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAJtC,IAAI,CAAC,UAAU,GAAG,IAAI,gCAAc,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,UAAU,EAAE,CAAC;IACnE,CAAC;IAKD,mGAAmG;IACnG,KAAK,CAAC,YAAY;QAChB,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;IACvD,CAAC;CACF;AArBD,gCAqBC"}
1
+ {"version":3,"file":"inline-menu.js","sourceRoot":"","sources":["../../src/component-models/inline-menu.ts"],"names":[],"mappings":";;;AACA,wDAAoD;AACpD,uCAAoC;AAEpC;;GAEG;AACH,MAAa,UAAW,SAAQ,iBAAO;IACrC;;;;OAIG;IACH,YACE,MAA4C,EAC5C,KAAK,GAAG,yCAAyC,EACjD,GAAY;QAEZ,KAAK,CAAC,MAAM,EAAE,GAAG,KAAK,oDAAoD,CAAC,CAAC;QAI9E,0DAA0D;QACjD,eAAU,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAJtC,IAAI,CAAC,UAAU,GAAG,IAAI,gCAAc,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC,UAAU,EAAE,CAAC;IACxE,CAAC;IAKD,mGAAmG;IACnG,KAAK,CAAC,YAAY;QAChB,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;IACvD,CAAC;CACF;AAtBD,gCAsBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axinom/mosaic-e2e-ui-selectors",
3
- "version": "0.5.9-rc.16",
3
+ "version": "0.5.9-rc.17",
4
4
  "description": "Component models for testing Axinom Mosaic applications with Playwright.",
5
5
  "author": "Axinom",
6
6
  "license": "PROPRIETARY",
@@ -32,5 +32,5 @@
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "gitHead": "83f6ac3d68fa7a58334ef4ef9289110beb5c5e89"
35
+ "gitHead": "451db68155626fe790c97537128817419678f637"
36
36
  }
@@ -14,9 +14,10 @@ export class InlineMenu extends Actions {
14
14
  constructor(
15
15
  parent: Page | FrameLocator | ComponentModel,
16
16
  xpath = '//*[@data-test-id="inline-menu-button"]',
17
+ nth?: number,
17
18
  ) {
18
19
  super(parent, `${xpath}/following-sibling::*[@data-test-id="inline-menu"]`);
19
- this.openButton = new ComponentModel(parent, xpath).getLocator();
20
+ this.openButton = new ComponentModel(parent, xpath, nth).getLocator();
20
21
  }
21
22
 
22
23
  /** A locator to the button that opens the inline menu. */