d5-testing-library 1.9.0-alpha.23 → 1.9.0-alpha.25
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-FWJWC65L.mjs +7 -0
- package/dist/ListForm-RUHI6AA7.mjs +7 -0
- package/dist/TreeView-EC5HHS5G.mjs +8 -0
- package/dist/{chunk-NCV4XKVP.mjs → chunk-DOVY5PTM.mjs} +38 -3
- package/dist/{chunk-E3U3NGWP.mjs → chunk-HEWGB3LN.mjs} +23 -14
- package/dist/{chunk-XKVJNYJW.mjs → chunk-QHAFTQME.mjs} +1 -1
- package/dist/{chunk-IYW6EWXP.mjs → chunk-XODKZM4Z.mjs} +1 -1
- package/dist/cjs/d5-testing-library.cjs +2847 -13
- package/dist/cjs/d5-testing-library.d.ts +5 -3
- package/dist/d5-testing-library.d.mts +5 -3
- 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-QNCHZF44.mjs +0 -7
- package/dist/ListForm-XVX3MPPN.mjs +0 -7
- package/dist/TreeView-BD5ZFSEM.mjs +0 -8
|
@@ -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-RUHI6AA7.mjs")).default;
|
|
1543
1575
|
break;
|
|
1544
1576
|
case "3" /* TREE */:
|
|
1545
|
-
SubFormFactoryClass = (await import("./TreeView-
|
|
1577
|
+
SubFormFactoryClass = (await import("./TreeView-EC5HHS5G.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-FWJWC65L.mjs")).default;
|
|
1551
1583
|
break;
|
|
1552
1584
|
default:
|
|
1553
1585
|
throw new Error(`Unsupported form type ${formType}`);
|
|
@@ -1628,6 +1660,9 @@ var Form = class extends AbstractForm {
|
|
|
1628
1660
|
};
|
|
1629
1661
|
|
|
1630
1662
|
export {
|
|
1663
|
+
__require,
|
|
1664
|
+
__commonJS,
|
|
1665
|
+
__toESM,
|
|
1631
1666
|
config,
|
|
1632
1667
|
fixElementStaleError,
|
|
1633
1668
|
staleElementAction,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
waitElementIsClickable_default,
|
|
20
20
|
waitElementIsVisible_default,
|
|
21
21
|
withCustomTimeouts_default
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DOVY5PTM.mjs";
|
|
23
23
|
|
|
24
24
|
// src/pageObjects/elements/Table/Table.ts
|
|
25
25
|
import { By as By6 } from "selenium-webdriver";
|
|
@@ -77,21 +77,30 @@ var Cell = class extends AbstractElementWithParent {
|
|
|
77
77
|
async getDateValue(cellEl, cellElClass) {
|
|
78
78
|
const value = (await cellEl.getText()).trim();
|
|
79
79
|
if (value === "") return null;
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
80
|
+
const getDate = (stringDate) => {
|
|
81
|
+
const isWithTime = cellElClass.includes("with-time");
|
|
82
|
+
try {
|
|
83
|
+
if (isWithTime) {
|
|
84
|
+
const [datePart, timePart] = stringDate.split(", ");
|
|
85
|
+
const [day, month, year] = datePart.split(".").map(Number);
|
|
86
|
+
const [hours, minutes] = timePart.split(":").map(Number);
|
|
87
|
+
return new Date(year, month - 1, day, hours, minutes, 0, 0);
|
|
88
|
+
} else {
|
|
89
|
+
const [day, month, year] = stringDate.split(".").map(Number);
|
|
90
|
+
return new Date(Date.UTC(year, month - 1, day));
|
|
91
|
+
}
|
|
92
|
+
} catch (error) {
|
|
93
|
+
console.error(`Error parsing date value "${stringDate}":`, error);
|
|
94
|
+
return null;
|
|
90
95
|
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
96
|
+
};
|
|
97
|
+
const periodValue = value.split(" - ");
|
|
98
|
+
if (periodValue.length > 1) {
|
|
99
|
+
const dateFrom = getDate(periodValue[0]);
|
|
100
|
+
const dateTo = getDate(periodValue[1]);
|
|
101
|
+
return [dateFrom, dateTo];
|
|
94
102
|
}
|
|
103
|
+
return getDate(value);
|
|
95
104
|
}
|
|
96
105
|
async getElement() {
|
|
97
106
|
if (this._index == null) {
|