@axinom/mosaic-e2e-ui-selectors 0.5.9-rc.2 → 0.5.9-rc.20

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.
@@ -0,0 +1,16 @@
1
+ import { FrameLocator, Page } from 'playwright-core';
2
+ import { ComponentModel } from '../component-model';
3
+ /**
4
+ * A model for a Button.
5
+ */
6
+ export declare class Button extends ComponentModel {
7
+ /**
8
+ * A model for a Button.
9
+ * @param parent The parent playwright page, frame or component.
10
+ * @param xpath A relative xpath selector to this element from the parent.
11
+ */
12
+ constructor(parent: Page | FrameLocator | ComponentModel, xpath?: string);
13
+ /** A locator for an inline menu button. */
14
+ readonly inlineMenuButton: import("playwright-core").Locator;
15
+ }
16
+ //# sourceMappingURL=button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/component-models/button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;GAEG;AACH,qBAAa,MAAO,SAAQ,cAAc;IACxC;;;;OAIG;gBACS,MAAM,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,EAAE,KAAK,SAAK;IAIpE,2CAA2C;IAC3C,QAAQ,CAAC,gBAAgB,oCAEvB;CACH"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Button = void 0;
4
+ const component_model_1 = require("../component-model");
5
+ /**
6
+ * A model for a Button.
7
+ */
8
+ class Button extends component_model_1.ComponentModel {
9
+ /**
10
+ * A model for a Button.
11
+ * @param parent The parent playwright page, frame or component.
12
+ * @param xpath A relative xpath selector to this element from the parent.
13
+ */
14
+ constructor(parent, xpath = '') {
15
+ super(parent, xpath);
16
+ /** A locator for an inline menu button. */
17
+ this.inlineMenuButton = this.getLocator('//*[@data-test-id="inline-menu-button"]');
18
+ }
19
+ }
20
+ exports.Button = Button;
21
+ //# sourceMappingURL=button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.js","sourceRoot":"","sources":["../../src/component-models/button.ts"],"names":[],"mappings":";;;AACA,wDAAoD;AAEpD;;GAEG;AACH,MAAa,MAAO,SAAQ,gCAAc;IACxC;;;;OAIG;IACH,YAAY,MAA4C,EAAE,KAAK,GAAG,EAAE;QAClE,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAGvB,2CAA2C;QAClC,qBAAgB,GAAG,IAAI,CAAC,UAAU,CACzC,yCAAyC,CAC1C,CAAC;IALF,CAAC;CAMF;AAdD,wBAcC"}
@@ -1,5 +1,6 @@
1
1
  export * from './accordion';
2
2
  export * from './actions';
3
+ export * from './button';
3
4
  export * from './dynamic-data-list';
4
5
  export * from './filters';
5
6
  export * from './form';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/component-models/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/component-models/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC"}
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./accordion"), exports);
18
18
  __exportStar(require("./actions"), exports);
19
+ __exportStar(require("./button"), exports);
19
20
  __exportStar(require("./dynamic-data-list"), exports);
20
21
  __exportStar(require("./filters"), exports);
