d5-testing-library 1.9.0-alpha.24 → 1.9.0-alpha.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/FormEdit-F4DI2VIN.mjs +7 -0
- package/dist/ListForm-OYYZZRI3.mjs +7 -0
- package/dist/TreeView-XWHS6VAT.mjs +8 -0
- package/dist/{chunk-Q5FDRZXL.mjs → chunk-65JZLK3D.mjs} +1 -1
- package/dist/{chunk-XPNFBXMQ.mjs → chunk-CZII37EM.mjs} +1 -1
- package/dist/{chunk-H53CPYV5.mjs → chunk-JOWMIW3M.mjs} +1 -1
- package/dist/{chunk-Z7TA6QHD.mjs → chunk-LQWT5EKX.mjs} +54 -8
- package/dist/cjs/d5-testing-library.cjs +2841 -5
- package/dist/cjs/d5-testing-library.d.ts +4 -1
- package/dist/d5-testing-library.d.mts +4 -1
- package/dist/d5-testing-library.legacy-esm.js +2827 -4
- package/dist/d5-testing-library.mjs +2827 -4
- package/package.json +1 -1
- package/dist/FormEdit-H3GSWWY6.mjs +0 -7
- package/dist/ListForm-QZ3MZ6X2.mjs +0 -7
- package/dist/TreeView-NK4DBSLL.mjs +0 -8
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
waitElementIsClickable_default,
|
|
20
20
|
waitElementIsVisible_default,
|
|
21
21
|
withCustomTimeouts_default
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-LQWT5EKX.mjs";
|
|
23
23
|
|
|
24
24
|
// src/pageObjects/elements/Table/Table.ts
|
|
25
25
|
import { By as By6 } from "selenium-webdriver";
|
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
+
}) : x)(function(x) {
|
|
10
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
|
+
});
|
|
13
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
14
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
|
+
};
|
|
16
|
+
var __copyProps = (to, from, except, desc) => {
|
|
17
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
|
+
for (let key of __getOwnPropNames(from))
|
|
19
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
20
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
21
|
+
}
|
|
22
|
+
return to;
|
|
23
|
+
};
|
|
24
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
25
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
27
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
28
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
30
|
+
mod
|
|
31
|
+
));
|
|
32
|
+
|
|
1
33
|
// src/config.ts
|
|
2
34
|
var Config = class _Config {
|
|
3
35
|
static instance;
|
|
@@ -1539,15 +1571,15 @@ async function classDependencyInjector(formType) {
|
|
|
1539
1571
|
let SubFormFactoryClass;
|
|
1540
1572
|
switch (formType) {
|
|
1541
1573
|
case "1" /* LIST */:
|
|
1542
|
-
SubFormFactoryClass = (await import("./ListForm-
|
|
1574
|
+
SubFormFactoryClass = (await import("./ListForm-OYYZZRI3.mjs")).default;
|
|
1543
1575
|
break;
|
|
1544
1576
|
case "3" /* TREE */:
|
|
1545
|
-
SubFormFactoryClass = (await import("./TreeView-
|
|
1577
|
+
SubFormFactoryClass = (await import("./TreeView-XWHS6VAT.mjs")).default;
|
|
1546
1578
|
break;
|
|
1547
1579
|
case "2" /* EDIT */:
|
|
1548
1580
|
case "99" /* FREE_FORM */:
|
|
1549
1581
|
case "4" /* REPORT */:
|
|
1550
|
-
SubFormFactoryClass = (await import("./FormEdit-
|
|
1582
|
+
SubFormFactoryClass = (await import("./FormEdit-F4DI2VIN.mjs")).default;
|
|
1551
1583
|
break;
|
|
1552
1584
|
default:
|
|
1553
1585
|
throw new Error(`Unsupported form type ${formType}`);
|
|
@@ -1568,6 +1600,11 @@ var Form = class extends AbstractForm {
|
|
|
1568
1600
|
const value = await el.getAttribute("data-ismodal");
|
|
1569
1601
|
return value === "true";
|
|
1570
1602
|
}
|
|
1603
|
+
async isFullScreen() {
|
|
1604
|
+
const el = await this.getContainerElement();
|
|
1605
|
+
const value = await el.getAttribute("data-isfullscreen");
|
|
1606
|
+
return value === "true";
|
|
1607
|
+
}
|
|
1571
1608
|
/**
|
|
1572
1609
|
* Получение заголовка на формы
|
|
1573
1610
|
* @example
|
|
@@ -1576,17 +1613,23 @@ var Form = class extends AbstractForm {
|
|
|
1576
1613
|
* expect(await listForm.getTitleText()).toBe('MyFormTitle');
|
|
1577
1614
|
*/
|
|
1578
1615
|
async getTitleText() {
|
|
1616
|
+
const getFullScreenTitle = async () => {
|
|
1617
|
+
let titleEl = await this.driver.findElement(By16.className("main-toolbar-form-title"));
|
|
1618
|
+
return titleEl.getText();
|
|
1619
|
+
};
|
|
1620
|
+
if (await this.isFullScreen()) {
|
|
1621
|
+
return getFullScreenTitle();
|
|
1622
|
+
}
|
|
1579
1623
|
if (await this.isModal()) {
|
|
1580
|
-
const
|
|
1624
|
+
const titleEl = await this.driver.findElement(By16.css(`${this.popupContainerCssSelector} .popup-title`));
|
|
1581
1625
|
await waitElementIsVisible_default({
|
|
1582
|
-
element:
|
|
1626
|
+
element: titleEl,
|
|
1583
1627
|
driver: this.driver,
|
|
1584
1628
|
errorMessage: `Form title element is not visible`
|
|
1585
1629
|
});
|
|
1586
|
-
return
|
|
1630
|
+
return titleEl.getText();
|
|
1587
1631
|
}
|
|
1588
|
-
|
|
1589
|
-
return titleEl.getText();
|
|
1632
|
+
return getFullScreenTitle();
|
|
1590
1633
|
}
|
|
1591
1634
|
setSubFormMode() {
|
|
1592
1635
|
const testId = formTestId(this.formName);
|
|
@@ -1628,6 +1671,9 @@ var Form = class extends AbstractForm {
|
|
|
1628
1671
|
};
|
|
1629
1672
|
|
|
1630
1673
|
export {
|
|
1674
|
+
__require,
|
|
1675
|
+
__commonJS,
|
|
1676
|
+
__toESM,
|
|
1631
1677
|
config,
|
|
1632
1678
|
fixElementStaleError,
|
|
1633
1679
|
staleElementAction,
|