@axinom/mosaic-e2e-ui-selectors 0.16.6 → 0.16.7-rc.1

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.
@@ -9,5 +9,6 @@ export declare class BooleanViewField extends TypedFormField {
9
9
  readonly content: import("playwright-core").Locator;
10
10
  /** This method verifies the field type and returns the field value. */
11
11
  getValue(): Promise<boolean>;
12
+ getStatusText(): Promise<string>;
12
13
  }
13
14
  //# sourceMappingURL=boolean-view-field.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"boolean-view-field.d.ts","sourceRoot":"","sources":["../../../src/component-models/form/boolean-view-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,cAAc;IAClD,kBAAkB;IAClB,cAAuB,kBAAkB,IAAI,MAAM,CAElD;IAED,6DAA6D;IAC7D,QAAQ,CAAC,OAAO,oCAA4D;IAE5E,uEAAuE;IACjE,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;CAMnC"}
1
+ {"version":3,"file":"boolean-view-field.d.ts","sourceRoot":"","sources":["../../../src/component-models/form/boolean-view-field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,cAAc;IAClD,kBAAkB;IAClB,cAAuB,kBAAkB,IAAI,MAAM,CAElD;IAED,6DAA6D;IAC7D,QAAQ,CAAC,OAAO,oCAA4D;IAE5E,uEAAuE;IACjE,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IAO5B,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC;CAKvC"}
@@ -22,6 +22,12 @@ class BooleanViewField extends form_field_1.TypedFormField {
22
22
  const value = await this.content.getAttribute('data-test-value');
23
23
  return value === 'true';
24
24
  }
25
+ async getStatusText() {
26
+ var _a;
27
+ await this.verifyFieldType();
28
+ const text = await this.content.textContent();
29
+ return (_a = text === null || text === void 0 ? void 0 : text.trim()) !== null && _a !== void 0 ? _a : '';
30
+ }
25
31
  }
26
32
  exports.BooleanViewField = BooleanViewField;
27
33
  //# sourceMappingURL=boolean-view-field.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"boolean-view-field.js","sourceRoot":"","sources":["../../../src/component-models/form/boolean-view-field.ts"],"names":[],"mappings":";;;AAAA,6CAA8C;AAE9C;;GAEG;AACH,MAAa,gBAAiB,SAAQ,2BAAc;IAApD;;QAME,6DAA6D;QACpD,YAAO,GAAG,IAAI,CAAC,UAAU,CAAC,uCAAuC,CAAC,CAAC;IAS9E,CAAC;IAfC,kBAAkB;IAClB,IAAuB,kBAAkB;QACvC,OAAO,iCAAiC,CAAC;IAC3C,CAAC;IAKD,uEAAuE;IACvE,KAAK,CAAC,QAAQ;QACZ,eAAe;QACf,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;QAC7B,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC;QACjE,OAAO,KAAK,KAAK,MAAM,CAAC;IAC1B,CAAC;CACF;AAhBD,4CAgBC"}
1
+ {"version":3,"file":"boolean-view-field.js","sourceRoot":"","sources":["../../../src/component-models/form/boolean-view-field.ts"],"names":[],"mappings":";;;AAAA,6CAA8C;AAE9C;;GAEG;AACH,MAAa,gBAAiB,SAAQ,2BAAc;IAApD;;QAME,6DAA6D;QACpD,YAAO,GAAG,IAAI,CAAC,UAAU,CAAC,uCAAuC,CAAC,CAAC;IAe9E,CAAC;IArBC,kBAAkB;IAClB,IAAuB,kBAAkB;QACvC,OAAO,iCAAiC,CAAC;IAC3C,CAAC;IAKD,uEAAuE;IACvE,KAAK,CAAC,QAAQ;QACZ,eAAe;QACf,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;QAC7B,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC;QACjE,OAAO,KAAK,KAAK,MAAM,CAAC;IAC1B,CAAC;IAED,KAAK,CAAC,aAAa;;QACjB,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;QAC7B,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;QAC9C,OAAO,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,EAAE,mCAAI,EAAE,CAAC;IAC5B,CAAC;CACF;AAtBD,4CAsBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axinom/mosaic-e2e-ui-selectors",
3
- "version": "0.16.6",
3
+ "version": "0.16.7-rc.1",
4
4
  "description": "Component models for testing Axinom Mosaic applications with Playwright.",
5
5
  "author": "Axinom",
6
6
  "license": "PROPRIETARY",
@@ -33,5 +33,5 @@
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "9482bdb8e36edf78e1a64c53e9b9f5bdfff9eac1"
36
+ "gitHead": "c179bcbd40d2b2fb81f314868f09e6680bd80b89"
37
37
  }
@@ -19,4 +19,10 @@ export class BooleanViewField extends TypedFormField {
19
19
  const value = await this.content.getAttribute('data-test-value');
20
20
  return value === 'true';
21
21
  }
22
+
23
+ async getStatusText(): Promise<string> {
24
+ await this.verifyFieldType();
25
+ const text = await this.content.textContent();
26
+ return text?.trim() ?? '';
27
+ }
22
28
  }