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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  FormEdit
3
- } from "./chunk-ZBAIOZXV.mjs";
3
+ } from "./chunk-XN4OIA4L.mjs";
4
4
  export {
5
5
  FormEdit as default
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ListForm
3
- } from "./chunk-ZBAIOZXV.mjs";
3
+ } from "./chunk-XN4OIA4L.mjs";
4
4
  export {
5
5
  ListForm as default
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TreeView
3
- } from "./chunk-ZBAIOZXV.mjs";
3
+ } from "./chunk-XN4OIA4L.mjs";
4
4
  export {
5
5
  TreeView as default
6
6
  };
@@ -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-QQZ3HKUX.mjs")).default;
3323
+ SubFormFactoryClass = (await import("./ListForm-DB2J5ED6.mjs")).default;
3324
3324
  break;
3325
3325
  case "3" /* TREE */:
3326
- SubFormFactoryClass = (await import("./TreeView-JTV7B5N6.mjs")).default;
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-NBNO3NFM.mjs")).default;
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
- await this.selectOption(input, value, lastElement);
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, lastElement) {
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
- await this.selectOption(input, value, lastElement);
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, lastElement) {
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);
@@ -25,7 +25,7 @@ import {
25
25
  readonlyLocator,
26
26
  wait,
27
27
  waitElementIsVisible_default
28
- } from "./chunk-ZBAIOZXV.mjs";
28
+ } from "./chunk-XN4OIA4L.mjs";
29
29
  export {
30
30
  AbstractPage,
31
31
  ApiRequest,
@@ -25,7 +25,7 @@ import {
25
25
  readonlyLocator,
26
26
  wait,
27
27
  waitElementIsVisible_default
28
- } from "./chunk-ZBAIOZXV.mjs";
28
+ } from "./chunk-XN4OIA4L.mjs";
29
29
  export {
30
30
  AbstractPage,
31
31
  ApiRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "d5-testing-library",
3
- "version": "2.0.0-alpha.14",
3
+ "version": "2.0.0-alpha.15",
4
4
  "description": "e2e testing D5 projects",
5
5
  "main": "dist/cjs/d5-testing-library.cjs",
6
6
  "module": "dist/d5-testing-library.legacy-esm.js",