@axinom/mosaic-e2e-ui-selectors 0.14.0-rc.16 → 0.14.0-rc.18

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.
@@ -15,4 +15,5 @@ export * from './loader';
15
15
  export * from './message-bar';
16
16
  export * from './modal';
17
17
  export * from './page-header';
18
+ export * from './tab';
18
19
  //# sourceMappingURL=index.d.ts.map
@@ -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,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"}
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;AAC9B,cAAc,OAAO,CAAC"}
@@ -31,4 +31,5 @@ __exportStar(require("./loader"), exports);
31
31
  __exportStar(require("./message-bar"), exports);
32
32
  __exportStar(require("./modal"), exports);
33
33
  __exportStar(require("./page-header"), exports);
34
+ __exportStar(require("./tab"), exports);
34
35
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
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"}
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;AAC9B,wCAAsB"}
@@ -0,0 +1,11 @@
1
+ import { FrameLocator, Locator, Page } from 'playwright-core';
2
+ import { ComponentModel } from '../component-model';
3
+ /**
4
+ * An model for a Tab component with methods to retrieve individual tabs.
5
+ */
6
+ export declare class Tab extends ComponentModel {
7
+ constructor(parent: Page | FrameLocator | ComponentModel, xpath?: string);
8
+ /** This method finds a tab by label. The label must match exactly. */
9
+ getTabByLabel(label: string): Locator;
10
+ }
11
+ //# sourceMappingURL=tab.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab.d.ts","sourceRoot":"","sources":["../../src/component-models/tab.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;GAEG;AACH,qBAAa,GAAI,SAAQ,cAAc;gBAEnC,MAAM,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,EAC5C,KAAK,SAAmE;IAK1E,sEAAsE;IACtE,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;CAKtC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Tab = void 0;
4
+ const component_model_1 = require("../component-model");
5
+ /**
6
+ * An model for a Tab component with methods to retrieve individual tabs.
7
+ */
8
+ class Tab extends component_model_1.ComponentModel {
9
+ constructor(parent, xpath = '//ul[@class="CustomTabList_tablist_bdVFo" and @role="tablist"]') {
10
+ super(parent, xpath);
11
+ }
12
+ /** This method finds a tab by label. The label must match exactly. */
13
+ getTabByLabel(label) {
14
+ return this.getLocator(`//li[@data-test-id='tab' and .//div[text()="${label}"]]`);
15
+ }
16
+ }
17
+ exports.Tab = Tab;
18
+ //# sourceMappingURL=tab.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab.js","sourceRoot":"","sources":["../../src/component-models/tab.ts"],"names":[],"mappings":";;;AACA,wDAAoD;AAEpD;;GAEG;AACH,MAAa,GAAI,SAAQ,gCAAc;IACrC,YACE,MAA4C,EAC5C,KAAK,GAAG,gEAAgE;QAExE,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACvB,CAAC;IAED,sEAAsE;IACtE,aAAa,CAAC,KAAa;QACzB,OAAO,IAAI,CAAC,UAAU,CACpB,+CAA+C,KAAK,KAAK,CAC1D,CAAC;IACJ,CAAC;CACF;AAdD,kBAcC"}
@@ -1,5 +1,5 @@
1
1
  import { Page } from 'playwright-core';
2
- import { Accordion, Actions, Button, Filters, Form, Hub, InfoPanel, List, MessageBar, PageHeader } from './component-models';
2
+ import { Accordion, Actions, Button, Filters, Form, Hub, InfoPanel, List, MessageBar, PageHeader, Tab } from './component-models';
3
3
  /** A model representing the Mosaic UI. */
