@axinom/mosaic-e2e-ui-selectors 0.16.8-rc.4 → 0.16.8-rc.6
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.
|
@@ -12,6 +12,8 @@ export declare class Actions extends ComponentModel {
|
|
|
12
12
|
constructor(parent: Page | FrameLocator | ComponentModel, xpath?: string);
|
|
13
13
|
/** A locator to the confirm button which may show after clicking an action. */
|
|
14
14
|
readonly confirmButton: Locator;
|
|
15
|
+
/** A locator to the confirm button which may show after clicking an action. */
|
|
16
|
+
readonly quickViewButton: Locator;
|
|
15
17
|
/** This method finds an action button by position. Position is 1 indexed. Negative numbers count from the end. */
|
|
16
18
|
getAction(position: number): Locator;
|
|
17
19
|
/** This method finds an action button by label. The label must match exactly. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/component-models/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;GAEG;AACH,qBAAa,OAAQ,SAAQ,cAAc;IACzC;;;;OAIG;gBAED,MAAM,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,EAC5C,KAAK,SAAiC;IAKxC,+EAA+E;IAC/E,QAAQ,CAAC,aAAa,UAEpB;IAEF,kHAAkH;IAClH,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAIpC,iFAAiF;IACjF,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;CAKzC"}
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/component-models/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;GAEG;AACH,qBAAa,OAAQ,SAAQ,cAAc;IACzC;;;;OAIG;gBAED,MAAM,EAAE,IAAI,GAAG,YAAY,GAAG,cAAc,EAC5C,KAAK,SAAiC;IAKxC,+EAA+E;IAC/E,QAAQ,CAAC,aAAa,UAEpB;IAEF,+EAA+E;IAC/E,QAAQ,CAAC,eAAe,UAEf;IAET,kHAAkH;IAClH,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAIpC,iFAAiF;IACjF,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;CAKzC"}
|
|
@@ -15,6 +15,8 @@ class Actions extends component_model_1.ComponentModel {
|
|
|
15
15
|
super(parent, xpath);
|
|
16
16
|
/** A locator to the confirm button which may show after clicking an action. */
|
|
17
17
|
this.confirmButton = this.getGlobalLocator(`//*[@data-test-id="action"]//*[@data-test-id="confirm"]`);
|
|
18
|
+
/** A locator to the confirm button which may show after clicking an action. */
|
|
19
|
+
this.quickViewButton = this.getGlobalLocator(`//*[@data-test-id="action" and .//span[text()="Quick View"]]`).nth(0);
|
|
18
20
|
}
|
|
19
21
|
/** This method finds an action button by position. Position is 1 indexed. Negative numbers count from the end. */
|
|
20
22
|
getAction(position) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../src/component-models/actions.ts"],"names":[],"mappings":";;;AACA,wDAAoD;AAEpD;;GAEG;AACH,MAAa,OAAQ,SAAQ,gCAAc;IACzC;;;;OAIG;IACH,YACE,MAA4C,EAC5C,KAAK,GAAG,8BAA8B;QAEtC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAGvB,+EAA+E;QACtE,kBAAa,GAAG,IAAI,CAAC,gBAAgB,CAC5C,yDAAyD,CAC1D,CAAC;
|
|
1
|
+
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../src/component-models/actions.ts"],"names":[],"mappings":";;;AACA,wDAAoD;AAEpD;;GAEG;AACH,MAAa,OAAQ,SAAQ,gCAAc;IACzC;;;;OAIG;IACH,YACE,MAA4C,EAC5C,KAAK,GAAG,8BAA8B;QAEtC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAGvB,+EAA+E;QACtE,kBAAa,GAAG,IAAI,CAAC,gBAAgB,CAC5C,yDAAyD,CAC1D,CAAC;QAEF,+EAA+E;QACtE,oBAAe,GAAG,IAAI,CAAC,gBAAgB,CAC9C,8DAA8D,CAC/D,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAVT,CAAC;IAYD,kHAAkH;IAClH,SAAS,CAAC,QAAgB;QACxB,OAAO,IAAI,CAAC,gBAAgB,CAAC,6BAA6B,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC5E,CAAC;IAED,iFAAiF;IACjF,gBAAgB,CAAC,KAAa;QAC5B,OAAO,IAAI,CAAC,gBAAgB,CAC1B,yEAAyE,KAAK,KAAK,CACpF,CAAC;IACJ,CAAC;CACF;AAlCD,0BAkCC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axinom/mosaic-e2e-ui-selectors",
|
|
3
|
-
"version": "0.16.8-rc.
|
|
3
|
+
"version": "0.16.8-rc.6",
|
|
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": "
|
|
36
|
+
"gitHead": "c288f8688b992acac7f1f1e912a4748041a9a7ce"
|
|
37
37
|
}
|
|
@@ -22,6 +22,11 @@ export class Actions extends ComponentModel {
|
|
|
22
22
|
`//*[@data-test-id="action"]//*[@data-test-id="confirm"]`,
|
|
23
23
|
);
|
|
24
24
|
|
|
25
|
+
/** A locator to the confirm button which may show after clicking an action. */
|
|
26
|
+
readonly quickViewButton = this.getGlobalLocator(
|
|
27
|
+
`//*[@data-test-id="action" and .//span[text()="Quick View"]]`,
|
|
28
|
+
).nth(0);
|
|
29
|
+
|
|
25
30
|
/** This method finds an action button by position. Position is 1 indexed. Negative numbers count from the end. */
|
|
26
31
|
getAction(position: number): Locator {
|
|
27
32
|
return this.getGlobalLocator('//*[@data-test-id="action"]').nth(position);
|