@digital-ai/devops-page-object-release 0.0.61 → 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/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
- async expectCommentToContain(comment) {
772
- await (0, $hOLA6$expect)(this.page.locator(".markdown-wrapper").getByText(comment)).toBeVisible();
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
  }