4
4
  export declare class UiWorkflowsModel {
5
5
  /** The playwright page object. */
@@ -27,5 +27,7 @@ export declare class UiWorkflowsModel {
27
27
  readonly hub: Hub;
28
28
  /** A model for a button. */
29
29
  readonly button: Button;
30
+ /** A model for a tab. */
31
+ readonly tab: Tab;
30
32
  }
31
33
  //# 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,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EACL,SAAS,EACT,OAAO,EACP,MAAM,EACN,OAAO,EACP,IAAI,EACJ,GAAG,EACH,SAAS,EACT,IAAI,EACJ,UAAU,EACV,UAAU,EACX,MAAM,oBAAoB,CAAC;AAE5B,0CAA0C;AAC1C,qBAAa,gBAAgB;IAEzB,kCAAkC;IAClC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI;;IAD7B,kCAAkC;IACf,IAAI,EAAE,IAAI;IAG/B,oCAAoC;IACpC,QAAQ,CAAC,UAAU,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"}
1
+ {"version":3,"file":"ui-workflows-model.d.ts","sourceRoot":"","sources":["../src/ui-workflows-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EACL,SAAS,EACT,OAAO,EACP,MAAM,EACN,OAAO,EACP,IAAI,EACJ,GAAG,EACH,SAAS,EACT,IAAI,EACJ,UAAU,EACV,UAAU,EACV,GAAG,EACJ,MAAM,oBAAoB,CAAC;AAE5B,0CAA0C;AAC1C,qBAAa,gBAAgB;IAEzB,kCAAkC;IAClC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI;;IAD7B,kCAAkC;IACf,IAAI,EAAE,IAAI;IAG/B,oCAAoC;IACpC,QAAQ,CAAC,UAAU,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;IAExC,yBAAyB;IACzB,QAAQ,CAAC,GAAG,MAAsB;CACnC"}
@@ -28,6 +28,8 @@ class UiWorkflowsModel {
28
28
  this.hub = new component_models_1.Hub(this.page);
29
29
  /** A model for a button. */
30
30
  this.button = new component_models_1.Button(this.page);
31
+ /** A model for a tab. */
32
+ this.tab = new component_models_1.Tab(this.page);
31
33
  }
32
34
  }
33
35
  exports.UiWorkflowsModel = UiWorkflowsModel;
@@ -1 +1 @@
1
- {"version":3,"file":"ui-workflows-model.js","sourceRoot":"","sources":["../src/ui-workflows-model.ts"],"names":[],"mappings":";;;AACA,yDAW4B;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;QAC5B,YAAO,GAAG,IAAI,0BAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE1C,sEAAsE;QAC7D,YAAO,GAAG,IAAI,0BAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE1C,8CAA8C;QACrC,SAAI,GAAG,IAAI,uBAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEpC,iCAAiC;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"}
1
+ {"version":3,"file":"ui-workflows-model.js","sourceRoot":"","sources":["../src/ui-workflows-model.ts"],"names":[],"mappings":";;;AACA,yDAY4B;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;QAC5B,YAAO,GAAG,IAAI,0BAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE1C,sEAAsE;QAC7D,YAAO,GAAG,IAAI,0BAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE1C,8CAA8C;QACrC,SAAI,GAAG,IAAI,uBAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEpC,iCAAiC;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;QAExC,yBAAyB;QAChB,QAAG,GAAG,IAAI,sBAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAjC/B,CAAC;CAkCL;AAtCD,4CAsCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axinom/mosaic-e2e-ui-selectors",
3
- "version": "0.14.0-rc.16",
3
+ "version": "0.14.0-rc.18",
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": "27c9cf18c9a4dcbf867a25b92a5ca25bb3b80993"
35
+ "gitHead": "8130b8c89f350713ed34712e9e6dd94a56c7559c"
36
36
  }
@@ -15,3 +15,4 @@ export * from './loader';
15
15
  export * from './message-bar';
16
16
  export * from './modal';
17
17
  export * from './page-header';
18
+ export * from './tab';
@@ -0,0 +1,21 @@
1
+ import { FrameLocator, Locator, Page } from 'playwright-core';
2
+ import { ComponentModel } from '../component-model';
3
+
4
+ /**
5
+ * An model for a Tab component with methods to retrieve individual tabs.
6
+ */
7
+ export class Tab extends ComponentModel {
8
+ constructor(
9
+ parent: Page | FrameLocator | ComponentModel,
10
+ xpath = '//ul[@class="CustomTabList_tablist_bdVFo" and @role="tablist"]',
11
+ ) {
12
+ super(parent, xpath);
13
+ }
14
+
15
+ /** This method finds a tab by label. The label must match exactly. */
16
+ getTabByLabel(label: string): Locator {
17
+ return this.getLocator(
18
+ `//li[@data-test-id='tab' and .//div[text()="${label}"]]`,
19
+ );
20
+ }
21
+ }
@@ -10,6 +10,7 @@ import {
10
10
  List,
11
11
  MessageBar,
12
12
  PageHeader,
13
+ Tab,
13
14
  } from './component-models';
14
15
 
15
16
  /** A model representing the Mosaic UI. */
@@ -48,4 +49,7 @@ export class UiWorkflowsModel {
48
49
 
49
50
  /** A model for a button. */
50
51
  readonly button = new Button(this.page);
52
+
53
+ /** A model for a tab. */
54
+ readonly tab = new Tab(this.page);
51
55
  }