@digital-ai/devops-page-object-release 0.0.23 → 0.0.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/module.js CHANGED
@@ -1085,10 +1085,10 @@ class $8e39246218b802fc$export$e946776eae644790 extends (0, $9626bc9256ce31f7$ex
1085
1085
  await this.confirm.click();
1086
1086
  }
1087
1087
  async expectTaskTitle(taskTitle) {
1088
- (0, $hOLA6$expect)(await this.page.locator(".task-drawer .task-title-input .dot-view-mode-typography").innerText()).toContain(taskTitle);
1088
+ await (0, $hOLA6$expect)(this.page.locator(".task-drawer .task-title-input .dot-view-mode-typography")).toContainText(taskTitle);
1089
1089
  }
1090
1090
  async expectTypeToContain(taskType) {
1091
- (0, $hOLA6$expect)(await this.page.locator(".task-drawer .task-type").innerText()).toContain(taskType);
1091
+ await (0, $hOLA6$expect)(this.page.locator(".task-drawer .task-type")).toContainText(taskType);
1092
1092
  }
1093
1093
  async clickExpand() {
1094
1094
  await this.page.getByRole("tooltip", {
@@ -1179,6 +1179,10 @@ class $8e39246218b802fc$export$e946776eae644790 extends (0, $9626bc9256ce31f7$ex
1179
1179
  async expectStartDateAndEndDateToBeDisplayed() {
1180
1180
  await (0, $hOLA6$expect)(this.page.getByTestId("month-and-year")).toHaveCount(2);
1181
1181
  }
1182
+ async expectPhaseAndTaskTitleToContain(phaseName, taskTitle) {
1183
+ await (0, $hOLA6$expect)(this.page.locator(".task-header-top-path")).toContainText(phaseName);
1184
+ await this.expectTaskTitle(taskTitle);
1185
+ }
1182
1186
  }
1183
1187
 
1184
1188
 
@@ -1899,10 +1903,9 @@ class $43cbcdfccb6c2a76$export$f43492e8ac3c566 extends (0, $9626bc9256ce31f7$exp
1899
1903
  await (0, $hOLA6$expect)(this.page.locator(`.task`).filter({
1900
1904
  hasText: title
1901
1905
  }).locator(`.task-infos .failure-count.count-warning`)).toBeVisible();
1902
- const count = await this.page.locator(`.task`).filter({
1906
+ await (0, $hOLA6$expect)(this.page.locator(`.task`).filter({
1903
1907
  hasText: title
1904
- }).locator(`.task-infos .failure-count.count-warning`).innerText();
1905
- (0, $hOLA6$expect)(count).toContain(failCount.toString());
1908
+ }).locator(`.task-infos .failure-count.count-warning`)).toContainText(failCount.toString());
1906
1909
  }
1907
1910
  async expectTaskToHaveBeenDelayed(title) {
1908
1911
  await (0, $hOLA6$expect)(this.page.locator(`.task`).filter({
@@ -2572,7 +2575,7 @@ class $50c91328c9110668$export$b453f08936c58edb extends (0, $9626bc9256ce31f7$ex
2572
2575
  }
2573
2576
  async openFoldersPage() {
2574
2577
  await this.page.goto("./#/folders");
2575
- await (0, $hOLA6$expect)(this.page).toHaveTitle("Folders - Digital.ai Release");
2578
+ await (0, $hOLA6$expect)(this.page).toHaveTitle("Folders / Home - Digital.ai Release");
2576
2579
  return this;
2577
2580
  }
2578
2581
  async backToAllFolders() {
@@ -3016,7 +3019,7 @@ class $aa1ba8c8de3c0679$export$2fb4351c41ce6e7a extends (0, $9626bc9256ce31f7$ex
3016
3019
  async verifyProductAnnouncements() {
3017
3020
  await (0, $hOLA6$expect)(this.announcementIcon).toBeVisible();
3018
3021
  await this.announcementIcon.click();
3019
- (0, $hOLA6$expect)(await this.page.locator("#pendo-guide-container").innerText()).toContain("Product updates");
3022
+ await (0, $hOLA6$expect)(this.page.locator("#pendo-guide-container")).toContainText("Product updates");
3020
3023
  }
3021
3024
  async clickHelpIcon() {
3022
3025
  await this.page.getByTestId("right-side-nav").getByRole("button", {
@@ -4041,7 +4044,7 @@ class $c37c93912f458e81$export$60c3bfa6385e2a10 extends (0, $9626bc9256ce31f7$ex
4041
4044
  await (0, $hOLA6$expect)(this.page.locator(`.task-line:has-text("${title}") >> text="${user}"`).first()).toHaveCount(1);
4042
4045
  }
4043
4046
  async expectTaskTitle(taskTitle) {
4044
- (0, $hOLA6$expect)(await this.page.locator("#tasks0").innerText()).toContain(taskTitle);
4047
+ await (0, $hOLA6$expect)(this.page.locator("#tasks0")).toContainText(taskTitle);
4045
4048
  }
4046
4049
  async clickOnTasksLabel() {
4047
4050
  await this.page.getByLabel("breadcrumb").getByText("Tasks").click();