@digital-ai/devops-page-object-release 0.0.60 → 0.0.62
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/CHANGELOG.md +17 -0
- package/dist/main.js +128 -3
- package/dist/main.js.map +1 -1
- package/dist/module.js +128 -3
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +37 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -768,8 +768,25 @@ class $dfc4ce40cbd0eb71$var$DeleteVariableModel extends (0, $9626bc9256ce31f7$ex
|
|
|
768
768
|
|
|
769
769
|
|
|
770
770
|
class $69e86f559cdf2bd0$export$15d3f9b095bb5188 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
771
|
-
|
|
772
|
-
|
|
771
|
+
constructor(page){
|
|
772
|
+
super(page);
|
|
773
|
+
this.sortButton = this.page.locator(".dot-icon-btn[data-testid='task-comment-sort-btn']");
|
|
774
|
+
this.viewAllListItem = this.page.locator(".dot-li[data-id='all']");
|
|
775
|
+
this.systemListItem = this.page.locator(".dot-li[data-id='system']");
|
|
776
|
+
this.userListItem = this.page.locator(".dot-li[data-id='user']");
|
|
777
|
+
this.filterIconButton = this.page.locator(".dot-icon-btn[aria-label='filter icon button']");
|
|
778
|
+
this.commentFilterInput = this.page.locator("input#task-comment-filter");
|
|
779
|
+
this.markdownWrapper = this.page.locator(".markdown-wrapper");
|
|
780
|
+
this.tooltipPopper = this.page.locator(".MuiTooltip-popper");
|
|
781
|
+
}
|
|
782
|
+
async expectCommentToContain(comment, shouldContain = true) {
|
|
783
|
+
const commentLocator = this.markdownWrapper.getByText(comment);
|
|
784
|
+
if (shouldContain) await (0, $hOLA6$expect)(commentLocator).toBeVisible();
|
|
785
|
+
else await (0, $hOLA6$expect)(commentLocator).toHaveCount(0);
|
|
786
|
+
}
|
|
787
|
+
async expectCommentToContainAtPosition(comment, positionIndex) {
|
|
788
|
+
await (0, $hOLA6$expect)(this.markdownWrapper.nth(positionIndex).getByText(comment)).toBeVisible();
|
|
789
|
+
return this;
|
|
773
790
|
}
|
|
774
791
|
async expectCommentToContainLink(hrefLink) {
|
|
775
792
|
await (0, $hOLA6$expect)(this.page.locator(".markdown-wrapper a")).toHaveAttribute("href", hrefLink);
|
|
@@ -782,10 +799,40 @@ class $69e86f559cdf2bd0$export$15d3f9b095bb5188 extends (0, $9626bc9256ce31f7$ex
|
|
|
782
799
|
await this.page.locator(".icon-send-airplane").click();
|
|
783
800
|
return this;
|
|
784
801
|
}
|
|
802
|
+
async searchComments(filter) {
|
|
803
|
+
await this.commentFilterInput.fill(filter);
|
|
804
|
+
await this.commentFilterInput.press("Enter");
|
|
805
|
+
return this;
|
|
806
|
+
}
|
|
807
|
+
async clickOnFilterIconButton() {
|
|
808
|
+
await this.filterIconButton.click();
|
|
809
|
+
return this;
|
|
810
|
+
}
|
|
811
|
+
async clickOnUserListItemFilter() {
|
|
812
|
+
await this.userListItem.click();
|
|
813
|
+
return this;
|
|
814
|
+
}
|
|
815
|
+
async clickOnSystemListItemFilter() {
|
|
816
|
+
await this.systemListItem.click();
|
|
817
|
+
return this;
|
|
818
|
+
}
|
|
819
|
+
async clickOnViewAllListItemFilter() {
|
|
820
|
+
await this.viewAllListItem.click();
|
|
821
|
+
return this;
|
|
822
|
+
}
|
|
823
|
+
async clickOnSortIconButton() {
|
|
824
|
+
await this.sortButton.click();
|
|
825
|
+
return this;
|
|
826
|
+
}
|
|
785
827
|
async expectAuthorCommentsToBe(author) {
|
|
786
828
|
await (0, $hOLA6$expect)(this.page.locator(".task-comment-user h6")).toHaveText(author);
|
|
787
829
|
return this;
|
|
788
830
|
}
|
|
831
|
+
async expectSortIconButtonToHaveTooltipText(tooltipText) {
|
|
832
|
+
await this.sortButton.hover();
|
|
833
|
+
await (0, $hOLA6$expect)(this.tooltipPopper.getByText(tooltipText)).toBeVisible();
|
|
834
|
+
return this;
|
|
835
|
+
}
|
|
789
836
|
async expectCommentsDateTimeToBe(comment, date) {
|
|
790
837
|
const commentLocator = this.page.locator(".task-comment-body").filter({
|
|
791
838
|
has: this.page.locator(".markdown-switcher").getByText(comment)
|
|
@@ -1957,6 +2004,35 @@ class $499d3d8c8706756b$export$e3515314c13bc477 extends (0, $9626bc9256ce31f7$ex
|
|
|
1957
2004
|
|
|
1958
2005
|
|
|
1959
2006
|
|
|
2007
|
+
|
|
2008
|
+
|
|
2009
|
+
class $698039696ab2227e$export$60cb93c4adcee489 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
2010
|
+
constructor(page){
|
|
2011
|
+
super(page);
|
|
2012
|
+
this.logsFilterInput = this.page.locator("input#drawer-history-filter");
|
|
2013
|
+
this.sortButton = this.page.locator(".dot-icon-btn[data-testid='drawer-history-sort-btn']");
|
|
2014
|
+
this.logContentWrapper = this.page.locator(".content-right-message");
|
|
2015
|
+
}
|
|
2016
|
+
async expectLogToContain(log, shouldContain = true) {
|
|
2017
|
+
const logLocator = this.logContentWrapper.getByText(log);
|
|
2018
|
+
if (shouldContain) await (0, $hOLA6$expect)(logLocator).toBeVisible();
|
|
2019
|
+
else await (0, $hOLA6$expect)(logLocator).toHaveCount(0);
|
|
2020
|
+
}
|
|
2021
|
+
async expectLogToContainAtPosition(log, positionIndex) {
|
|
2022
|
+
await (0, $hOLA6$expect)(this.logContentWrapper.nth(positionIndex).getByText(log)).toBeVisible();
|
|
2023
|
+
return this;
|
|
2024
|
+
}
|
|
2025
|
+
async searchLogs(filter) {
|
|
2026
|
+
await this.logsFilterInput.fill(filter);
|
|
2027
|
+
return this;
|
|
2028
|
+
}
|
|
2029
|
+
async clickOnSortIconButton() {
|
|
2030
|
+
await this.sortButton.click();
|
|
2031
|
+
return this;
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
|
|
1960
2036
|
class $8e39246218b802fc$export$e946776eae644790 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
|
|
1961
2037
|
constructor(page){
|
|
1962
2038
|
super(page);
|
|
@@ -1975,6 +2051,7 @@ class $8e39246218b802fc$export$e946776eae644790 extends (0, $9626bc9256ce31f7$ex
|
|
|
1975
2051
|
this.failMenu = this.page.getByRole("menuitem", {
|
|
1976
2052
|
name: "Fail"
|
|
1977
2053
|
});
|
|
2054
|
+
this.history = new (0, $698039696ab2227e$export$60cb93c4adcee489)(page);
|
|
1978
2055
|
this.openMenu = this.page.getByRole("button", {
|
|
1979
2056
|
name: "arrow-down icon",
|
|
1980
2057
|
exact: true
|
|
@@ -2016,6 +2093,9 @@ class $8e39246218b802fc$export$e946776eae644790 extends (0, $9626bc9256ce31f7$ex
|
|
|
2016
2093
|
async openTagsRail() {
|
|
2017
2094
|
await this.openRail("Tags");
|
|
2018
2095
|
}
|
|
2096
|
+
async openHistoryRail() {
|
|
2097
|
+
await this.openRail("History");
|
|
2098
|
+
}
|
|
2019
2099
|
async openRail(rail) {
|
|
2020
2100
|
await this.taskDrawerLocator.locator(".task-navigation-rail").getByText(rail).click();
|
|
2021
2101
|
}
|
|
@@ -5274,7 +5354,9 @@ class $f1bf370bb7f683ca$export$1d7840d5cdc861d5 extends (0, $9626bc9256ce31f7$ex
|
|
|
5274
5354
|
await (0, $hOLA6$expect)(this.page.getByRole("heading", {
|
|
5275
5355
|
name: "System message"
|
|
5276
5356
|
})).toBeVisible();
|
|
5277
|
-
|
|
5357
|
+
}
|
|
5358
|
+
async closeConfigureSystemMessage() {
|
|
5359
|
+
await this.closeIcon.first().click();
|
|
5278
5360
|
}
|
|
5279
5361
|
async configureSystemMessage(message) {
|
|
5280
5362
|
await this.settingsIcon.click();
|
|
@@ -8008,6 +8090,26 @@ class $2cbb78eec86d0a9f$export$b8732a8d21d8bf63 extends $2cbb78eec86d0a9f$export
|
|
|
8008
8090
|
}).fill(value);
|
|
8009
8091
|
return this;
|
|
8010
8092
|
}
|
|
8093
|
+
async setLoginMessage(message) {
|
|
8094
|
+
await this.page.locator("div#loginMessage").click({
|
|
8095
|
+
force: true
|
|
8096
|
+
});
|
|
8097
|
+
const input = this.page.locator("input#loginMessage");
|
|
8098
|
+
const currentValue = await input.inputValue();
|
|
8099
|
+
if (currentValue.trim() !== "") await input.fill("");
|
|
8100
|
+
await input.fill(message);
|
|
8101
|
+
await input.press("Tab");
|
|
8102
|
+
return this;
|
|
8103
|
+
}
|
|
8104
|
+
async clearLoginMessage() {
|
|
8105
|
+
await this.page.locator("div#loginMessage").click({
|
|
8106
|
+
force: true
|
|
8107
|
+
});
|
|
8108
|
+
const input = this.page.locator("input#loginMessage");
|
|
8109
|
+
await input.fill("");
|
|
8110
|
+
await input.press("Tab");
|
|
8111
|
+
return this;
|
|
8112
|
+
}
|
|
8011
8113
|
async setHeaderColor(colorName) {
|
|
8012
8114
|
await this.page.locator(".color-picker button").click({
|
|
8013
8115
|
force: true
|
|
@@ -8531,6 +8633,17 @@ class $4444bee76761dfb1$export$f14c0e3f98d164c0 extends (0, $9626bc9256ce31f7$ex
|
|
|
8531
8633
|
await this.page.waitForTimeout(1000);
|
|
8532
8634
|
await this.closePendoModalWindow();
|
|
8533
8635
|
}
|
|
8636
|
+
async loginWithoutReload(userName, password) {
|
|
8637
|
+
let loadTriggered = false;
|
|
8638
|
+
this.page.on("load", ()=>{
|
|
8639
|
+
loadTriggered = true;
|
|
8640
|
+
});
|
|
8641
|
+
await this.page.evaluate(()=>{
|
|
8642
|
+
window.location.hash = "#tasks";
|
|
8643
|
+
});
|
|
8644
|
+
(0, $hOLA6$expect)(loadTriggered).toBe(false);
|
|
8645
|
+
await this.login(userName, password);
|
|
8646
|
+
}
|
|
8534
8647
|
/**
|
|
8535
8648
|
* Logout as authenticated user
|
|
8536
8649
|
*/ async logout() {
|
|
@@ -8556,6 +8669,18 @@ class $4444bee76761dfb1$export$f14c0e3f98d164c0 extends (0, $9626bc9256ce31f7$ex
|
|
|
8556
8669
|
await this.page.waitForTimeout(1000);
|
|
8557
8670
|
if (await this.page.locator("._pendo-close-guide").count() > 0) await this.page.locator("._pendo-close-guide").click();
|
|
8558
8671
|
}
|
|
8672
|
+
async expectUserNotVisible() {
|
|
8673
|
+
const tooltip = this.page.locator("top-toolbar .avatar-wrapper .dot-tooltip");
|
|
8674
|
+
await tooltip.waitFor({
|
|
8675
|
+
state: "hidden"
|
|
8676
|
+
});
|
|
8677
|
+
}
|
|
8678
|
+
async expectUserVisible() {
|
|
8679
|
+
const tooltip = this.page.locator("top-toolbar .avatar-wrapper .dot-tooltip");
|
|
8680
|
+
await tooltip.waitFor({
|
|
8681
|
+
state: "visible"
|
|
8682
|
+
});
|
|
8683
|
+
}
|
|
8559
8684
|
}
|
|
8560
8685
|
|
|
8561
8686
|
|