@axinom/mosaic-e2e-ui-selectors 0.2.2-rc.9 → 0.2.3-rc.0
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/CHANGELOG.md +8 -0
- package/dist/component-models/accordion.d.ts.map +1 -1
- package/dist/component-models/accordion.js +6 -20
- package/dist/component-models/accordion.js.map +1 -1
- package/dist/component-models/form/boolean-view-field.d.ts +13 -0
- package/dist/component-models/form/boolean-view-field.d.ts.map +1 -0
- package/dist/component-models/form/boolean-view-field.js +27 -0
- package/dist/component-models/form/boolean-view-field.js.map +1 -0
- package/dist/component-models/form/checkbox-field.d.ts +1 -1
- package/dist/component-models/form/checkbox-field.d.ts.map +1 -1
- package/dist/component-models/form/checkbox-field.js.map +1 -1
- package/dist/component-models/form/custom-tags-field.d.ts +1 -1
- package/dist/component-models/form/custom-tags-field.d.ts.map +1 -1
- package/dist/component-models/form/custom-tags-field.js +1 -1
- package/dist/component-models/form/custom-tags-field.js.map +1 -1
- package/dist/component-models/form/date-time-field.d.ts +9 -0
- package/dist/component-models/form/date-time-field.d.ts.map +1 -0
- package/dist/component-models/form/date-time-field.js +15 -0
- package/dist/component-models/form/date-time-field.js.map +1 -0
- package/dist/component-models/form/dynamic-data-list-field.d.ts.map +1 -1
- package/dist/component-models/form/dynamic-data-list-field.js +1 -2
- package/dist/component-models/form/dynamic-data-list-field.js.map +1 -1
- package/dist/component-models/form/file-upload-field.d.ts +1 -1
- package/dist/component-models/form/file-upload-field.d.ts.map +1 -1
- package/dist/component-models/form/file-upload-field.js.map +1 -1
- package/dist/component-models/form/generic-field.d.ts.map +1 -1
- package/dist/component-models/form/generic-field.js +2 -5
- package/dist/component-models/form/generic-field.js.map +1 -1
- package/dist/component-models/form/index.d.ts +6 -0
- package/dist/component-models/form/index.d.ts.map +1 -1
- package/dist/component-models/form/index.js +6 -0
- package/dist/component-models/form/index.js.map +1 -1
- package/dist/component-models/form/link-field.d.ts +13 -0
- package/dist/component-models/form/link-field.d.ts.map +1 -0
- package/dist/component-models/form/link-field.js +27 -0
- package/dist/component-models/form/link-field.js.map +1 -0
- package/dist/component-models/form/read-only-field.d.ts +1 -1
- package/dist/component-models/form/read-only-field.d.ts.map +1 -1
- package/dist/component-models/form/read-only-field.js.map +1 -1
- package/dist/component-models/form/read-only-text-field.d.ts +3 -1
- package/dist/component-models/form/read-only-text-field.d.ts.map +1 -1
- package/dist/component-models/form/read-only-text-field.js +7 -3
- package/dist/component-models/form/read-only-text-field.js.map +1 -1
- package/dist/component-models/form/select-field.d.ts +1 -1
- package/dist/component-models/form/select-field.d.ts.map +1 -1
- package/dist/component-models/form/select-field.js.map +1 -1
- package/dist/component-models/form/single-line-text-field.d.ts +1 -1
- package/dist/component-models/form/single-line-text-field.d.ts.map +1 -1
- package/dist/component-models/form/single-line-text-field.js.map +1 -1
- package/dist/component-models/form/tags-field.d.ts +23 -0
- package/dist/component-models/form/tags-field.d.ts.map +1 -0
- package/dist/component-models/form/tags-field.js +47 -0
- package/dist/component-models/form/tags-field.js.map +1 -0
- package/dist/component-models/form/text-area-field.d.ts +15 -0
- package/dist/component-models/form/text-area-field.d.ts.map +1 -0
- package/dist/component-models/form/text-area-field.js +33 -0
- package/dist/component-models/form/text-area-field.js.map +1 -0
- package/dist/component-models/form/toggle-button-field.d.ts +17 -0
- package/dist/component-models/form/toggle-button-field.d.ts.map +1 -0
- package/dist/component-models/form/toggle-button-field.js +31 -0
- package/dist/component-models/form/toggle-button-field.js.map +1 -0
- package/dist/component-models/form/untyped-form-field.d.ts +18 -0
- package/dist/component-models/form/untyped-form-field.d.ts.map +1 -1
- package/dist/component-models/form/untyped-form-field.js +19 -3
- package/dist/component-models/form/untyped-form-field.js.map +1 -1
- package/dist/component-models/index.d.ts +0 -1
- package/dist/component-models/index.d.ts.map +1 -1
- package/dist/component-models/index.js +0 -1
- package/dist/component-models/index.js.map +1 -1
- package/dist/component-models/landing-page-header.d.ts.map +1 -1
- package/dist/component-models/landing-page-header.js +1 -3
- package/dist/component-models/landing-page-header.js.map +1 -1
- package/dist/component-models/list-row.d.ts +3 -1
- package/dist/component-models/list-row.d.ts.map +1 -1
- package/dist/component-models/list-row.js +4 -3
- package/dist/component-models/list-row.js.map +1 -1
- package/dist/component-models/list.d.ts +1 -1
- package/dist/component-models/list.d.ts.map +1 -1
- package/dist/component-models/list.js +1 -1
- package/dist/component-models/list.js.map +1 -1
- package/dist/component-models/loader.d.ts.map +1 -1
- package/dist/component-models/loader.js +1 -3
- package/dist/component-models/loader.js.map +1 -1
- package/dist/component-models/message-bar.d.ts +10 -18
- package/dist/component-models/message-bar.d.ts.map +1 -1
- package/dist/component-models/message-bar.js +18 -37
- package/dist/component-models/message-bar.js.map +1 -1
- package/dist/component-models/modal/modal-content.d.ts.map +1 -1
- package/dist/component-models/modal/modal-content.js +1 -5
- package/dist/component-models/modal/modal-content.js.map +1 -1
- package/dist/component-models/modal/modal.d.ts.map +1 -1
- package/dist/component-models/modal/modal.js +1 -3
- package/dist/component-models/modal/modal.js.map +1 -1
- package/dist/component-models/modal/selection-explorer.d.ts +1 -1
- package/dist/component-models/modal/selection-explorer.js +1 -1
- package/dist/helpers/read-page-errors.js +1 -1
- package/dist/helpers/read-page-errors.js.map +1 -1
- package/package.json +2 -2
- package/dist/component-models/toggle-button.d.ts +0 -22
- package/dist/component-models/toggle-button.d.ts.map +0 -1
- package/dist/component-models/toggle-button.js +0 -32
- package/dist/component-models/toggle-button.js.map +0 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TagsField = void 0;
|
|
4
|
+
const form_field_1 = require("./form-field");
|
|
5
|
+
/**
|
|
6
|
+
* A model for a TagsField component.
|
|
7
|
+
*/
|
|
8
|
+
class TagsField extends form_field_1.TypedFormField {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
/** A locator to all the applied tags. Useful for getting a count. */
|
|
12
|
+
this.allTags = this.getLocator(`//*[@data-test-id="tag"]`);
|
|
13
|
+
}
|
|
14
|
+
/** @inheritdoc */
|
|
15
|
+
get fieldTypeValidator() {
|
|
16
|
+
return '[@data-test-type="Tags"]';
|
|
17
|
+
}
|
|
18
|
+
/** This method verifies the field type and adds a tag. */
|
|
19
|
+
async addTagByLabel(label) {
|
|
20
|
+
// sanity check
|
|
21
|
+
await this.verifyFieldType();
|
|
22
|
+
const select = this.getLocator('//select');
|
|
23
|
+
await select.selectOption({ label });
|
|
24
|
+
// wait for tag to be added
|
|
25
|
+
await this.getTagByLabel(label).waitFor({ state: 'visible' });
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* This method verifies the field type and removes a tag by value. The tag
|
|
29
|
+
* value must match exactly.
|
|
30
|
+
*/
|
|
31
|
+
async removeTagWithLabel(label) {
|
|
32
|
+
// sanity check
|
|
33
|
+
await this.verifyFieldType();
|
|
34
|
+
const button = this.getLocator(`//*[@data-test-id="tag" and .//*[text()="${label}"]] //*[@data-test-id="tags-delete"]`);
|
|
35
|
+
await button.click();
|
|
36
|
+
}
|
|
37
|
+
/** This method gets a tag by position. Position is 1 indexed. Negative numbers count from the end. */
|
|
38
|
+
getTag(position) {
|
|
39
|
+
return this.getLocator(`//*[@data-test-id="tag"]`, position);
|
|
40
|
+
}
|
|
41
|
+
/** This method get a tag by value. The tag value must match exactly. */
|
|
42
|
+
getTagByLabel(label) {
|
|
43
|
+
return this.getLocator(`//*[@data-test-id="tag" and .//*[text()="${label}"]]`);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.TagsField = TagsField;
|
|
47
|
+
//# sourceMappingURL=tags-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tags-field.js","sourceRoot":"","sources":["../../../src/component-models/form/tags-field.ts"],"names":[],"mappings":";;;AACA,6CAA8C;AAE9C;;GAEG;AACH,MAAa,SAAU,SAAQ,2BAAc;IAA7C;;QAME,qEAAqE;QAC5D,YAAO,GAAG,IAAI,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC;IAqCjE,CAAC;IA3CC,kBAAkB;IAClB,IAAuB,kBAAkB;QACvC,OAAO,0BAA0B,CAAC;IACpC,CAAC;IAKD,0DAA0D;IAC1D,KAAK,CAAC,aAAa,CAAC,KAAa;QAC/B,eAAe;QACf,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;QAC7B,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;QAC3C,MAAM,MAAM,CAAC,YAAY,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QAErC,2BAA2B;QAC3B,MAAM,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,kBAAkB,CAAC,KAAa;QACpC,eAAe;QACf,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;QAC7B,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAC5B,4CAA4C,KAAK,sCAAsC,CACxF,CAAC;QACF,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;IACvB,CAAC;IAED,sGAAsG;IACtG,MAAM,CAAC,QAAgB;QACrB,OAAO,IAAI,CAAC,UAAU,CAAC,0BAA0B,EAAE,QAAQ,CAAC,CAAC;IAC/D,CAAC;IAED,wEAAwE;IACxE,aAAa,CAAC,KAAa;QACzB,OAAO,IAAI,CAAC,UAAU,CACpB,4CAA4C,KAAK,KAAK,CACvD,CAAC;IACJ,CAAC;CACF;AA5CD,8BA4CC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TypedFormField } from './form-field';
|
|
2
|
+
/**
|
|
3
|
+
* A model for a TextAreaField component.
|
|
4
|
+
*/
|
|
5
|
+
export declare class TextAreaField extends TypedFormField {
|
|
6
|
+
/** @inheritdoc */
|
|
7
|
+
protected get fieldTypeValidator(): string;
|
|
8
|
+
/** A locator to the input element (<input value="...">). */
|
|
9
|
+
protected readonly input: import("playwright-core").Locator;
|
|
10
|
+
/** This method verifies the field type and sets the input value. */
|
|
11
|
+
setValue(value: string): Promise<void>;
|
|
12
|
+
/** This method verifies the field type and returns the input value. */
|
|
13
|
+
getValue(): Promise<string>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=text-area-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-area-field.d.ts","sourceRoot":"","sources":["../../../src/component-models/form/text-area-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C;;GAEG;AACH,qBAAa,aAAc,SAAQ,cAAc;IAC/C,kBAAkB;IAClB,cAAuB,kBAAkB,IAAI,MAAM,CAElD;IAED,4DAA4D;IAC5D,SAAS,CAAC,QAAQ,CAAC,KAAK,oCAAiC;IAEzD,oEAAoE;IAC9D,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAM5C,uEAAuE;IACjE,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC;CAKlC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TextAreaField = void 0;
|
|
4
|
+
const form_field_1 = require("./form-field");
|
|
5
|
+
/**
|
|
6
|
+
* A model for a TextAreaField component.
|
|
7
|
+
*/
|
|
8
|
+
class TextAreaField extends form_field_1.TypedFormField {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
/** A locator to the input element (<input value="...">). */
|
|
12
|
+
this.input = this.getLocator('//textarea');
|
|
13
|
+
}
|
|
14
|
+
/** @inheritdoc */
|
|
15
|
+
get fieldTypeValidator() {
|
|
16
|
+
return '[@data-test-type="TextArea"]';
|
|
17
|
+
}
|
|
18
|
+
/** This method verifies the field type and sets the input value. */
|
|
19
|
+
async setValue(value) {
|
|
20
|
+
// sanity check
|
|
21
|
+
await this.verifyFieldType();
|
|
22
|
+
await this.input.fill(value.toString());
|
|
23
|
+
}
|
|
24
|
+
/** This method verifies the field type and returns the input value. */
|
|
25
|
+
async getValue() {
|
|
26
|
+
var _a;
|
|
27
|
+
// sanity check
|
|
28
|
+
await this.verifyFieldType();
|
|
29
|
+
return (_a = (await this.input.inputValue())) !== null && _a !== void 0 ? _a : '';
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.TextAreaField = TextAreaField;
|
|
33
|
+
//# sourceMappingURL=text-area-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-area-field.js","sourceRoot":"","sources":["../../../src/component-models/form/text-area-field.ts"],"names":[],"mappings":";;;AAAA,6CAA8C;AAE9C;;GAEG;AACH,MAAa,aAAc,SAAQ,2BAAc;IAAjD;;QAME,4DAA4D;QACzC,UAAK,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;IAe3D,CAAC;IArBC,kBAAkB;IAClB,IAAuB,kBAAkB;QACvC,OAAO,8BAA8B,CAAC;IACxC,CAAC;IAKD,oEAAoE;IACpE,KAAK,CAAC,QAAQ,CAAC,KAAa;QAC1B,eAAe;QACf,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;QAC7B,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC1C,CAAC;IAED,uEAAuE;IACvE,KAAK,CAAC,QAAQ;;QACZ,eAAe;QACf,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;QAC7B,OAAO,MAAA,CAAC,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC,mCAAI,EAAE,CAAC;IAC/C,CAAC;CACF;AAtBD,sCAsBC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TypedFormField } from './form-field';
|
|
2
|
+
/**
|
|
3
|
+
* A model for a ToggleButtonField component.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ToggleButtonField extends TypedFormField {
|
|
6
|
+
/** @inheritdoc */
|
|
7
|
+
protected get fieldTypeValidator(): string;
|
|
8
|
+
/** A locator to the button element. */
|
|
9
|
+
protected readonly button: import("playwright-core").Locator;
|
|
10
|
+
/** A locator to the confirm button which may show after setting a value. */
|
|
11
|
+
readonly confirmButton: import("playwright-core").Locator;
|
|
12
|
+
/** This method toggles the button. */
|
|
13
|
+
toggle(): Promise<void>;
|
|
14
|
+
/** This method gets the current state of the button. */
|
|
15
|
+
isOn(): Promise<boolean>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=toggle-button-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle-button-field.d.ts","sourceRoot":"","sources":["../../../src/component-models/form/toggle-button-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,cAAc;IACnD,kBAAkB;IAClB,cAAuB,kBAAkB,IAAI,MAAM,CAElD;IAED,uCAAuC;IACvC,SAAS,CAAC,QAAQ,CAAC,MAAM,oCAA+B;IAExD,4EAA4E;IAC5E,QAAQ,CAAC,aAAa,oCAEpB;IAEF,sCAAsC;IAChC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAI7B,wDAAwD;IAClD,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC;CAI/B"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ToggleButtonField = void 0;
|
|
4
|
+
const form_field_1 = require("./form-field");
|
|
5
|
+
/**
|
|
6
|
+
* A model for a ToggleButtonField component.
|
|
7
|
+
*/
|
|
8
|
+
class ToggleButtonField extends form_field_1.TypedFormField {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
/** A locator to the button element. */
|
|
12
|
+
this.button = this.getLocator('//button');
|
|
13
|
+
/** A locator to the confirm button which may show after setting a value. */
|
|
14
|
+
this.confirmButton = this.getLocator('//button/following-sibling::*//*[@data-test-id="confirm"]');
|
|
15
|
+
}
|
|
16
|
+
/** @inheritdoc */
|
|
17
|
+
get fieldTypeValidator() {
|
|
18
|
+
return '[@data-test-type="ToggleButton"]';
|
|
19
|
+
}
|
|
20
|
+
/** This method toggles the button. */
|
|
21
|
+
async toggle() {
|
|
22
|
+
await this.button.click();
|
|
23
|
+
}
|
|
24
|
+
/** This method gets the current state of the button. */
|
|
25
|
+
async isOn() {
|
|
26
|
+
const checked = await this.button.getAttribute('data-test-checked');
|
|
27
|
+
return checked === 'true';
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.ToggleButtonField = ToggleButtonField;
|
|
31
|
+
//# sourceMappingURL=toggle-button-field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle-button-field.js","sourceRoot":"","sources":["../../../src/component-models/form/toggle-button-field.ts"],"names":[],"mappings":";;;AAAA,6CAA8C;AAE9C;;GAEG;AACH,MAAa,iBAAkB,SAAQ,2BAAc;IAArD;;QAME,uCAAuC;QACpB,WAAM,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;QAExD,4EAA4E;QACnE,kBAAa,GAAG,IAAI,CAAC,UAAU,CACtC,2DAA2D,CAC5D,CAAC;IAYJ,CAAC;IAvBC,kBAAkB;IAClB,IAAuB,kBAAkB;QACvC,OAAO,kCAAkC,CAAC;IAC5C,CAAC;IAUD,sCAAsC;IACtC,KAAK,CAAC,MAAM;QACV,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IAC5B,CAAC;IAED,wDAAwD;IACxD,KAAK,CAAC,IAAI;QACR,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAAC;QACpE,OAAO,OAAO,KAAK,MAAM,CAAC;IAC5B,CAAC;CACF;AAxBD,8CAwBC"}
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { FrameLocator, Page } from 'playwright-core';
|
|
2
|
+
import { BooleanViewField } from './boolean-view-field';
|
|
2
3
|
import { CheckboxField } from './checkbox-field';
|
|
3
4
|
import { CustomTagsField } from './custom-tags-field';
|
|
5
|
+
import { DateTimeField } from './date-time-field';
|
|
4
6
|
import { DynamicDataListField } from './dynamic-data-list-field';
|
|
5
7
|
import { FileUploadField } from './file-upload-field';
|
|
6
8
|
import { FormField, TypedFormField } from './form-field';
|
|
7
9
|
import { GenericField } from './generic-field';
|
|
10
|
+
import { LinkField } from './link-field';
|
|
8
11
|
import { RadioField } from './radio-field';
|
|
9
12
|
import { ReadOnlyField } from './read-only-field';
|
|
10
13
|
import { ReadOnlyTextField } from './read-only-text-field';
|
|
11
14
|
import { SelectField } from './select-field';
|
|
12
15
|
import { SingleLineTextField } from './single-line-text-field';
|
|
16
|
+
import { TagsField } from './tags-field';
|
|
17
|
+
import { TextAreaField } from './text-area-field';
|
|
18
|
+
import { ToggleButtonField } from './toggle-button-field';
|
|
13
19
|
/** Interface for a form field constructor */
|
|
14
20
|
export interface FieldConstructor<TField> {
|
|
15
21
|
new (parent: Page | FrameLocator, xpath: string): TField;
|
|
@@ -22,16 +28,22 @@ export declare class UntypedFormField extends FormField {
|
|
|
22
28
|
readonly content: import("playwright-core").Locator;
|
|
23
29
|
/** This method applies a model to this field. */
|
|
24
30
|
as: <TField extends TypedFormField>(type: FieldConstructor<TField>) => TField;
|
|
31
|
+
/** This method applies a BooleanViewField model to this field. */
|
|
32
|
+
asBooleanViewField: () => BooleanViewField;
|
|
25
33
|
/** This method applies a CheckboxField model to this field. */
|
|
26
34
|
asCheckboxField: () => CheckboxField;
|
|
27
35
|
/** This method applies a CustomTagsField model to this field. */
|
|
28
36
|
asCustomTagsField: () => CustomTagsField;
|
|
37
|
+
/** This method applies a DateTimeField model to this field. */
|
|
38
|
+
asDateTimeField: () => DateTimeField;
|
|
29
39
|
/** This method applies a DynamicDataListField model to this field. */
|
|
30
40
|
asDynamicDataListField: () => DynamicDataListField;
|
|
31
41
|
/** This method applies a FileUploadField model to this field. */
|
|
32
42
|
asFileUploadField: () => FileUploadField;
|
|
33
43
|
/** This method applies a GenericField model to this field. */
|
|
34
44
|
asGenericField: () => GenericField;
|
|
45
|
+
/** This method applies a LinkField model to this field. */
|
|
46
|
+
asLinkField: () => LinkField;
|
|
35
47
|
/** This method applies a RadioField model to this field. */
|
|
36
48
|
asRadioField: () => RadioField;
|
|
37
49
|
/** This method applies a ReadOnlyField model to this field. */
|
|
@@ -42,5 +54,11 @@ export declare class UntypedFormField extends FormField {
|
|
|
42
54
|
asSelectField: () => SelectField;
|
|
43
55
|
/** This method applies a SingleLineTextField model to this field. */
|
|
44
56
|
asSingleLineTextField: () => SingleLineTextField;
|
|
57
|
+
/** This method applies a TagsField model to this field. */
|
|
58
|
+
asTagsField: () => TagsField;
|
|
59
|
+
/** This method applies a TextAreaField model to this field. */
|
|
60
|
+
asTextAreaField: () => TextAreaField;
|
|
61
|
+
/** This method applies a ToggleButtonField model to this field. */
|
|
62
|
+
asToggleButtonField: () => ToggleButtonField;
|
|
45
63
|
}
|
|
46
64
|
//# sourceMappingURL=untyped-form-field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"untyped-form-field.d.ts","sourceRoot":"","sources":["../../../src/component-models/form/untyped-form-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA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AO,aAAa,CAA2B;IAE9D,mEAAmE;IACnE,mBAAmB,QAAO,iBAAiB,CAA+B;CAC3E"}
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UntypedFormField = void 0;
|
|
4
|
+
const boolean_view_field_1 = require("./boolean-view-field");
|
|
4
5
|
const checkbox_field_1 = require("./checkbox-field");
|
|
5
6
|
const custom_tags_field_1 = require("./custom-tags-field");
|
|
7
|
+
const date_time_field_1 = require("./date-time-field");
|
|
6
8
|
const dynamic_data_list_field_1 = require("./dynamic-data-list-field");
|
|
7
9
|
const file_upload_field_1 = require("./file-upload-field");
|
|
8
10
|
const form_field_1 = require("./form-field");
|
|
9
11
|
const generic_field_1 = require("./generic-field");
|
|
12
|
+
const link_field_1 = require("./link-field");
|
|
10
13
|
const radio_field_1 = require("./radio-field");
|
|
11
14
|
const read_only_field_1 = require("./read-only-field");
|
|
12
15
|
const read_only_text_field_1 = require("./read-only-text-field");
|
|
13
16
|
const select_field_1 = require("./select-field");
|
|
14
17
|
const single_line_text_field_1 = require("./single-line-text-field");
|
|
18
|
+
const tags_field_1 = require("./tags-field");
|
|
19
|
+
const text_area_field_1 = require("./text-area-field");
|
|
20
|
+
const toggle_button_field_1 = require("./toggle-button-field");
|
|
15
21
|
/**
|
|
16
22
|
* A model for a FormElementContainer component with methods to apply a model of a specific field type.
|
|
17
23
|
*/
|
|
@@ -19,21 +25,25 @@ class UntypedFormField extends form_field_1.FormField {
|
|
|
19
25
|
constructor() {
|
|
20
26
|
super(...arguments);
|
|
21
27
|
/** A locator to the form field content. */
|
|
22
|
-
this.content = this.getLocator(
|
|
23
|
-
// TODO: improve selector (maybe)
|
|
24
|
-
'//*[contains(@class, "form-element-content")]');
|
|
28
|
+
this.content = this.getLocator('//*[@data-test-id="form-field-content"]');
|
|
25
29
|
/** This method applies a model to this field. */
|
|
26
30
|
this.as = (type) => new type(this.root, this.xpath);
|
|
31
|
+
/** This method applies a BooleanViewField model to this field. */
|
|
32
|
+
this.asBooleanViewField = () => this.as(boolean_view_field_1.BooleanViewField);
|
|
27
33
|
/** This method applies a CheckboxField model to this field. */
|
|
28
34
|
this.asCheckboxField = () => this.as(checkbox_field_1.CheckboxField);
|
|
29
35
|
/** This method applies a CustomTagsField model to this field. */
|
|
30
36
|
this.asCustomTagsField = () => this.as(custom_tags_field_1.CustomTagsField);
|
|
37
|
+
/** This method applies a DateTimeField model to this field. */
|
|
38
|
+
this.asDateTimeField = () => this.as(date_time_field_1.DateTimeField);
|
|
31
39
|
/** This method applies a DynamicDataListField model to this field. */
|
|
32
40
|
this.asDynamicDataListField = () => this.as(dynamic_data_list_field_1.DynamicDataListField);
|
|
33
41
|
/** This method applies a FileUploadField model to this field. */
|
|
34
42
|
this.asFileUploadField = () => this.as(file_upload_field_1.FileUploadField);
|
|
35
43
|
/** This method applies a GenericField model to this field. */
|
|
36
44
|
this.asGenericField = () => this.as(generic_field_1.GenericField);
|
|
45
|
+
/** This method applies a LinkField model to this field. */
|
|
46
|
+
this.asLinkField = () => this.as(link_field_1.LinkField);
|
|
37
47
|
/** This method applies a RadioField model to this field. */
|
|
38
48
|
this.asRadioField = () => this.as(radio_field_1.RadioField);
|
|
39
49
|
/** This method applies a ReadOnlyField model to this field. */
|
|
@@ -44,6 +54,12 @@ class UntypedFormField extends form_field_1.FormField {
|
|
|
44
54
|
this.asSelectField = () => this.as(select_field_1.SelectField);
|
|
45
55
|
/** This method applies a SingleLineTextField model to this field. */
|
|
46
56
|
this.asSingleLineTextField = () => this.as(single_line_text_field_1.SingleLineTextField);
|
|
57
|
+
/** This method applies a TagsField model to this field. */
|
|
58
|
+
this.asTagsField = () => this.as(tags_field_1.TagsField);
|
|
59
|
+
/** This method applies a TextAreaField model to this field. */
|
|
60
|
+
this.asTextAreaField = () => this.as(text_area_field_1.TextAreaField);
|
|
61
|
+
/** This method applies a ToggleButtonField model to this field. */
|
|
62
|
+
this.asToggleButtonField = () => this.as(toggle_button_field_1.ToggleButtonField);
|
|
47
63
|
}
|
|
48
64
|
}
|
|
49
65
|
exports.UntypedFormField = UntypedFormField;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"untyped-form-field.js","sourceRoot":"","sources":["../../../src/component-models/form/untyped-form-field.ts"],"names":[],"mappings":";;;AACA,qDAAiD;AACjD,2DAAsD;AACtD,uEAAiE;AACjE,2DAAsD;AACtD,6CAAyD;AACzD,mDAA+C;AAC/C,+CAA2C;AAC3C,uDAAkD;AAClD,iEAA2D;AAC3D,iDAA6C;AAC7C,qEAA+D;
|
|
1
|
+
{"version":3,"file":"untyped-form-field.js","sourceRoot":"","sources":["../../../src/component-models/form/untyped-form-field.ts"],"names":[],"mappings":";;;AACA,6DAAwD;AACxD,qDAAiD;AACjD,2DAAsD;AACtD,uDAAkD;AAClD,uEAAiE;AACjE,2DAAsD;AACtD,6CAAyD;AACzD,mDAA+C;AAC/C,6CAAyC;AACzC,+CAA2C;AAC3C,uDAAkD;AAClD,iEAA2D;AAC3D,iDAA6C;AAC7C,qEAA+D;AAC/D,6CAAyC;AACzC,uDAAkD;AAClD,+DAA0D;AAO1D;;GAEG;AACH,MAAa,gBAAiB,SAAQ,sBAAS;IAA/C;;QACE,2CAA2C;QAClC,YAAO,GAAG,IAAI,CAAC,UAAU,CAAC,yCAAyC,CAAC,CAAC;QAE9E,iDAAiD;QACjD,OAAE,GAAG,CACH,IAA8B,EACtB,EAAE,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QAE7C,kEAAkE;QAClE,uBAAkB,GAAG,GAAqB,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,qCAAgB,CAAC,CAAC;QAEvE,+DAA+D;QAC/D,oBAAe,GAAG,GAAkB,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,8BAAa,CAAC,CAAC;QAE9D,iEAAiE;QACjE,sBAAiB,GA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,CAAC,CAAC;QAE9D,mEAAmE;QACnE,wBAAmB,GAAG,GAAsB,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,uCAAiB,CAAC,CAAC;IAC5E,CAAC;CAAA;AA1DD,4CA0DC"}
|
|
@@ -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,eAAe,CAAC;AAC9B,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,eAAe,CAAC;AAC9B,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"}
|
|
@@ -27,5 +27,4 @@ __exportStar(require("./loader"), exports);
|
|
|
27
27
|
__exportStar(require("./message-bar"), exports);
|
|
28
28
|
__exportStar(require("./modal"), exports);
|
|
29
29
|
__exportStar(require("./page-header"), exports);
|
|
30
|
-
__exportStar(require("./toggle-button"), exports);
|
|
31
30
|
//# 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,gDAA8B;AAC9B,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,gDAA8B;AAC9B,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"landing-page-header.d.ts","sourceRoot":"","sources":["../../src/component-models/landing-page-header.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,iBAAkB,SAAQ,cAAc;IACnD;;;;OAIG;gBAED,MAAM,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"landing-page-header.d.ts","sourceRoot":"","sources":["../../src/component-models/landing-page-header.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,iBAAkB,SAAQ,cAAc;IACnD;;;;OAIG;gBAED,MAAM,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,EAC5C,KAAK,SAA6C;IAKpD,sFAAsF;IACtF,QAAQ,CAAC,KAAK,oCAA8D;IAE5E,4FAA4F;IAC5F,QAAQ,CAAC,QAAQ,oCAEf;CACH"}
|
|
@@ -11,9 +11,7 @@ class LandingPageHeader extends component_model_1.ComponentModel {
|
|
|
11
11
|
* @param parent The parent playwright page, frame or component.
|
|
12
12
|
* @param xpath A relative xpath selector to this element from the parent.
|
|
13
13
|
*/
|
|
14
|
-
constructor(parent,
|
|
15
|
-
// TODO: Improve selector:
|
|
16
|
-
xpath = '//*[contains(@class, "landing-page-header-container")]') {
|
|
14
|
+
constructor(parent, xpath = '//*[@data-test-id="landing-page-header"]') {
|
|
17
15
|
super(parent, xpath);
|
|
18
16
|
/** A locator to the title on the landing page (data-test-id="landing-page-title"). */
|
|
19
17
|
this.title = this.getLocator('//*[@data-test-id="landing-page-title"]');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"landing-page-header.js","sourceRoot":"","sources":["../../src/component-models/landing-page-header.ts"],"names":[],"mappings":";;;AACA,wDAAoD;AAEpD;;GAEG;AACH,MAAa,iBAAkB,SAAQ,gCAAc;IACnD;;;;OAIG;IACH,YACE,MAA4C
|
|
1
|
+
{"version":3,"file":"landing-page-header.js","sourceRoot":"","sources":["../../src/component-models/landing-page-header.ts"],"names":[],"mappings":";;;AACA,wDAAoD;AAEpD;;GAEG;AACH,MAAa,iBAAkB,SAAQ,gCAAc;IACnD;;;;OAIG;IACH,YACE,MAA4C,EAC5C,KAAK,GAAG,0CAA0C;QAElD,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAGvB,sFAAsF;QAC7E,UAAK,GAAG,IAAI,CAAC,UAAU,CAAC,yCAAyC,CAAC,CAAC;QAE5E,4FAA4F;QACnF,aAAQ,GAAG,IAAI,CAAC,UAAU,CACjC,4CAA4C,CAC7C,CAAC;IARF,CAAC;CASF;AApBD,8CAoBC"}
|
|
@@ -25,8 +25,10 @@ export declare class ListHeader extends ComponentModel {
|
|
|
25
25
|
export declare class ListRow extends ComponentModel {
|
|
26
26
|
/** A locator to the action button for this list row (e.g. '>'). */
|
|
27
27
|
readonly actionButton: Locator;
|
|
28
|
-
/** A locator to the select button for this list row (e.g. '✓'
|
|
28
|
+
/** A locator to the select button for this list row (e.g. '✓'). */
|
|
29
29
|
readonly selectButton: Locator;
|
|
30
|
+
/** A locator to the checkbox for this list row (e.g. '☐'). */
|
|
31
|
+
readonly checkBox: Locator;
|
|
30
32
|
/** A model for the the inline menu for this row (e.g. '...'). */
|
|
31
33
|
readonly inlineMenu: InlineMenu;
|
|
32
34
|
/** This method finds a row cell by position. Position is 1 indexed. Negative numbers count from the end. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-row.d.ts","sourceRoot":"","sources":["../../src/component-models/list-row.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;GAEG;AACH,qBAAa,QAAS,SAAQ,cAAc;IAC1C,qDAAqD;IACrD,QAAQ,CAAC,OAAO,UAAqB;IAErC,4EAA4E;IACtE,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC;CAIlC;AAED;;GAEG;AACH,qBAAa,UAAW,SAAQ,cAAc;IAC5C,gHAAgH;IAChH,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAOnC,+FAA+F;IAC/F,sBAAsB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO;CAGtD;AAED;;GAEG;AACH,qBAAa,OAAQ,SAAQ,cAAc;IACzC,mEAAmE;IACnE,QAAQ,CAAC,YAAY,UAEnB;IAEF,
|
|
1
|
+
{"version":3,"file":"list-row.d.ts","sourceRoot":"","sources":["../../src/component-models/list-row.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;GAEG;AACH,qBAAa,QAAS,SAAQ,cAAc;IAC1C,qDAAqD;IACrD,QAAQ,CAAC,OAAO,UAAqB;IAErC,4EAA4E;IACtE,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC;CAIlC;AAED;;GAEG;AACH,qBAAa,UAAW,SAAQ,cAAc;IAC5C,gHAAgH;IAChH,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAOnC,+FAA+F;IAC/F,sBAAsB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO;CAGtD;AAED;;GAEG;AACH,qBAAa,OAAQ,SAAQ,cAAc;IACzC,mEAAmE;IACnE,QAAQ,CAAC,YAAY,UAEnB;IAEF,mEAAmE;IACnE,QAAQ,CAAC,YAAY,UAEnB;IAEF,8DAA8D;IAC9D,QAAQ,CAAC,QAAQ,UAEf;IAEF,iEAAiE;IACjE,QAAQ,CAAC,UAAU,aAAwB;IAE3C,4GAA4G;IAC5G,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ;IAQnC,2FAA2F;IAC3F,qBAAqB,CAAC,YAAY,EAAE,MAAM,GAAG,QAAQ;CAMtD"}
|
|
@@ -42,9 +42,10 @@ class ListRow extends component_model_1.ComponentModel {
|
|
|
42
42
|
super(...arguments);
|
|
43
43
|
/** A locator to the action button for this list row (e.g. '>'). */
|
|
44
44
|
this.actionButton = this.getLocator('//*[@data-test-id="list-entry-action"]');
|
|
45
|
-
/** A locator to the select button for this list row (e.g. '✓'
|
|
46
|
-
|
|
47
|
-
this
|
|
45
|
+
/** A locator to the select button for this list row (e.g. '✓'). */
|
|
46
|
+
this.selectButton = this.getLocator('//*[@data-test-id="list-entry-select-button"]');
|
|
47
|
+
/** A locator to the checkbox for this list row (e.g. '☐'). */
|
|
48
|
+
this.checkBox = this.getLocator('//*[@data-test-id="list-entry-checkbox"]');
|
|
48
49
|
/** A model for the the inline menu for this row (e.g. '...'). */
|
|
49
50
|
this.inlineMenu = new inline_menu_1.InlineMenu(this);
|
|
50
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-row.js","sourceRoot":"","sources":["../../src/component-models/list-row.ts"],"names":[],"mappings":";;;AACA,wDAAoD;AACpD,+CAA2C;AAE3C;;GAEG;AACH,MAAa,QAAS,SAAQ,gCAAc;IAA5C;;QACE,qDAAqD;QAC5C,YAAO,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;IAOvC,CAAC;IALC,4EAA4E;IAC5E,KAAK,CAAC,QAAQ;;QACZ,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACjD,OAAO,MAAA,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,mCAAI,EAAE,CAAC;IAClD,CAAC;CACF;AATD,4BASC;AAED;;GAEG;AACH,MAAa,UAAW,SAAQ,gCAAc;IAC5C,gHAAgH;IAChH,QAAQ,CAAC,QAAgB;QACvB,OAAO,IAAI,CAAC,UAAU,CACpB,gDAAgD,EAChD,QAAQ,CACT,CAAC;IACJ,CAAC;IAED,+FAA+F;IAC/F,sBAAsB,CAAC,YAAoB;QACzC,OAAO,IAAI,CAAC,UAAU,CAAC,iCAAiC,YAAY,IA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,CAAC,UAAU,CACjC,0CAA0C,CAC3C,CAAC;QAEF,iEAAiE;QACxD,eAAU,GAAG,IAAI,wBAAU,CAAC,IAAI,CAAC,CAAC;IAkB7C,CAAC;IAhBC,4GAA4G;IAC5G,OAAO,CAAC,QAAgB;QACtB,OAAO,IAAI,QAAQ,CACjB,IAAI,EACJ,yDAAyD,EACzD,QAAQ,CACT,CAAC;IACJ,CAAC;IAED,2FAA2F;IAC3F,qBAAqB,CAAC,YAAoB;QACxC,OAAO,IAAI,QAAQ,CACjB,IAAI,EACJ,0CAA0C,YAAY,IAAI,CAC3D,CAAC;IACJ,CAAC;CACF;AAnCD,0BAmCC"}
|
|
@@ -13,7 +13,7 @@ export declare class List extends ComponentModel {
|
|
|
13
13
|
constructor(parent: Page | FrameLocator | ComponentModel, xpath?: string);
|
|
14
14
|
/** A model for the list header row. */
|
|
15
15
|
readonly header: ListHeader;
|
|
16
|
-
/** A locator to the
|
|
16
|
+
/** A locator to the message which is displayed when data is loaded but no results were found. */
|
|
17
17
|
readonly emptyResultsMessage: import("playwright-core").Locator;
|
|
18
18
|
/** A locator to all visible entries. Useful for getting a count. */
|
|
19
19
|
readonly allVisibleRows: import("playwright-core").Locator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/component-models/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAEjD;;GAEG;AACH,qBAAa,IAAK,SAAQ,cAAc;IACtC;;;;OAIG;gBAED,MAAM,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,EAC5C,KAAK,SAA8B;IAKrC,uCAAuC;IACvC,QAAQ,CAAC,MAAM,aAA4D;IAE3E,
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/component-models/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAEjD;;GAEG;AACH,qBAAa,IAAK,SAAQ,cAAc;IACtC;;;;OAIG;gBAED,MAAM,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,EAC5C,KAAK,SAA8B;IAKrC,uCAAuC;IACvC,QAAQ,CAAC,MAAM,aAA4D;IAE3E,iGAAiG;IACjG,QAAQ,CAAC,mBAAmB,oCAE1B;IAEF,oEAAoE;IACpE,QAAQ,CAAC,cAAc,oCAAsD;IAE7E,8GAA8G;IAC9G,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAIjC;;;;OAIG;IACH,qBAAqB,CACnB,YAAY,EAAE,MAAM,EACpB,aAAa,EAAE,MAAM,EACrB,GAAG,CAAC,EAAE,MAAM,GACX,OAAO;IASV;;;;;;;;OAQG;IACG,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAWlC;;;;OAIG;IACG,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAOzD;;;;OAIG;IACG,sBAAsB,CAC1B,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;CAOpC"}
|
|
@@ -17,7 +17,7 @@ class List extends component_model_1.ComponentModel {
|
|
|
17
17
|
super(parent, xpath);
|
|
18
18
|
/** A model for the list header row. */
|
|
19
19
|
this.header = new list_row_1.ListHeader(this, '//*[@data-test-id="list-header"]');
|
|
20
|
-
/** A locator to the
|
|
20
|
+
/** A locator to the message which is displayed when data is loaded but no results were found. */
|
|
21
21
|
this.emptyResultsMessage = this.getLocator('//*[@data-test-id="list-empty"]');
|
|
22
22
|
/** A locator to all visible entries. Useful for getting a count. */
|
|
23
23
|
this.allVisibleRows = this.getLocator('//*[@data-test-id="list-entry"]');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../src/component-models/list.ts"],"names":[],"mappings":";;;AACA,wDAAoD;AACpD,wCAA2C;AAC3C,yCAAiD;AAEjD;;GAEG;AACH,MAAa,IAAK,SAAQ,gCAAc;IACtC;;;;OAIG;IACH,YACE,MAA4C,EAC5C,KAAK,GAAG,2BAA2B;QAEnC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAGvB,uCAAuC;QAC9B,WAAM,GAAG,IAAI,qBAAU,CAAC,IAAI,EAAE,kCAAkC,CAAC,CAAC;QAE3E,
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../src/component-models/list.ts"],"names":[],"mappings":";;;AACA,wDAAoD;AACpD,wCAA2C;AAC3C,yCAAiD;AAEjD;;GAEG;AACH,MAAa,IAAK,SAAQ,gCAAc;IACtC;;;;OAIG;IACH,YACE,MAA4C,EAC5C,KAAK,GAAG,2BAA2B;QAEnC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAGvB,uCAAuC;QAC9B,WAAM,GAAG,IAAI,qBAAU,CAAC,IAAI,EAAE,kCAAkC,CAAC,CAAC;QAE3E,iGAAiG;QACxF,wBAAmB,GAAG,IAAI,CAAC,UAAU,CAC5C,iCAAiC,CAClC,CAAC;QAEF,oEAAoE;QAC3D,mBAAc,GAAG,IAAI,CAAC,UAAU,CAAC,iCAAiC,CAAC,CAAC;IAX7E,CAAC;IAaD,8GAA8G;IAC9G,MAAM,CAAC,QAAgB;QACrB,OAAO,IAAI,kBAAO,CAAC,IAAI,EAAE,iCAAiC,EAAE,QAAQ,CAAC,CAAC;IACxE,CAAC;IAED;;;;OAIG;IACH,qBAAqB,CACnB,YAAoB,EACpB,aAAqB,EACrB,GAAY;QAEZ,MAAM,W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;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;GAEG;AACH,qBAAa,MAAO,SAAQ,cAAc;IACxC;;;;;OAKG;gBAED,MAAM,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../src/component-models/loader.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;;;;;OAKG;gBAED,MAAM,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,EAC5C,KAAK,SAAgC,EACrC,GAAG,SAAI;IAKT;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAI/B"}
|
|
@@ -12,9 +12,7 @@ class Loader extends component_model_1.ComponentModel {
|
|
|
12
12
|
* @param xpath A relative xpath selector to this element from the parent. Default: '//*[contains(@class="Message_container")]'.
|
|
13
13
|
* @param nth The position among all descendant loaders. Position 1 is the first. Default 1.
|
|
14
14
|
*/
|
|
15
|
-
constructor(parent,
|
|
16
|
-
// TODO: Improve selector
|
|
17
|
-
xpath = '//*[contains(@class, "Loader__container")]', nth = 1) {
|
|
15
|
+
constructor(parent, xpath = '//*[@data-test-id="loader"]', nth = 1) {
|
|
18
16
|
super(parent, xpath, nth);
|
|
19
17
|
}
|
|
20
18
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.js","sourceRoot":"","sources":["../../src/component-models/loader.ts"],"names":[],"mappings":";;;AACA,wDAAoD;AAEpD;;GAEG;AACH,MAAa,MAAO,SAAQ,gCAAc;IACxC;;;;;OAKG;IACH,YACE,MAA4C
|
|
1
|
+
{"version":3,"file":"loader.js","sourceRoot":"","sources":["../../src/component-models/loader.ts"],"names":[],"mappings":";;;AACA,wDAAoD;AAEpD;;GAEG;AACH,MAAa,MAAO,SAAQ,gCAAc;IACxC;;;;;OAKG;IACH,YACE,MAA4C,EAC5C,KAAK,GAAG,6BAA6B,EACrC,GAAG,GAAG,CAAC;QAEP,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;IAC5B,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,OAAO;QACX,mCAAmC;QACnC,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;IACvD,CAAC;CACF;AAvBD,wBAuBC"}
|
|
@@ -12,27 +12,19 @@ export declare class MessageBar extends ComponentModel {
|
|
|
12
12
|
constructor(parent: Page | FrameLocator | ComponentModel, xpath?: string);
|
|
13
13
|
/** A locator to the message title. */
|
|
14
14
|
readonly title: import("playwright-core").Locator;
|
|
15
|
+
/** A locator to the close button. */
|
|
16
|
+
readonly closeButton: import("playwright-core").Locator;
|
|
17
|
+
/** A locator to the retry button. */
|
|
18
|
+
readonly retryButton: import("playwright-core").Locator;
|
|
15
19
|
/** A locator to the message details button. */
|
|
16
20
|
readonly detailsButton: import("playwright-core").Locator;
|
|
17
21
|
/** A locator to the message details. */
|
|
18
22
|
readonly details: import("playwright-core").Locator;
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* A model for a MessageBar component which is showing an error.
|
|
28
|
-
* Use this for error messages which show below the page header.
|
|
29
|
-
* Any other type of message bar (info / warning) will not be matched by this component.
|
|
30
|
-
*/
|
|
31
|
-
export declare class ErrorMessageBar extends MessageBar {
|
|
32
|
-
/**
|
|
33
|
-
* A model for a MessageBar component. Use this for messages which show below the page header.
|
|
34
|
-
* @param parent The parent playwright page, frame or component model.
|
|
35
|
-
*/
|
|
36
|
-
constructor(parent: Page | FrameLocator | ComponentModel);
|
|
23
|
+
/** Only match if the message has type 'error'. */
|
|
24
|
+
asTypeError(): MessageBar;
|
|
25
|
+
/** Only match if the message has type 'info'. */
|
|
26
|
+
asTypeInfo(): MessageBar;
|
|
27
|
+
/** Only match if the message has type 'warning'. */
|
|
28
|
+
asTypeWarning(): MessageBar;
|
|
37
29
|
}
|
|
38
30
|
//# sourceMappingURL=message-bar.d.ts.map
|
|
@@ -1 +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;
|
|
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;gBAED,MAAM,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,EAC5C,KAAK,SAAqC;IAK5C,sCAAsC;IACtC,QAAQ,CAAC,KAAK,oCAAyD;IAEvE,qCAAqC;IACrC,QAAQ,CAAC,WAAW,oCAElB;IAEF,qCAAqC;IACrC,QAAQ,CAAC,WAAW,oCAElB;IAEF,+CAA+C;IAC/C,QAAQ,CAAC,aAAa,oCAEpB;IAEF,wCAAwC;IACxC,QAAQ,CAAC,OAAO,oCAEd;IAEF,kDAAkD;IAClD,WAAW,IAAI,UAAU;IAIzB,iDAAiD;IACjD,UAAU,IAAI,UAAU;IAIxB,oDAAoD;IACpD,aAAa,IAAI,UAAU;CAG5B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MessageBar = void 0;
|
|
4
4
|
const component_model_1 = require("../component-model");
|
|
5
5
|
/**
|
|
6
6
|
* A model for a MessageBar component. Use this for messages which show below the page header.
|
|
@@ -11,50 +11,31 @@ class MessageBar extends component_model_1.ComponentModel {
|
|
|
11
11
|
* @param parent The parent playwright page, frame or component model.
|
|
12
12
|
* @param xpath A relative xpath selector to this element from the parent. Default: '//*[contains(@class="Message_container")]'.
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
constructor(parent, xpath = '//*[contains(@class, "Message_container")]') {
|
|
14
|
+
constructor(parent, xpath = '//*[@data-test-id="message-bar"]') {
|
|
16
15
|
super(parent, xpath);
|
|
17
16
|
/** A locator to the message title. */
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
this.title = this.getLocator('//*[@data-test-id="message-title"]');
|
|
18
|
+
/** A locator to the close button. */
|
|
19
|
+
this.closeButton = this.getLocator('//*[@data-test-id="message-bar-close-button"]');
|
|
20
|
+
/** A locator to the retry button. */
|
|
21
|
+
this.retryButton = this.getLocator('//*[@data-test-id="message-bar-retry-button"]');
|
|
20
22
|
/** A locator to the message details button. */
|
|
21
|
-
|
|
22
|
-
this.detailsButton = this.getLocator('//*[contains(@class, "MessageBar_detailsIcon_")]');
|
|
23
|
+
this.detailsButton = this.getLocator('//*[@data-test-id="message-bar-details-button"]');
|
|
23
24
|
/** A locator to the message details. */
|
|
24
|
-
|
|
25
|
-
this.details = this.getLocator('//*[contains(@class, "Message_absolute_")]');
|
|
25
|
+
this.details = this.getLocator('//*[@data-test-id="message-bar-details"]');
|
|
26
26
|
}
|
|
27
|
-
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return this.getLocator('[contains(@class, "Message_hasError")]').isVisible();
|
|
27
|
+
/** Only match if the message has type 'error'. */
|
|
28
|
+
asTypeError() {
|
|
29
|
+
return new MessageBar(this, '[@data-test-type="error"]');
|
|
31
30
|
}
|
|
32
|
-
/**
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
return this.getLocator('[contains(@class, "Message_hasInfo")]').isVisible();
|
|
31
|
+
/** Only match if the message has type 'info'. */
|
|
32
|
+
asTypeInfo() {
|
|
33
|
+
return new MessageBar(this, '[@data-test-type="info"]');
|
|
36
34
|
}
|
|
37
|
-
/**
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return this.getLocator('[contains(@class, "Message_hasWarning")]').isVisible();
|
|
35
|
+
/** Only match if the message has type 'warning'. */
|
|
36
|
+
asTypeWarning() {
|
|
37
|
+
return new MessageBar(this, '[@data-test-type="warning"]');
|
|
41
38
|
}
|
|
42
39
|
}
|
|
43
40
|
exports.MessageBar = MessageBar;
|
|
44
|
-
/**
|
|
45
|
-
* A model for a MessageBar component which is showing an error.
|
|
46
|
-
* Use this for error messages which show below the page header.
|
|
47
|
-
* Any other type of message bar (info / warning) will not be matched by this component.
|
|
48
|
-
*/
|
|
49
|
-
class ErrorMessageBar extends MessageBar {
|
|
50
|
-
/**
|
|
51
|
-
* A model for a MessageBar component. Use this for messages which show below the page header.
|
|
52
|
-
* @param parent The parent playwright page, frame or component model.
|
|
53
|
-
*/
|
|
54
|
-
// TODO: Improve selector
|
|
55
|
-
constructor(parent) {
|
|
56
|
-
super(parent, '//*[contains(@class, "Message_container") and contains(@class, "Message_hasError")]');
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.ErrorMessageBar = ErrorMessageBar;
|
|
60
41
|
//# sourceMappingURL=message-bar.js.map
|