21
22
  __exportStar(require("./form"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/component-models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,4CAA0B;AAC1B,sDAAoC;AACpC,4CAA0B;AAC1B,yCAAuB;AACvB,8CAA4B;AAC5B,+CAA6B;AAC7B,gDAA8B;AAC9B,wDAAsC;AACtC,uDAAqC;AACrC,yCAAuB;AACvB,6CAA2B;AAC3B,2CAAyB;AACzB,gDAA8B;AAC9B,0CAAwB;AACxB,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/component-models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,4CAA0B;AAC1B,2CAAyB;AACzB,sDAAoC;AACpC,4CAA0B;AAC1B,yCAAuB;AACvB,8CAA4B;AAC5B,+CAA6B;AAC7B,gDAA8B;AAC9B,wDAAsC;AACtC,uDAAqC;AACrC,yCAAuB;AACvB,6CAA2B;AAC3B,2CAAyB;AACzB,gDAA8B;AAC9B,0CAAwB;AACxB,gDAA8B"}
@@ -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"}
@@ -1,5 +1,5 @@
1
1
  import { Page } from 'playwright-core';
2
- import { Accordion, Actions, Filters, Form, Hub, InfoPanel, List, MessageBar, PageHeader } from './component-models';
2
+ import { Accordion, Actions, Button, Filters, Form, Hub, InfoPanel, List, MessageBar, PageHeader } from './component-models';
3
3
  /** A model representing the Mosaic UI. */
4
4
  export declare class UiWorkflowsModel {
5
5
  /** The playwright page object. */
@@ -25,5 +25,7 @@ export declare class UiWorkflowsModel {
25
25
  readonly accordion: Accordion;
26
26
  /** A model for a navigation hub. */
27
27
  readonly hub: Hub;
28
+ /** A model for a button. */
29
+ readonly button: Button;
28
30
  }
29
31
  //# sourceMappingURL=ui-workflows-model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui-workflows-model.d.ts","sourceRoot":"","sources":["../src/ui-workflows-model.ts"],"names":[],"mappings":"AAAA,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U,aAA6B;IAEhD,kEAAkE;IAClE,QAAQ,CAAC,UAAU,aAA6B;IAEhD,0BAA0B;IAC1B,QAAQ,CAAC,IAAI,OAAuB;IAEpC,2EAA2E;IAC3E,QAAQ,CAAC,SAAS,YAA4B;IAE9C,qCAAqC;IACrC,QAAQ,CAAC,OAAO,UAA0B;IAE1C,sEAAsE;IACtE,QAAQ,CAAC,OAAO,UAA0B;IAE1C,8CAA8C;IAC9C,QAAQ,CAAC,IAAI,OAAuB;IAEpC,iCAAiC;IACjC,QAAQ,CAAC,SAAS,YAA4B;IAE9C,oCAAoC;IACpC,QAAQ,CAAC,GAAG,MAAsB;IAElC,4BAA4B;IAC5B,QAAQ,CAAC,MAAM,SAAyB;CACzC"}
@@ -26,6 +26,8 @@ class UiWorkflowsModel {
26
26
  this.accordion = new component_models_1.Accordion(this.page);
27
27
  /** A model for a navigation hub. */
28
28
  this.hub = new component_models_1.Hub(this.page);
29
+ /** A model for a button. */
30
+ this.button = new component_models_1.Button(this.page);
29
31
  }
30
32
  }
31
33
  exports.UiWorkflowsModel = UiWorkflowsModel;
@@ -1 +1 @@
1
- {"version":3,"file":"ui-workflows-model.js","sourceRoot":"","sources":["../src/ui-workflows-model.ts"],"names":[],"mappings":";;;AACA,yDAU4B;AAE5B,0CAA0C;AAC1C,MAAa,gBAAgB;IAC3B;IACE,kCAAkC;IACf,IAAU;QAAV,SAAI,GAAJ,IAAI,CAAM;QAG/B,oCAAoC;QAC3B,eAAU,GAAG,IAAI,6BAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEhD,kEAAkE;QACzD,eAAU,GAAG,IAAI,6BAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEhD,0BAA0B;QACjB,SAAI,GAAG,IAAI,uBAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEpC,2EAA2E;QAClE,cAAS,GAAG,IAAI,4BAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE9C,qCAAqC;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AiC;QACxB,cAAS,GAAG,IAAI,4BAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE9C,oCAAoC;QAC3B,QAAG,GAAG,IAAI,sBAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAElC,4BAA4B;QACnB,WAAM,GAAG,IAAI,yBAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IA9BrC,CAAC;CA+BL;AAnCD,4CAmCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axinom/mosaic-e2e-ui-selectors",
3
- "version": "0.5.9-rc.2",
3
+ "version": "0.5.9-rc.20",
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": "52333cdf9f4680e6adc74a576fdc87bfd85b3d31"
35
+ "gitHead": "ad32da3e9da19743e5ce764bc173650a3ab9631a"
36
36
  }
@@ -0,0 +1,21 @@
1
+ import { FrameLocator, Page } from 'playwright-core';
2
+ import { ComponentModel } from '../component-model';
3
+
4
+ /**
5
+ * A model for a Button.
6
+ */
7
+ export class Button extends ComponentModel {
8
+ /**
9
+ * A model for a Button.
10
+ * @param parent The parent playwright page, frame or component.
11
+ * @param xpath A relative xpath selector to this element from the parent.
12
+ */
13
+ constructor(parent: Page | FrameLocator | ComponentModel, xpath = '') {
14
+ super(parent, xpath);
15
+ }
16
+
17
+ /** A locator for an inline menu button. */
18
+ readonly inlineMenuButton = this.getLocator(
19
+ '//*[@data-test-id="inline-menu-button"]',
20
+ );
21
+ }
@@ -1,5 +1,6 @@
1
1
  export * from './accordion';
2
2
  export * from './actions';
3
+ export * from './button';
3
4
  export * from './dynamic-data-list';
4
5
  export * from './filters';
5
6
  export * from './form';
@@ -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. */
@@ -2,6 +2,7 @@ import { Page } from 'playwright-core';
2
2
  import {
3
3
  Accordion,
4
4
  Actions,
5
+ Button,
5
6
  Filters,
6
7
  Form,
7
8
  Hub,
@@ -44,4 +45,7 @@ export class UiWorkflowsModel {
44
45
 
45
46
  /** A model for a navigation hub. */
46
47
  readonly hub = new Hub(this.page);
48
+
49
+ /** A model for a button. */
50
+ readonly button = new Button(this.page);
47
51
  }