d5-testing-library 2.0.0-alpha.14 → 2.0.0-alpha.15
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-NBNO3NFM.mjs → FormEdit-V5FY7PL5.mjs} +1 -1
- package/dist/{ListForm-QQZ3HKUX.mjs → ListForm-DB2J5ED6.mjs} +1 -1
- package/dist/{TreeView-JTV7B5N6.mjs → TreeView-VOVTTSRC.mjs} +1 -1
- package/dist/{chunk-ZBAIOZXV.mjs → chunk-XN4OIA4L.mjs} +8 -12
- package/dist/cjs/d5-testing-library.cjs +5 -9
- package/dist/d5-testing-library.legacy-esm.js +1 -1
- package/dist/d5-testing-library.mjs +1 -1
- package/package.json +1 -1
|
@@ -3320,15 +3320,15 @@ async function classDependencyInjector(formType) {
|
|
|
3320
3320
|
let SubFormFactoryClass;
|
|
3321
3321
|
switch (formType) {
|
|
3322
3322
|
case "1" /* LIST */:
|
|
3323
|
-
SubFormFactoryClass = (await import("./ListForm-
|
|
3323
|
+
SubFormFactoryClass = (await import("./ListForm-DB2J5ED6.mjs")).default;
|
|
3324
3324
|
break;
|
|
3325
3325
|
case "3" /* TREE */:
|
|
3326
|
-
SubFormFactoryClass = (await import("./TreeView-
|
|
3326
|
+
SubFormFactoryClass = (await import("./TreeView-VOVTTSRC.mjs")).default;
|
|
3327
3327
|
break;
|
|
3328
3328
|
case "2" /* EDIT */:
|
|
3329
3329
|
case "99" /* FREE_FORM */:
|
|
3330
3330
|
case "4" /* REPORT */:
|
|
3331
|
-
SubFormFactoryClass = (await import("./FormEdit-
|
|
3331
|
+
SubFormFactoryClass = (await import("./FormEdit-V5FY7PL5.mjs")).default;
|
|
3332
3332
|
break;
|
|
3333
3333
|
default:
|
|
3334
3334
|
throw new Error(`Unsupported form type ${formType}`);
|
|
@@ -4789,19 +4789,18 @@ var TagBox = class extends AbstractDXEditorWithInput {
|
|
|
4789
4789
|
return this.dropdownList.listItem(text);
|
|
4790
4790
|
}
|
|
4791
4791
|
async setTagBoxInputValue(values) {
|
|
4792
|
-
const lastElement = values[values.length - 1];
|
|
4793
|
-
const input = this.getInputLocator();
|
|
4794
|
-
await input.click();
|
|
4795
4792
|
for (const value of values) {
|
|
4796
|
-
|
|
4793
|
+
const input = this.getInputLocator();
|
|
4794
|
+
await input.click();
|
|
4795
|
+
await this.selectOption(input, value);
|
|
4796
|
+
await this.confirmSelection();
|
|
4797
4797
|
}
|
|
4798
|
-
await this.confirmSelection();
|
|
4799
4798
|
}
|
|
4800
4799
|
async waitOptionSelection(value) {
|
|
4801
4800
|
const option = this.page.locator(`.dx-overlay-wrapper .dx-list-item[aria-selected="true"] >> text=${value}`);
|
|
4802
4801
|
await option.waitFor({ state: "visible", timeout: 5e3 });
|
|
4803
4802
|
}
|
|
4804
|
-
async selectOption(input, value
|
|
4803
|
+
async selectOption(input, value) {
|
|
4805
4804
|
try {
|
|
4806
4805
|
await dropDownOptionClick(value, this.page, false);
|
|
4807
4806
|
} catch {
|
|
@@ -4809,9 +4808,6 @@ var TagBox = class extends AbstractDXEditorWithInput {
|
|
|
4809
4808
|
await dropDownOptionClick(value, this.page, true);
|
|
4810
4809
|
}
|
|
4811
4810
|
await this.waitOptionSelection(value);
|
|
4812
|
-
if (value !== lastElement) {
|
|
4813
|
-
await input.pressSequentially("");
|
|
4814
|
-
}
|
|
4815
4811
|
}
|
|
4816
4812
|
async confirmSelection() {
|
|
4817
4813
|
const btnOk = this.page.locator(BTN_OK_SELECTOR);
|
|
@@ -808,19 +808,18 @@ var init_TagBox = __esm({
|
|
|
808
808
|
return this.dropdownList.listItem(text);
|
|
809
809
|
}
|
|
810
810
|
async setTagBoxInputValue(values) {
|
|
811
|
-
const lastElement = values[values.length - 1];
|
|
812
|
-
const input = this.getInputLocator();
|
|
813
|
-
await input.click();
|
|
814
811
|
for (const value of values) {
|
|
815
|
-
|
|
812
|
+
const input = this.getInputLocator();
|
|
813
|
+
await input.click();
|
|
814
|
+
await this.selectOption(input, value);
|
|
815
|
+
await this.confirmSelection();
|
|
816
816
|
}
|
|
817
|
-
await this.confirmSelection();
|
|
818
817
|
}
|
|
819
818
|
async waitOptionSelection(value) {
|
|
820
819
|
const option = this.page.locator(`.dx-overlay-wrapper .dx-list-item[aria-selected="true"] >> text=${value}`);
|
|
821
820
|
await option.waitFor({ state: "visible", timeout: 5e3 });
|
|
822
821
|
}
|
|
823
|
-
async selectOption(input, value
|
|
822
|
+
async selectOption(input, value) {
|
|
824
823
|
try {
|
|
825
824
|
await dropDownOptionClick(value, this.page, false);
|
|
826
825
|
} catch {
|
|
@@ -828,9 +827,6 @@ var init_TagBox = __esm({
|
|
|
828
827
|
await dropDownOptionClick(value, this.page, true);
|
|
829
828
|
}
|
|
830
829
|
await this.waitOptionSelection(value);
|
|
831
|
-
if (value !== lastElement) {
|
|
832
|
-
await input.pressSequentially("");
|
|
833
|
-
}
|
|
834
830
|
}
|
|
835
831
|
async confirmSelection() {
|
|
836
832
|
const btnOk = this.page.locator(BTN_OK_SELECTOR);
|