@digital-ai/devops-page-object-release 0.0.24 → 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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @digital-ai/devops-page-object-release
2
2
 
3
+ ## 0.0.25
4
+
5
+ ### Patch Changes
6
+
7
+ - e27e1a1: Fix innerText calls
8
+
3
9
  ## 0.0.24
4
10
 
5
11
  ### Patch Changes
package/dist/main.js CHANGED
@@ -2021,10 +2021,10 @@ class $6a21661eb4695574$export$e946776eae644790 extends (0, $f8721861c660dd88$ex
2021
2021
  await this.confirm.click();
2022
2022
  }
2023
2023
  async expectTaskTitle(taskTitle) {
2024
- (0, $kKeXs$playwrighttest.expect)(await this.page.locator(".task-drawer .task-title-input .dot-view-mode-typography").innerText()).toContain(taskTitle);
2024
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".task-drawer .task-title-input .dot-view-mode-typography")).toContainText(taskTitle);
2025
2025
  }
2026
2026
  async expectTypeToContain(taskType) {
2027
- (0, $kKeXs$playwrighttest.expect)(await this.page.locator(".task-drawer .task-type").innerText()).toContain(taskType);
2027
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".task-drawer .task-type")).toContainText(taskType);
2028
2028
  }
2029
2029
  async clickExpand() {
2030
2030
  await this.page.getByRole("tooltip", {
@@ -2115,6 +2115,10 @@ class $6a21661eb4695574$export$e946776eae644790 extends (0, $f8721861c660dd88$ex
2115
2115
  async expectStartDateAndEndDateToBeDisplayed() {
2116
2116
  await (0, $kKeXs$playwrighttest.expect)(this.page.getByTestId("month-and-year")).toHaveCount(2);
2117
2117
  }
2118
+ async expectPhaseAndTaskTitleToContain(phaseName, taskTitle) {
2119
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".task-header-top-path")).toContainText(phaseName);
2120
+ await this.expectTaskTitle(taskTitle);
2121
+ }
2118
2122
  }
2119
2123
 
2120
2124
 
@@ -2835,10 +2839,9 @@ class $9b9a8c3da392d020$export$f43492e8ac3c566 extends (0, $f8721861c660dd88$exp
2835
2839
  await (0, $kKeXs$playwrighttest.expect)(this.page.locator(`.task`).filter({
2836
2840
  hasText: title
2837
2841
  }).locator(`.task-infos .failure-count.count-warning`)).toBeVisible();
2838
- const count = await this.page.locator(`.task`).filter({
2842
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator(`.task`).filter({
2839
2843
  hasText: title
2840
- }).locator(`.task-infos .failure-count.count-warning`).innerText();
2841
- (0, $kKeXs$playwrighttest.expect)(count).toContain(failCount.toString());
2844
+ }).locator(`.task-infos .failure-count.count-warning`)).toContainText(failCount.toString());
2842
2845
  }
2843
2846
  async expectTaskToHaveBeenDelayed(title) {
2844
2847
  await (0, $kKeXs$playwrighttest.expect)(this.page.locator(`.task`).filter({
@@ -3952,7 +3955,7 @@ class $00fc48341ebf7de4$export$2fb4351c41ce6e7a extends (0, $f8721861c660dd88$ex
3952
3955
  async verifyProductAnnouncements() {
3953
3956
  await (0, $kKeXs$playwrighttest.expect)(this.announcementIcon).toBeVisible();
3954
3957
  await this.announcementIcon.click();
3955
- (0, $kKeXs$playwrighttest.expect)(await this.page.locator("#pendo-guide-container").innerText()).toContain("Product updates");
3958
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#pendo-guide-container")).toContainText("Product updates");
3956
3959
  }
3957
3960
  async clickHelpIcon() {
3958
3961
  await this.page.getByTestId("right-side-nav").getByRole("button", {
@@ -4977,7 +4980,7 @@ class $ed2d4739e27d43c1$export$60c3bfa6385e2a10 extends (0, $f8721861c660dd88$ex
4977
4980
  await (0, $kKeXs$playwrighttest.expect)(this.page.locator(`.task-line:has-text("${title}") >> text="${user}"`).first()).toHaveCount(1);
4978
4981
  }
4979
4982
  async expectTaskTitle(taskTitle) {
4980
- (0, $kKeXs$playwrighttest.expect)(await this.page.locator("#tasks0").innerText()).toContain(taskTitle);
4983
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#tasks0")).toContainText(taskTitle);
4981
4984
  }
4982
4985
  async clickOnTasksLabel() {
4983
4986
  await this.page.getByLabel("breadcrumb").getByText("Tasks").click();