@axinom/mosaic-e2e-ui-selectors 0.5.9-rc.8 → 0.5.9
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/dist/component-models/button.d.ts +16 -0
- package/dist/component-models/button.d.ts.map +1 -0
- package/dist/component-models/button.js +21 -0
- package/dist/component-models/button.js.map +1 -0
- package/dist/component-models/index.d.ts +1 -0
- package/dist/component-models/index.d.ts.map +1 -1
- package/dist/component-models/index.js +1 -0
- package/dist/component-models/index.js.map +1 -1
- package/dist/ui-workflows-model.d.ts +3 -1
- package/dist/ui-workflows-model.d.ts.map +1 -1
- package/dist/ui-workflows-model.js +2 -0
- package/dist/ui-workflows-model.js.map +1 -1
- package/package.json +2 -2
- package/src/component-models/button.ts +21 -0
- package/src/component-models/index.ts +1 -0
- package/src/ui-workflows-model.ts +4 -0
|
@@ -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 +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"}
|
|
@@ -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,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EACL,SAAS,EACT,OAAO,EACP,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;
|
|
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"}
|
|
@@ -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,
|
|
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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axinom/mosaic-e2e-ui-selectors",
|
|
3
|
-
"version": "0.5.9
|
|
3
|
+
"version": "0.5.9",
|
|
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": "
|
|
35
|
+
"gitHead": "5b53d10a1d949514b827708182e3aee192fc2a36"
|
|
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
|
+
}
|
|
@@ -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
|
}
|