@axinom/mosaic-e2e-ui-selectors 0.1.0-rc.3
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/README.md +55 -0
- package/dist/component-model.d.ts +58 -0
- package/dist/component-model.d.ts.map +1 -0
- package/dist/component-model.js +89 -0
- package/dist/component-model.js.map +1 -0
- package/dist/component-models/accordion.d.ts +44 -0
- package/dist/component-models/accordion.d.ts.map +1 -0
- package/dist/component-models/accordion.js +89 -0
- package/dist/component-models/accordion.js.map +1 -0
- package/dist/component-models/actions.d.ts +20 -0
- package/dist/component-models/actions.d.ts.map +1 -0
- package/dist/component-models/actions.js +29 -0
- package/dist/component-models/actions.js.map +1 -0
- package/dist/component-models/breadcrumbs.d.ts +35 -0
- package/dist/component-models/breadcrumbs.d.ts.map +1 -0
- package/dist/component-models/breadcrumbs.js +59 -0
- package/dist/component-models/breadcrumbs.js.map +1 -0
- package/dist/component-models/dynamic-data-list.d.ts +80 -0
- package/dist/component-models/dynamic-data-list.d.ts.map +1 -0
- package/dist/component-models/dynamic-data-list.js +131 -0
- package/dist/component-models/dynamic-data-list.js.map +1 -0
- package/dist/component-models/filters/date-filter.d.ts +17 -0
- package/dist/component-models/filters/date-filter.d.ts.map +1 -0
- package/dist/component-models/filters/date-filter.js +32 -0
- package/dist/component-models/filters/date-filter.js.map +1 -0
- package/dist/component-models/filters/date-time-filter.d.ts +9 -0
- package/dist/component-models/filters/date-time-filter.d.ts.map +1 -0
- package/dist/component-models/filters/date-time-filter.js +15 -0
- package/dist/component-models/filters/date-time-filter.js.map +1 -0
- package/dist/component-models/filters/filter.d.ts +35 -0
- package/dist/component-models/filters/filter.d.ts.map +1 -0
- package/dist/component-models/filters/filter.js +56 -0
- package/dist/component-models/filters/filter.js.map +1 -0
- package/dist/component-models/filters/filters.d.ts +34 -0
- package/dist/component-models/filters/filters.d.ts.map +1 -0
- package/dist/component-models/filters/filters.js +45 -0
- package/dist/component-models/filters/filters.js.map +1 -0
- package/dist/component-models/filters/free-text-filter.d.ts +17 -0
- package/dist/component-models/filters/free-text-filter.d.ts.map +1 -0
- package/dist/component-models/filters/free-text-filter.js +32 -0
- package/dist/component-models/filters/free-text-filter.js.map +1 -0
- package/dist/component-models/filters/index.d.ts +9 -0
- package/dist/component-models/filters/index.d.ts.map +1 -0
- package/dist/component-models/filters/index.js +21 -0
- package/dist/component-models/filters/index.js.map +1 -0
- package/dist/component-models/filters/numeric-filter.d.ts +17 -0
- package/dist/component-models/filters/numeric-filter.d.ts.map +1 -0
- package/dist/component-models/filters/numeric-filter.js +32 -0
- package/dist/component-models/filters/numeric-filter.js.map +1 -0
- package/dist/component-models/filters/options-filter.d.ts +23 -0
- package/dist/component-models/filters/options-filter.d.ts.map +1 -0
- package/dist/component-models/filters/options-filter.js +43 -0
- package/dist/component-models/filters/options-filter.js.map +1 -0
- package/dist/component-models/filters/untyped-filter.d.ts +29 -0
- package/dist/component-models/filters/untyped-filter.d.ts.map +1 -0
- package/dist/component-models/filters/untyped-filter.js +31 -0
- package/dist/component-models/filters/untyped-filter.js.map +1 -0
- package/dist/component-models/form/checkbox.d.ts +15 -0
- package/dist/component-models/form/checkbox.d.ts.map +1 -0
- package/dist/component-models/form/checkbox.js +29 -0
- package/dist/component-models/form/checkbox.js.map +1 -0
- package/dist/component-models/form/custom-tags-field.d.ts +23 -0
- package/dist/component-models/form/custom-tags-field.d.ts.map +1 -0
- package/dist/component-models/form/custom-tags-field.js +49 -0
- package/dist/component-models/form/custom-tags-field.js.map +1 -0
- package/dist/component-models/form/dynamic-data-list-field.d.ts +12 -0
- package/dist/component-models/form/dynamic-data-list-field.d.ts.map +1 -0
- package/dist/component-models/form/dynamic-data-list-field.js +22 -0
- package/dist/component-models/form/dynamic-data-list-field.js.map +1 -0
- package/dist/component-models/form/file-upload-field.d.ts +13 -0
- package/dist/component-models/form/file-upload-field.d.ts.map +1 -0
- package/dist/component-models/form/file-upload-field.js +26 -0
- package/dist/component-models/form/file-upload-field.js.map +1 -0
- package/dist/component-models/form/form-field.d.ts +31 -0
- package/dist/component-models/form/form-field.d.ts.map +1 -0
- package/dist/component-models/form/form-field.js +44 -0
- package/dist/component-models/form/form-field.js.map +1 -0
- package/dist/component-models/form/form.d.ts +42 -0
- package/dist/component-models/form/form.d.ts.map +1 -0
- package/dist/component-models/form/form.js +60 -0
- package/dist/component-models/form/form.js.map +1 -0
- package/dist/component-models/form/generic-field.d.ts +11 -0
- package/dist/component-models/form/generic-field.d.ts.map +1 -0
- package/dist/component-models/form/generic-field.js +23 -0
- package/dist/component-models/form/generic-field.js.map +1 -0
- package/dist/component-models/form/index.d.ts +14 -0
- package/dist/component-models/form/index.d.ts.map +1 -0
- package/dist/component-models/form/index.js +26 -0
- package/dist/component-models/form/index.js.map +1 -0
- package/dist/component-models/form/radio-field.d.ts +17 -0
- package/dist/component-models/form/radio-field.d.ts.map +1 -0
- package/dist/component-models/form/radio-field.js +45 -0
- package/dist/component-models/form/radio-field.js.map +1 -0
- package/dist/component-models/form/read-only-field.d.ts +13 -0
- package/dist/component-models/form/read-only-field.d.ts.map +1 -0
- package/dist/component-models/form/read-only-field.js +27 -0
- package/dist/component-models/form/read-only-field.js.map +1 -0
- package/dist/component-models/form/read-only-text-field.d.ts +11 -0
- package/dist/component-models/form/read-only-text-field.d.ts.map +1 -0
- package/dist/component-models/form/read-only-text-field.js +23 -0
- package/dist/component-models/form/read-only-text-field.js.map +1 -0
- package/dist/component-models/form/select-field.d.ts +20 -0
- package/dist/component-models/form/select-field.d.ts.map +1 -0
- package/dist/component-models/form/select-field.js +42 -0
- package/dist/component-models/form/select-field.js.map +1 -0
- package/dist/component-models/form/single-line-text-field.d.ts +15 -0
- package/dist/component-models/form/single-line-text-field.d.ts.map +1 -0
- package/dist/component-models/form/single-line-text-field.js +33 -0
- package/dist/component-models/form/single-line-text-field.js.map +1 -0
- package/dist/component-models/form/untyped-form-field.d.ts +46 -0
- package/dist/component-models/form/untyped-form-field.d.ts.map +1 -0
- package/dist/component-models/form/untyped-form-field.js +50 -0
- package/dist/component-models/form/untyped-form-field.js.map +1 -0
- package/dist/component-models/hub-tiles.d.ts +47 -0
- package/dist/component-models/hub-tiles.d.ts.map +1 -0
- package/dist/component-models/hub-tiles.js +76 -0
- package/dist/component-models/hub-tiles.js.map +1 -0
- package/dist/component-models/index.d.ts +19 -0
- package/dist/component-models/index.d.ts.map +1 -0
- package/dist/component-models/index.js +31 -0
- package/dist/component-models/index.js.map +1 -0
- package/dist/component-models/info-panel.d.ts +55 -0
- package/dist/component-models/info-panel.d.ts.map +1 -0
- package/dist/component-models/info-panel.js +85 -0
- package/dist/component-models/info-panel.js.map +1 -0
- package/dist/component-models/inline-menu.d.ts +19 -0
- package/dist/component-models/inline-menu.d.ts.map +1 -0
- package/dist/component-models/inline-menu.js +27 -0
- package/dist/component-models/inline-menu.js.map +1 -0
- package/dist/component-models/landing-page-header.d.ts +18 -0
- package/dist/component-models/landing-page-header.d.ts.map +1 -0
- package/dist/component-models/landing-page-header.js +25 -0
- package/dist/component-models/landing-page-header.js.map +1 -0
- package/dist/component-models/landing-page-tiles.d.ts +31 -0
- package/dist/component-models/landing-page-tiles.d.ts.map +1 -0
- package/dist/component-models/landing-page-tiles.js +50 -0
- package/dist/component-models/landing-page-tiles.js.map +1 -0
- package/dist/component-models/list-row.d.ts +37 -0
- package/dist/component-models/list-row.d.ts.map +1 -0
- package/dist/component-models/list-row.js +61 -0
- package/dist/component-models/list-row.js.map +1 -0
- package/dist/component-models/list.d.ts +43 -0
- package/dist/component-models/list.d.ts.map +1 -0
- package/dist/component-models/list.js +70 -0
- package/dist/component-models/list.js.map +1 -0
- package/dist/component-models/loader.d.ts +17 -0
- package/dist/component-models/loader.d.ts.map +1 -0
- package/dist/component-models/loader.js +33 -0
- package/dist/component-models/loader.js.map +1 -0
- package/dist/component-models/message-bar.d.ts +22 -0
- package/dist/component-models/message-bar.d.ts.map +1 -0
- package/dist/component-models/message-bar.js +38 -0
- package/dist/component-models/message-bar.js.map +1 -0
- package/dist/component-models/modal/index.d.ts +4 -0
- package/dist/component-models/modal/index.d.ts.map +1 -0
- package/dist/component-models/modal/index.js +16 -0
- package/dist/component-models/modal/index.js.map +1 -0
- package/dist/component-models/modal/modal-content.d.ts +14 -0
- package/dist/component-models/modal/modal-content.d.ts.map +1 -0
- package/dist/component-models/modal/modal-content.js +19 -0
- package/dist/component-models/modal/modal-content.js.map +1 -0
- package/dist/component-models/modal/modal.d.ts +24 -0
- package/dist/component-models/modal/modal.d.ts.map +1 -0
- package/dist/component-models/modal/modal.js +28 -0
- package/dist/component-models/modal/modal.js.map +1 -0
- package/dist/component-models/modal/selection-explorer.d.ts +19 -0
- package/dist/component-models/modal/selection-explorer.d.ts.map +1 -0
- package/dist/component-models/modal/selection-explorer.js +26 -0
- package/dist/component-models/modal/selection-explorer.js.map +1 -0
- package/dist/component-models/page-header.d.ts +21 -0
- package/dist/component-models/page-header.d.ts.map +1 -0
- package/dist/component-models/page-header.js +26 -0
- package/dist/component-models/page-header.js.map +1 -0
- package/dist/component-models/toggle-button.d.ts +22 -0
- package/dist/component-models/toggle-button.d.ts.map +1 -0
- package/dist/component-models/toggle-button.js +32 -0
- package/dist/component-models/toggle-button.js.map +1 -0
- package/dist/constants/action-label.d.ts +9 -0
- package/dist/constants/action-label.d.ts.map +1 -0
- package/dist/constants/action-label.js +13 -0
- package/dist/constants/action-label.js.map +1 -0
- package/dist/constants/index.d.ts +2 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/constants/index.js +14 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/helpers/index.d.ts +4 -0
- package/dist/helpers/index.d.ts.map +1 -0
- package/dist/helpers/index.js +16 -0
- package/dist/helpers/index.js.map +1 -0
- package/dist/helpers/wait-for-data-to-load.d.ts +5 -0
- package/dist/helpers/wait-for-data-to-load.d.ts.map +1 -0
- package/dist/helpers/wait-for-data-to-load.js +10 -0
- package/dist/helpers/wait-for-data-to-load.js.map +1 -0
- package/dist/helpers/wait-for-or-timeout.d.ts +13 -0
- package/dist/helpers/wait-for-or-timeout.d.ts.map +1 -0
- package/dist/helpers/wait-for-or-timeout.js +23 -0
- package/dist/helpers/wait-for-or-timeout.js.map +1 -0
- package/dist/helpers/wait-for-page-transition.d.ts +4 -0
- package/dist/helpers/wait-for-page-transition.d.ts.map +1 -0
- package/dist/helpers/wait-for-page-transition.js +18 -0
- package/dist/helpers/wait-for-page-transition.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/ui-workflows-model.d.ts +29 -0
- package/dist/ui-workflows-model.d.ts.map +1 -0
- package/dist/ui-workflows-model.js +32 -0
- package/dist/ui-workflows-model.js.map +1 -0
- package/package.json +34 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Loader = void 0;
|
|
4
|
+
const component_model_1 = require("../component-model");
|
|
5
|
+
const helpers_1 = require("../helpers");
|
|
6
|
+
/**
|
|
7
|
+
* A model for a Loader component.
|
|
8
|
+
*/
|
|
9
|
+
class Loader extends component_model_1.ComponentModel {
|
|
10
|
+
/**
|
|
11
|
+
* A model for a loading icon.
|
|
12
|
+
* @param parent The parent playwright page, frame or component model.
|
|
13
|
+
* @param xpath A relative xpath selector to this element from the parent. Default: '//*[contains(@class="Message_container")]'.
|
|
14
|
+
* @param nth The position among all descendant loaders. Position 1 is the first. Default 1.
|
|
15
|
+
*/
|
|
16
|
+
constructor(parent,
|
|
17
|
+
// TODO: Improve selector
|
|
18
|
+
xpath = '//*[contains(@class, "Loader__container")]', nth = 1) {
|
|
19
|
+
super(parent, xpath, nth);
|
|
20
|
+
}
|
|
21
|
+
/** This method waits for the loader to be hidden or detached. */
|
|
22
|
+
async waitFor(timeout) {
|
|
23
|
+
// wait for loader to appear.. or 1 second, whichever is shortest
|
|
24
|
+
await (0, helpers_1.waitForOrTimeout)(this.getLocator(), {
|
|
25
|
+
state: 'visible',
|
|
26
|
+
timeout: 1000,
|
|
27
|
+
});
|
|
28
|
+
// wait for loader to be hidden
|
|
29
|
+
return this.getLocator().waitFor({ state: 'hidden', timeout });
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.Loader = Loader;
|
|
33
|
+
//# sourceMappingURL=loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loader.js","sourceRoot":"","sources":["../../src/component-models/loader.ts"],"names":[],"mappings":";;;AACA,wDAAoD;AACpD,wCAA8C;AAE9C;;GAEG;AACH,MAAa,MAAO,SAAQ,gCAAc;IACxC;;;;;OAKG;IACH,YACE,MAA4C;IAC5C,yBAAyB;IACzB,KAAK,GAAG,4CAA4C,EACpD,GAAG,GAAG,CAAC;QAEP,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;IAC5B,CAAC;IAED,iEAAiE;IACjE,KAAK,CAAC,OAAO,CAAC,OAAgB;QAC5B,iEAAiE;QACjE,MAAM,IAAA,0BAAgB,EAAC,IAAI,CAAC,UAAU,EAAE,EAAE;YACxC,KAAK,EAAE,SAAS;YAChB,OAAO,EAAE,IAAI;SACd,CAAC,CAAC;QAEH,+BAA+B;QAC/B,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;CACF;AA3BD,wBA2BC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FrameLocator, Page } from 'playwright-core';
|
|
2
|
+
import { ComponentModel } from '../component-model';
|
|
3
|
+
/**
|
|
4
|
+
* A model for a MessageBar component. Use this for messages which show below the page header.
|
|
5
|
+
*/
|
|
6
|
+
export declare class MessageBar extends ComponentModel {
|
|
7
|
+
/**
|
|
8
|
+
* A model for a MessageBar component. Use this for messages which show below the page header.
|
|
9
|
+
* @param parent The parent playwright page, frame or component model.
|
|
10
|
+
* @param xpath A relative xpath selector to this element from the parent. Default: '//*[contains(@class="Message_container")]'.
|
|
11
|
+
*/
|
|
12
|
+
constructor(parent: Page | FrameLocator | ComponentModel, xpath?: string);
|
|
13
|
+
/** A locator to the message content. */
|
|
14
|
+
readonly content: import("playwright-core").Locator;
|
|
15
|
+
/** This method returns true if the message bar contains an error icon. */
|
|
16
|
+
isError(): Promise<boolean>;
|
|
17
|
+
/** This method returns true if the message bar contains an info icon. */
|
|
18
|
+
isInfo(): Promise<boolean>;
|
|
19
|
+
/** This method returns true if the message bar contains a warning icon. */
|
|
20
|
+
isWarning(): Promise<boolean>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=message-bar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-bar.d.ts","sourceRoot":"","sources":["../../src/component-models/message-bar.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,UAAW,SAAQ,cAAc;IAC5C;;;;OAIG;gBAGD,MAAM,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,EAC5C,KAAK,SAA+C;IAKtD,wCAAwC;IAExC,QAAQ,CAAC,OAAO,oCAA4D;IAE5E,0EAA0E;IACpE,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC;IAOjC,yEAAyE;IACnE,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC;IAKhC,2EAA2E;IACrE,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;CAMpC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessageBar = void 0;
|
|
4
|
+
const component_model_1 = require("../component-model");
|
|
5
|
+
/**
|
|
6
|
+
* A model for a MessageBar component. Use this for messages which show below the page header.
|
|
7
|
+
*/
|
|
8
|
+
class MessageBar extends component_model_1.ComponentModel {
|
|
9
|
+
/**
|
|
10
|
+
* A model for a MessageBar component. Use this for messages which show below the page header.
|
|
11
|
+
* @param parent The parent playwright page, frame or component model.
|
|
12
|
+
* @param xpath A relative xpath selector to this element from the parent. Default: '//*[contains(@class="Message_container")]'.
|
|
13
|
+
*/
|
|
14
|
+
// TODO: Improve selector
|
|
15
|
+
constructor(parent, xpath = '//*[contains(@class, "Message_container")]') {
|
|
16
|
+
super(parent, xpath);
|
|
17
|
+
/** A locator to the message content. */
|
|
18
|
+
// TODO: Improve selector
|
|
19
|
+
this.content = this.getLocator('//*[contains(@class, Message_title")]');
|
|
20
|
+
}
|
|
21
|
+
/** This method returns true if the message bar contains an error icon. */
|
|
22
|
+
async isError() {
|
|
23
|
+
// TODO: Improve selector
|
|
24
|
+
return this.getLocator('[contains(@class, "Message_hasError")]').isVisible();
|
|
25
|
+
}
|
|
26
|
+
/** This method returns true if the message bar contains an info icon. */
|
|
27
|
+
async isInfo() {
|
|
28
|
+
// TODO: Improve selector
|
|
29
|
+
return this.getLocator('[contains(@class, "Message_hasInfo")]').isVisible();
|
|
30
|
+
}
|
|
31
|
+
/** This method returns true if the message bar contains a warning icon. */
|
|
32
|
+
async isWarning() {
|
|
33
|
+
// TODO: Improve selector
|
|
34
|
+
return this.getLocator('[contains(@class, "Message_hasWarning")]').isVisible();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.MessageBar = MessageBar;
|
|
38
|
+
//# sourceMappingURL=message-bar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-bar.js","sourceRoot":"","sources":["../../src/component-models/message-bar.ts"],"names":[],"mappings":";;;AACA,wDAAoD;AAEpD;;GAEG;AACH,MAAa,UAAW,SAAQ,gCAAc;IAC5C;;;;OAIG;IACH,yBAAyB;IACzB,YACE,MAA4C,EAC5C,KAAK,GAAG,4CAA4C;QAEpD,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAGvB,wCAAwC;QACxC,yBAAyB;QAChB,YAAO,GAAG,IAAI,CAAC,UAAU,CAAC,uCAAuC,CAAC,CAAC;IAJ5E,CAAC;IAMD,0EAA0E;IAC1E,KAAK,CAAC,OAAO;QACX,yBAAyB;QACzB,OAAO,IAAI,CAAC,UAAU,CACpB,wCAAwC,CACzC,CAAC,SAAS,EAAE,CAAC;IAChB,CAAC;IAED,yEAAyE;IACzE,KAAK,CAAC,MAAM;QACV,yBAAyB;QACzB,OAAO,IAAI,CAAC,UAAU,CAAC,uCAAuC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC9E,CAAC;IAED,2EAA2E;IAC3E,KAAK,CAAC,SAAS;QACb,yBAAyB;QACzB,OAAO,IAAI,CAAC,UAAU,CACpB,0CAA0C,CAC3C,CAAC,SAAS,EAAE,CAAC;IAChB,CAAC;CACF;AAvCD,gCAuCC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/component-models/modal/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./modal"), exports);
|
|
14
|
+
__exportStar(require("./modal-content"), exports);
|
|
15
|
+
__exportStar(require("./selection-explorer"), exports);
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/component-models/modal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB;AACxB,kDAAgC;AAChC,uDAAqC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FrameLocator, Page } from 'playwright-core';
|
|
2
|
+
import { ComponentModel } from '../../component-model';
|
|
3
|
+
/**
|
|
4
|
+
* A base class for a component which is opened as the content of a mod*a*l.
|
|
5
|
+
*/
|
|
6
|
+
export declare abstract class ModalContent extends ComponentModel {
|
|
7
|
+
/**
|
|
8
|
+
* A model for a component which is opened as the content of a mod*a*l.
|
|
9
|
+
* @param parent The playwright page object or frame to be used as the parent of this component.
|
|
10
|
+
* @param xpath A relative xpath to this component from the parent.
|
|
11
|
+
*/
|
|
12
|
+
constructor(parent: Page | FrameLocator, xpath: string);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=modal-content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal-content.d.ts","sourceRoot":"","sources":["../../../src/component-models/modal/modal-content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEvD;;GAEG;AACH,8BAAsB,YAAa,SAAQ,cAAc;IACvD;;;;OAIG;gBACS,MAAM,EAAE,IAAI,GAAG,YAAY,EAAE,KAAK,EAAE,MAAM;CAGvD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ModalContent = void 0;
|
|
4
|
+
const component_model_1 = require("../../component-model");
|
|
5
|
+
/**
|
|
6
|
+
* A base class for a component which is opened as the content of a mod*a*l.
|
|
7
|
+
*/
|
|
8
|
+
class ModalContent extends component_model_1.ComponentModel {
|
|
9
|
+
/**
|
|
10
|
+
* A model for a component which is opened as the content of a mod*a*l.
|
|
11
|
+
* @param parent The playwright page object or frame to be used as the parent of this component.
|
|
12
|
+
* @param xpath A relative xpath to this component from the parent.
|
|
13
|
+
*/
|
|
14
|
+
constructor(parent, xpath) {
|
|
15
|
+
super(parent, xpath);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.ModalContent = ModalContent;
|
|
19
|
+
//# sourceMappingURL=modal-content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal-content.js","sourceRoot":"","sources":["../../../src/component-models/modal/modal-content.ts"],"names":[],"mappings":";;;AACA,2DAAuD;AAEvD;;GAEG;AACH,MAAsB,YAAa,SAAQ,gCAAc;IACvD;;;;OAIG;IACH,YAAY,MAA2B,EAAE,KAAa;QACpD,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACvB,CAAC;CACF;AATD,oCASC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FrameLocator, Page } from 'playwright-core';
|
|
2
|
+
import { ComponentModel } from '../../component-model';
|
|
3
|
+
import { SelectionExplorer } from './selection-explorer';
|
|
4
|
+
/** Interface for a component constructor which ia opened inside a Modal */
|
|
5
|
+
interface ModalContentType<TModal> {
|
|
6
|
+
new (parent: Page | FrameLocator, xpath: string): TModal;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* An mod*a*l with methods to apply a specific mod*e*l to the contents.
|
|
10
|
+
*/
|
|
11
|
+
export declare class Modal extends ComponentModel {
|
|
12
|
+
/**
|
|
13
|
+
* An mod*a*l with methods to apply a specific mod*e*l to the contents.
|
|
14
|
+
* @param parent The parent playwright page or frame.
|
|
15
|
+
* @param xpath An absolute xpath selector to this element.
|
|
16
|
+
*/
|
|
17
|
+
constructor(parent: Page | FrameLocator | ComponentModel, xpath?: string);
|
|
18
|
+
/** This method applies a mod*e*l to the contents of the mod*a*l. */
|
|
19
|
+
as<TModal>(modalContentType: ModalContentType<TModal>): TModal;
|
|
20
|
+
/** This method applies a SelectionExplorer mod*e*l to this mod*a*l. */
|
|
21
|
+
asSelectionExplorer: () => SelectionExplorer;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/component-models/modal/modal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,2EAA2E;AAC3E,UAAU,gBAAgB,CAAC,MAAM;IAC/B,KAAK,MAAM,EAAE,IAAI,GAAG,YAAY,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1D;AAED;;GAEG;AACH,qBAAa,KAAM,SAAQ,cAAc;IACvC;;;;OAIG;gBAED,MAAM,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,EAE5C,KAAK,SAA6C;IAKpD,oEAAoE;IACpE,EAAE,CAAC,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,MAAM,CAAC,GAAG,MAAM;IAI9D,uEAAuE;IACvE,mBAAmB,QAAO,iBAAiB,CAA+B;CAC3E"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Modal = void 0;
|
|
4
|
+
const component_model_1 = require("../../component-model");
|
|
5
|
+
const selection_explorer_1 = require("./selection-explorer");
|
|
6
|
+
/**
|
|
7
|
+
* An mod*a*l with methods to apply a specific mod*e*l to the contents.
|
|
8
|
+
*/
|
|
9
|
+
class Modal extends component_model_1.ComponentModel {
|
|
10
|
+
/**
|
|
11
|
+
* An mod*a*l with methods to apply a specific mod*e*l to the contents.
|
|
12
|
+
* @param parent The parent playwright page or frame.
|
|
13
|
+
* @param xpath An absolute xpath selector to this element.
|
|
14
|
+
*/
|
|
15
|
+
constructor(parent,
|
|
16
|
+
// TODO: Improve selector
|
|
17
|
+
xpath = '//*[contains(@class, "modal-container")]') {
|
|
18
|
+
super(parent, xpath);
|
|
19
|
+
/** This method applies a SelectionExplorer mod*e*l to this mod*a*l. */
|
|
20
|
+
this.asSelectionExplorer = () => this.as(selection_explorer_1.SelectionExplorer);
|
|
21
|
+
}
|
|
22
|
+
/** This method applies a mod*e*l to the contents of the mod*a*l. */
|
|
23
|
+
as(modalContentType) {
|
|
24
|
+
return new modalContentType(this.root, this.xpath);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.Modal = Modal;
|
|
28
|
+
//# sourceMappingURL=modal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.js","sourceRoot":"","sources":["../../../src/component-models/modal/modal.ts"],"names":[],"mappings":";;;AACA,2DAAuD;AACvD,6DAAyD;AAOzD;;GAEG;AACH,MAAa,KAAM,SAAQ,gCAAc;IACvC;;;;OAIG;IACH,YACE,MAA4C;IAC5C,yBAAyB;IACzB,KAAK,GAAG,0CAA0C;QAElD,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAQvB,uEAAuE;QACvE,wBAAmB,GAAG,GAAsB,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,sCAAiB,CAAC,CAAC;IAR1E,CAAC;IAED,oEAAoE;IACpE,EAAE,CAAS,gBAA0C;QACnD,OAAO,IAAI,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IACrD,CAAC;CAIF;AArBD,sBAqBC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Filters } from '../filters';
|
|
2
|
+
import { List } from '../list';
|
|
3
|
+
import { MessageBar } from '../message-bar';
|
|
4
|
+
import { PageHeader } from '../page-header';
|
|
5
|
+
import { ModalContent } from './modal-content';
|
|
6
|
+
/**
|
|
7
|
+
* A mod*e*l for a SelectionExplorer component which is opened as the content of a mod*a*l.
|
|
8
|
+
*/
|
|
9
|
+
export declare class SelectionExplorer extends ModalContent {
|
|
10
|
+
/** A model for the page header with subtitle, title and actions. */
|
|
11
|
+
readonly pageHeader: PageHeader;
|
|
12
|
+
/** A model for the message bar which appwars below the page header (error / warning / info). */
|
|
13
|
+
readonly messageBar: MessageBar;
|
|
14
|
+
/** A model for the filters panel which shows next to the list of results. */
|
|
15
|
+
readonly filters: Filters;
|
|
16
|
+
/** A model for the list of results. */
|
|
17
|
+
readonly list: List;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=selection-explorer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection-explorer.d.ts","sourceRoot":"","sources":["../../../src/component-models/modal/selection-explorer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,YAAY;IACjD,qEAAqE;IACrE,QAAQ,CAAC,UAAU,aAAwB;IAE3C,gGAAgG;IAChG,QAAQ,CAAC,UAAU,aAAwB;IAE3C,6EAA6E;IAC7E,QAAQ,CAAC,OAAO,UAAqB;IAErC,uCAAuC;IACvC,QAAQ,CAAC,IAAI,OAAkB;CAChC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SelectionExplorer = void 0;
|
|
4
|
+
const filters_1 = require("../filters");
|
|
5
|
+
const list_1 = require("../list");
|
|
6
|
+
const message_bar_1 = require("../message-bar");
|
|
7
|
+
const page_header_1 = require("../page-header");
|
|
8
|
+
const modal_content_1 = require("./modal-content");
|
|
9
|
+
/**
|
|
10
|
+
* A mod*e*l for a SelectionExplorer component which is opened as the content of a mod*a*l.
|
|
11
|
+
*/
|
|
12
|
+
class SelectionExplorer extends modal_content_1.ModalContent {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
/** A model for the page header with subtitle, title and actions. */
|
|
16
|
+
this.pageHeader = new page_header_1.PageHeader(this);
|
|
17
|
+
/** A model for the message bar which appwars below the page header (error / warning / info). */
|
|
18
|
+
this.messageBar = new message_bar_1.MessageBar(this);
|
|
19
|
+
/** A model for the filters panel which shows next to the list of results. */
|
|
20
|
+
this.filters = new filters_1.Filters(this);
|
|
21
|
+
/** A model for the list of results. */
|
|
22
|
+
this.list = new list_1.List(this);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.SelectionExplorer = SelectionExplorer;
|
|
26
|
+
//# sourceMappingURL=selection-explorer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection-explorer.js","sourceRoot":"","sources":["../../../src/component-models/modal/selection-explorer.ts"],"names":[],"mappings":";;;AAAA,wCAAqC;AACrC,kCAA+B;AAC/B,gDAA4C;AAC5C,gDAA4C;AAC5C,mDAA+C;AAE/C;;GAEG;AACH,MAAa,iBAAkB,SAAQ,4BAAY;IAAnD;;QACE,qEAAqE;QAC5D,eAAU,GAAG,IAAI,wBAAU,CAAC,IAAI,CAAC,CAAC;QAE3C,gGAAgG;QACvF,eAAU,GAAG,IAAI,wBAAU,CAAC,IAAI,CAAC,CAAC;QAE3C,6EAA6E;QACpE,YAAO,GAAG,IAAI,iBAAO,CAAC,IAAI,CAAC,CAAC;QAErC,uCAAuC;QAC9B,SAAI,GAAG,IAAI,WAAI,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;CAAA;AAZD,8CAYC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FrameLocator, Page } from 'playwright-core';
|
|
2
|
+
import { ComponentModel } from '../component-model';
|
|
3
|
+
import { Actions } from './actions';
|
|
4
|
+
/**
|
|
5
|
+
* A model for a PageHeader component with title, subtitle and actions.
|
|
6
|
+
*/
|
|
7
|
+
export declare class PageHeader extends ComponentModel {
|
|
8
|
+
/**
|
|
9
|
+
* A model for a PageHeader component with title, subtitle and actions.
|
|
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?: string);
|
|
14
|
+
/** A locator to the title for a station. */
|
|
15
|
+
readonly title: import("playwright-core").Locator;
|
|
16
|
+
/** A locator to the subtitle below the station title. */
|
|
17
|
+
readonly subtitle: import("playwright-core").Locator;
|
|
18
|
+
/** A model for actions to the right of the station title. */
|
|
19
|
+
readonly actions: Actions;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=page-header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-header.d.ts","sourceRoot":"","sources":["../../src/component-models/page-header.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,cAAc;IAC5C;;;;OAIG;gBAED,MAAM,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,EAC5C,KAAK,SAAqC;IAK5C,4CAA4C;IAC5C,QAAQ,CAAC,KAAK,oCAA6D;IAE3E,yDAAyD;IACzD,QAAQ,CAAC,QAAQ,oCAEf;IAEF,6DAA6D;IAC7D,QAAQ,CAAC,OAAO,UAGd;CACH"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PageHeader = void 0;
|
|
4
|
+
const component_model_1 = require("../component-model");
|
|
5
|
+
const actions_1 = require("./actions");
|
|
6
|
+
/**
|
|
7
|
+
* A model for a PageHeader component with title, subtitle and actions.
|
|
8
|
+
*/
|
|
9
|
+
class PageHeader extends component_model_1.ComponentModel {
|
|
10
|
+
/**
|
|
11
|
+
* A model for a PageHeader component with title, subtitle and actions.
|
|
12
|
+
* @param parent The parent playwright page, frame or component.
|
|
13
|
+
* @param xpath A relative xpath selector to this element from the parent.
|
|
14
|
+
*/
|
|
15
|
+
constructor(parent, xpath = '//*[@data-test-id="page-header"]') {
|
|
16
|
+
super(parent, xpath);
|
|
17
|
+
/** A locator to the title for a station. */
|
|
18
|
+
this.title = this.getLocator('//*[@data-test-id="page-header-title"]');
|
|
19
|
+
/** A locator to the subtitle below the station title. */
|
|
20
|
+
this.subtitle = this.getLocator(`//*[@data-test-id="page-header-subtitle"]`);
|
|
21
|
+
/** A model for actions to the right of the station title. */
|
|
22
|
+
this.actions = new actions_1.Actions(this, '//*[@data-test-id="page-header-actions"]');
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.PageHeader = PageHeader;
|
|
26
|
+
//# sourceMappingURL=page-header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-header.js","sourceRoot":"","sources":["../../src/component-models/page-header.ts"],"names":[],"mappings":";;;AACA,wDAAoD;AACpD,uCAAoC;AAEpC;;GAEG;AACH,MAAa,UAAW,SAAQ,gCAAc;IAC5C;;;;OAIG;IACH,YACE,MAA4C,EAC5C,KAAK,GAAG,kCAAkC;QAE1C,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAGvB,4CAA4C;QACnC,UAAK,GAAG,IAAI,CAAC,UAAU,CAAC,wCAAwC,CAAC,CAAC;QAE3E,yDAAyD;QAChD,aAAQ,GAAG,IAAI,CAAC,UAAU,CACjC,2CAA2C,CAC5C,CAAC;QAEF,6DAA6D;QACpD,YAAO,GAAG,IAAI,iBAAO,CAC5B,IAAI,EACJ,0CAA0C,CAC3C,CAAC;IAdF,CAAC;CAeF;AA1BD,gCA0BC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FrameLocator, Page } from 'playwright-core';
|
|
2
|
+
import { ComponentModel } from '../component-model';
|
|
3
|
+
/**
|
|
4
|
+
* A model for a ToggleButton component.
|
|
5
|
+
*/
|
|
6
|
+
export declare class ToggleButton extends ComponentModel {
|
|
7
|
+
/**
|
|
8
|
+
* A model for a ToggleButton component.
|
|
9
|
+
* @param parent The parent playwright page, frame or component model.
|
|
10
|
+
* @param xpath A relative xpath selector to this element from the parent. Default: '//*[@data-test-id="toggle-button]'.
|
|
11
|
+
*/
|
|
12
|
+
constructor(parent: Page | FrameLocator | ComponentModel, xpath?: string);
|
|
13
|
+
/** A locator to the button element. */
|
|
14
|
+
readonly button: import("playwright-core").Locator;
|
|
15
|
+
/** A locator to the confirm button which may show after setting a value. */
|
|
16
|
+
readonly confirmButton: import("playwright-core").Locator;
|
|
17
|
+
/** This method toggles the button. */
|
|
18
|
+
click(): Promise<void>;
|
|
19
|
+
/** This method gets the current state of the button. */
|
|
20
|
+
isOn(): Promise<boolean>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=toggle-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle-button.d.ts","sourceRoot":"","sources":["../../src/component-models/toggle-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,YAAa,SAAQ,cAAc;IAC9C;;;;OAIG;gBAED,MAAM,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,EAC5C,KAAK,SAAuC;IAK9C,uCAAuC;IACvC,QAAQ,CAAC,MAAM,oCAAqB;IAEpC,4EAA4E;IAC5E,QAAQ,CAAC,aAAa,oCAEpB;IAEF,sCAAsC;IAChC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5B,wDAAwD;IAClD,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC;CAI/B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ToggleButton = void 0;
|
|
4
|
+
const component_model_1 = require("../component-model");
|
|
5
|
+
/**
|
|
6
|
+
* A model for a ToggleButton component.
|
|
7
|
+
*/
|
|
8
|
+
class ToggleButton extends component_model_1.ComponentModel {
|
|
9
|
+
/**
|
|
10
|
+
* A model for a ToggleButton component.
|
|
11
|
+
* @param parent The parent playwright page, frame or component model.
|
|
12
|
+
* @param xpath A relative xpath selector to this element from the parent. Default: '//*[@data-test-id="toggle-button]'.
|
|
13
|
+
*/
|
|
14
|
+
constructor(parent, xpath = '//*[@data-test-id="toggle-button"]') {
|
|
15
|
+
super(parent, xpath);
|
|
16
|
+
/** A locator to the button element. */
|
|
17
|
+
this.button = this.getLocator();
|
|
18
|
+
/** A locator to the confirm button which may show after setting a value. */
|
|
19
|
+
this.confirmButton = this.getLocator('/following-sibling::*//*[@data-test-id="confirm"]');
|
|
20
|
+
}
|
|
21
|
+
/** This method toggles the button. */
|
|
22
|
+
async click() {
|
|
23
|
+
await this.getLocator().click();
|
|
24
|
+
}
|
|
25
|
+
/** This method gets the current state of the button. */
|
|
26
|
+
async isOn() {
|
|
27
|
+
const checked = await this.getLocator().getAttribute('data-test-checked');
|
|
28
|
+
return checked === 'true';
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.ToggleButton = ToggleButton;
|
|
32
|
+
//# sourceMappingURL=toggle-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle-button.js","sourceRoot":"","sources":["../../src/component-models/toggle-button.ts"],"names":[],"mappings":";;;AACA,wDAAoD;AAEpD;;GAEG;AACH,MAAa,YAAa,SAAQ,gCAAc;IAC9C;;;;OAIG;IACH,YACE,MAA4C,EAC5C,KAAK,GAAG,oCAAoC;QAE5C,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAGvB,uCAAuC;QAC9B,WAAM,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAEpC,4EAA4E;QACnE,kBAAa,GAAG,IAAI,CAAC,UAAU,CACtC,mDAAmD,CACpD,CAAC;IARF,CAAC;IAUD,sCAAsC;IACtC,KAAK,CAAC,KAAK;QACT,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;IAED,wDAAwD;IACxD,KAAK,CAAC,IAAI;QACR,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAAC;QAC1E,OAAO,OAAO,KAAK,MAAM,CAAC;IAC5B,CAAC;CACF;AA/BD,oCA+BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-label.d.ts","sourceRoot":"","sources":["../../src/constants/action-label.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,WAAW;IACrB,IAAI,iBAAiB;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;CACpB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActionLabel = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Labels for standard actions.
|
|
6
|
+
*/
|
|
7
|
+
var ActionLabel;
|
|
8
|
+
(function (ActionLabel) {
|
|
9
|
+
ActionLabel["Undo"] = "Undo Changes";
|
|
10
|
+
ActionLabel["Cancel"] = "Cancel";
|
|
11
|
+
ActionLabel["Proceed"] = "Proceed";
|
|
12
|
+
})(ActionLabel = exports.ActionLabel || (exports.ActionLabel = {}));
|
|
13
|
+
//# sourceMappingURL=action-label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-label.js","sourceRoot":"","sources":["../../src/constants/action-label.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,oCAAqB,CAAA;IACrB,gCAAiB,CAAA;IACjB,kCAAmB,CAAA;AACrB,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./action-label"), exports);
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./wait-for-data-to-load"), exports);
|
|
14
|
+
__exportStar(require("./wait-for-or-timeout"), exports);
|
|
15
|
+
__exportStar(require("./wait-for-page-transition"), exports);
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0DAAwC;AACxC,wDAAsC;AACtC,6DAA2C"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FrameLocator, Page } from 'playwright-core';
|
|
2
|
+
import { ComponentModel } from '../component-model';
|
|
3
|
+
/** This method waits while any Loader components are visible. */
|
|
4
|
+
export declare function waitForDataToLoad(parent: Page | FrameLocator | ComponentModel): Promise<void>;
|
|
5
|
+
//# sourceMappingURL=wait-for-data-to-load.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wait-for-data-to-load.d.ts","sourceRoot":"","sources":["../../src/helpers/wait-for-data-to-load.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,iEAAiE;AACjE,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,GAC3C,OAAO,CAAC,IAAI,CAAC,CAEf"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.waitForDataToLoad = void 0;
|
|
4
|
+
const component_models_1 = require("../component-models");
|
|
5
|
+
/** This method waits while any Loader components are visible. */
|
|
6
|
+
async function waitForDataToLoad(parent) {
|
|
7
|
+
await new component_models_1.Loader(parent).waitFor();
|
|
8
|
+
}
|
|
9
|
+
exports.waitForDataToLoad = waitForDataToLoad;
|
|
10
|
+
//# sourceMappingURL=wait-for-data-to-load.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wait-for-data-to-load.js","sourceRoot":"","sources":["../../src/helpers/wait-for-data-to-load.ts"],"names":[],"mappings":";;;AAEA,0DAA6C;AAE7C,iEAAiE;AAC1D,KAAK,UAAU,iBAAiB,CACrC,MAA4C;IAE5C,MAAM,IAAI,yBAAM,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,CAAC;AACrC,CAAC;AAJD,8CAIC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Locator } from 'playwright-core';
|
|
2
|
+
/**
|
|
3
|
+
* This method waits for a locator to be in a specified state. If a timeout
|
|
4
|
+
* occurs, the method returns without raising an error.
|
|
5
|
+
*
|
|
6
|
+
* Use this in cases where a transitory locator is expected, but may be missed
|
|
7
|
+
* due to the polling nature of checking for locator state.
|
|
8
|
+
*/
|
|
9
|
+
export declare function waitForOrTimeout(locator: Locator, options: {
|
|
10
|
+
state?: 'attached' | 'detached' | 'visible' | 'hidden';
|
|
11
|
+
timeout?: number;
|
|
12
|
+
}): Promise<void>;
|
|
13
|
+
//# sourceMappingURL=wait-for-or-timeout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wait-for-or-timeout.d.ts","sourceRoot":"","sources":["../../src/helpers/wait-for-or-timeout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE;IACP,KAAK,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC;IACvD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GACA,OAAO,CAAC,IAAI,CAAC,CASf"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.waitForOrTimeout = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* This method waits for a locator to be in a specified state. If a timeout
|
|
6
|
+
* occurs, the method returns without raising an error.
|
|
7
|
+
*
|
|
8
|
+
* Use this in cases where a transitory locator is expected, but may be missed
|
|
9
|
+
* due to the polling nature of checking for locator state.
|
|
10
|
+
*/
|
|
11
|
+
async function waitForOrTimeout(locator, options) {
|
|
12
|
+
try {
|
|
13
|
+
await locator.waitFor(options);
|
|
14
|
+
}
|
|
15
|
+
catch (error) {
|
|
16
|
+
const msg = error.toString();
|
|
17
|
+
if (!msg.match(/Timeout \d+ms exceeded./)) {
|
|
18
|
+
throw error;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.waitForOrTimeout = waitForOrTimeout;
|
|
23
|
+
//# sourceMappingURL=wait-for-or-timeout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wait-for-or-timeout.js","sourceRoot":"","sources":["../../src/helpers/wait-for-or-timeout.ts"],"names":[],"mappings":";;;AAGA;;;;;;GAMG;AACI,KAAK,UAAU,gBAAgB,CACpC,OAAgB,EAChB,OAGC;IAED,IAAI;QACF,MAAM,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;KAChC;IAAC,OAAO,KAAU,EAAE;QACnB,MAAM,GAAG,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;QAC7B,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,yBAAyB,CAAC,EAAE;YACzC,MAAM,KAAK,CAAC;SACb;KACF;AACH,CAAC;AAfD,4CAeC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wait-for-page-transition.d.ts","sourceRoot":"","sources":["../../src/helpers/wait-for-page-transition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAGrD,2DAA2D;AAC3D,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,IAAI,GAAG,YAAY,GAC1B,OAAO,CAAC,IAAI,CAAC,CAaf"}
|