d5-testing-library 1.9.0-alpha.25 → 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-XODKZM4Z.mjs → chunk-65JZLK3D.mjs} +1 -1
- package/dist/{chunk-HEWGB3LN.mjs → chunk-CZII37EM.mjs} +1 -1
- package/dist/{chunk-QHAFTQME.mjs → chunk-JOWMIW3M.mjs} +1 -1
- package/dist/{chunk-DOVY5PTM.mjs → chunk-LQWT5EKX.mjs} +19 -8
- package/dist/cjs/d5-testing-library.cjs +16 -5
- package/dist/cjs/d5-testing-library.d.ts +1 -0
- package/dist/d5-testing-library.d.mts +1 -0
- package/dist/d5-testing-library.legacy-esm.js +4 -4
- package/dist/d5-testing-library.mjs +4 -4
- package/package.json +1 -1
- package/dist/FormEdit-FWJWC65L.mjs +0 -7
- package/dist/ListForm-RUHI6AA7.mjs +0 -7
- package/dist/TreeView-EC5HHS5G.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";
|
|
@@ -1571,15 +1571,15 @@ async function classDependencyInjector(formType) {
|
|
|
1571
1571
|
let SubFormFactoryClass;
|
|
1572
1572
|
switch (formType) {
|
|
1573
1573
|
case "1" /* LIST */:
|
|
1574
|
-
SubFormFactoryClass = (await import("./ListForm-
|
|
1574
|
+
SubFormFactoryClass = (await import("./ListForm-OYYZZRI3.mjs")).default;
|
|
1575
1575
|
break;
|
|
1576
1576
|
case "3" /* TREE */:
|
|
1577
|
-
SubFormFactoryClass = (await import("./TreeView-
|
|
1577
|
+
SubFormFactoryClass = (await import("./TreeView-XWHS6VAT.mjs")).default;
|
|
1578
1578
|
break;
|
|
1579
1579
|
case "2" /* EDIT */:
|
|
1580
1580
|
case "99" /* FREE_FORM */:
|
|
1581
1581
|
case "4" /* REPORT */:
|
|
1582
|
-
SubFormFactoryClass = (await import("./FormEdit-
|
|
1582
|
+
SubFormFactoryClass = (await import("./FormEdit-F4DI2VIN.mjs")).default;
|
|
1583
1583
|
break;
|
|
1584
1584
|
default:
|
|
1585
1585
|
throw new Error(`Unsupported form type ${formType}`);
|
|
@@ -1600,6 +1600,11 @@ var Form = class extends AbstractForm {
|
|
|
1600
1600
|
const value = await el.getAttribute("data-ismodal");
|
|
1601
1601
|
return value === "true";
|
|
1602
1602
|
}
|
|
1603
|
+
async isFullScreen() {
|
|
1604
|
+
const el = await this.getContainerElement();
|
|
1605
|
+
const value = await el.getAttribute("data-isfullscreen");
|
|
1606
|
+
return value === "true";
|
|
1607
|
+
}
|
|
1603
1608
|
/**
|
|
1604
1609
|
* Получение заголовка на формы
|
|
1605
1610
|
* @example
|
|
@@ -1608,17 +1613,23 @@ var Form = class extends AbstractForm {
|
|
|
1608
1613
|
* expect(await listForm.getTitleText()).toBe('MyFormTitle');
|
|
1609
1614
|
*/
|
|
1610
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
|
+
}
|
|
1611
1623
|
if (await this.isModal()) {
|
|
1612
|
-
const
|
|
1624
|
+
const titleEl = await this.driver.findElement(By16.css(`${this.popupContainerCssSelector} .popup-title`));
|
|
1613
1625
|
await waitElementIsVisible_default({
|
|
1614
|
-
element:
|
|
1626
|
+
element: titleEl,
|
|
1615
1627
|
driver: this.driver,
|
|
1616
1628
|
errorMessage: `Form title element is not visible`
|
|
1617
1629
|
});
|
|
1618
|
-
return
|
|
1630
|
+
return titleEl.getText();
|
|
1619
1631
|
}
|
|
1620
|
-
|
|
1621
|
-
return titleEl.getText();
|
|
1632
|
+
return getFullScreenTitle();
|
|
1622
1633
|
}
|
|
1623
1634
|
setSubFormMode() {
|
|
1624
1635
|
const testId = formTestId(this.formName);
|
|
@@ -3778,6 +3778,11 @@ var init_Form = __esm({
|
|
|
3778
3778
|
const value = await el.getAttribute("data-ismodal");
|
|
3779
3779
|
return value === "true";
|
|
3780
3780
|
}
|
|
3781
|
+
async isFullScreen() {
|
|
3782
|
+
const el = await this.getContainerElement();
|
|
3783
|
+
const value = await el.getAttribute("data-isfullscreen");
|
|
3784
|
+
return value === "true";
|
|
3785
|
+
}
|
|
3781
3786
|
/**
|
|
3782
3787
|
* Получение заголовка на формы
|
|
3783
3788
|
* @example
|
|
@@ -3786,17 +3791,23 @@ var init_Form = __esm({
|
|
|
3786
3791
|
* expect(await listForm.getTitleText()).toBe('MyFormTitle');
|
|
3787
3792
|
*/
|
|
3788
3793
|
async getTitleText() {
|
|
3794
|
+
const getFullScreenTitle = async () => {
|
|
3795
|
+
let titleEl = await this.driver.findElement(import_selenium_webdriver32.By.className("main-toolbar-form-title"));
|
|
3796
|
+
return titleEl.getText();
|
|
3797
|
+
};
|
|
3798
|
+
if (await this.isFullScreen()) {
|
|
3799
|
+
return getFullScreenTitle();
|
|
3800
|
+
}
|
|
3789
3801
|
if (await this.isModal()) {
|
|
3790
|
-
const
|
|
3802
|
+
const titleEl = await this.driver.findElement(import_selenium_webdriver32.By.css(`${this.popupContainerCssSelector} .popup-title`));
|
|
3791
3803
|
await waitElementIsVisible_default({
|
|
3792
|
-
element:
|
|
3804
|
+
element: titleEl,
|
|
3793
3805
|
driver: this.driver,
|
|
3794
3806
|
errorMessage: `Form title element is not visible`
|
|
3795
3807
|
});
|
|
3796
|
-
return
|
|
3808
|
+
return titleEl.getText();
|
|
3797
3809
|
}
|
|
3798
|
-
|
|
3799
|
-
return titleEl.getText();
|
|
3810
|
+
return getFullScreenTitle();
|
|
3800
3811
|
}
|
|
3801
3812
|
setSubFormMode() {
|
|
3802
3813
|
const testId = formTestId(this.formName);
|
|
@@ -348,6 +348,7 @@ declare abstract class Form extends AbstractForm {
|
|
|
348
348
|
protected popupContainerCssSelector: string;
|
|
349
349
|
protected constructor(driver: WebDriver);
|
|
350
350
|
protected isModal(): Promise<boolean>;
|
|
351
|
+
protected isFullScreen(): Promise<boolean>;
|
|
351
352
|
/**
|
|
352
353
|
* Получение заголовка на формы
|
|
353
354
|
* @example
|
|
@@ -348,6 +348,7 @@ declare abstract class Form extends AbstractForm {
|
|
|
348
348
|
protected popupContainerCssSelector: string;
|
|
349
349
|
protected constructor(driver: WebDriver);
|
|
350
350
|
protected isModal(): Promise<boolean>;
|
|
351
|
+
protected isFullScreen(): Promise<boolean>;
|
|
351
352
|
/**
|
|
352
353
|
* Получение заголовка на формы
|
|
353
354
|
* @example
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TreeView
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JOWMIW3M.mjs";
|
|
4
4
|
import {
|
|
5
5
|
FilterPanel,
|
|
6
6
|
FormFilterField,
|
|
7
7
|
ListForm,
|
|
8
8
|
PanelFilterField
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CZII37EM.mjs";
|
|
10
10
|
import {
|
|
11
11
|
FormEdit
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-65JZLK3D.mjs";
|
|
13
13
|
import {
|
|
14
14
|
AbstractButton,
|
|
15
15
|
AbstractElement,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
safeWait,
|
|
36
36
|
waitElementIsClickable_default,
|
|
37
37
|
waitElementIsVisible_default
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-LQWT5EKX.mjs";
|
|
39
39
|
|
|
40
40
|
// src/api/d5lib.js
|
|
41
41
|
var require_d5lib = __commonJS({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TreeView
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JOWMIW3M.mjs";
|
|
4
4
|
import {
|
|
5
5
|
FilterPanel,
|
|
6
6
|
FormFilterField,
|
|
7
7
|
ListForm,
|
|
8
8
|
PanelFilterField
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CZII37EM.mjs";
|
|
10
10
|
import {
|
|
11
11
|
FormEdit
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-65JZLK3D.mjs";
|
|
13
13
|
import {
|
|
14
14
|
AbstractButton,
|
|
15
15
|
AbstractElement,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
safeWait,
|
|
36
36
|
waitElementIsClickable_default,
|
|
37
37
|
waitElementIsVisible_default
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-LQWT5EKX.mjs";
|
|
39
39
|
|
|
40
40
|
// src/api/d5lib.js
|
|
41
41
|
var require_d5lib = __commonJS({
|
package/package.json
CHANGED