@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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @digital-ai/devops-page-object-release
2
2
 
3
+ ## 0.0.62
4
+
5
+ ### Patch Changes
6
+
7
+ - c4bc6f9: S-121350 `Release - History/Activity rail` page objects
8
+
3
9
  ## 0.0.61
4
10
 
5
11
  ### Patch Changes
package/dist/main.js CHANGED
@@ -1704,8 +1704,25 @@ class $59543fc69900e8db$var$DeleteVariableModel extends (0, $f8721861c660dd88$ex
1704
1704
 
1705
1705
 
1706
1706
  class $6c924a95a765a086$export$15d3f9b095bb5188 extends (0, $f8721861c660dd88$export$2b65d1d97338f32b) {
1707
- async expectCommentToContain(comment) {
1708
- await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".markdown-wrapper").getByText(comment)).toBeVisible();
1707
+ constructor(page){
1708
+ super(page);
1709
+ this.sortButton = this.page.locator(".dot-icon-btn[data-testid='task-comment-sort-btn']");
1710
+ this.viewAllListItem = this.page.locator(".dot-li[data-id='all']");
1711
+ this.systemListItem = this.page.locator(".dot-li[data-id='system']");
1712
+ this.userListItem = this.page.locator(".dot-li[data-id='user']");
1713
+ this.filterIconButton = this.page.locator(".dot-icon-btn[aria-label='filter icon button']");
1714
+ this.commentFilterInput = this.page.locator("input#task-comment-filter");
1715
+ this.markdownWrapper = this.page.locator(".markdown-wrapper");
1716
+ this.tooltipPopper = this.page.locator(".MuiTooltip-popper");
1717
+ }
1718
+ async expectCommentToContain(comment, shouldContain = true) {
1719
+ const commentLocator = this.markdownWrapper.getByText(comment);
1720
+ if (shouldContain) await (0, $kKeXs$playwrighttest.expect)(commentLocator).toBeVisible();
1721
+ else await (0, $kKeXs$playwrighttest.expect)(commentLocator).toHaveCount(0);
1722
+ }
1723
+ async expectCommentToContainAtPosition(comment, positionIndex) {
1724
+ await (0, $kKeXs$playwrighttest.expect)(this.markdownWrapper.nth(positionIndex).getByText(comment)).toBeVisible();
1725
+ return this;
1709
1726
  }
1710
1727
  async expectCommentToContainLink(hrefLink) {
1711
1728
  await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".markdown-wrapper a")).toHaveAttribute("href", hrefLink);
@@ -1718,10 +1735,40 @@ class $6c924a95a765a086$export$15d3f9b095bb5188 extends (0, $f8721861c660dd88$ex
1718
1735
  await this.page.locator(".icon-send-airplane").click();
1719
1736
  return this;
1720
1737
  }
1738
+ async searchComments(filter) {
1739
+ await this.commentFilterInput.fill(filter);
1740
+ await this.commentFilterInput.press("Enter");
1741
+ return this;
1742
+ }
1743
+ async clickOnFilterIconButton() {
1744
+ await this.filterIconButton.click();
1745
+ return this;
1746
+ }
1747
+ async clickOnUserListItemFilter() {
1748
+ await this.userListItem.click();
1749
+ return this;
1750
+ }
1751
+ async clickOnSystemListItemFilter() {
1752
+ await this.systemListItem.click();
1753
+ return this;
1754
+ }
1755
+ async clickOnViewAllListItemFilter() {
1756
+ await this.viewAllListItem.click();
1757
+ return this;
1758
+ }
1759
+ async clickOnSortIconButton() {
1760
+ await this.sortButton.click();
1761
+ return this;
1762
+ }
1721
1763
  async expectAuthorCommentsToBe(author) {
1722
1764
  await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".task-comment-user h6")).toHaveText(author);
1723
1765
  return this;
1724
1766
  }
1767
+ async expectSortIconButtonToHaveTooltipText(tooltipText) {
1768
+ await this.sortButton.hover();
1769
+ await (0, $kKeXs$playwrighttest.expect)(this.tooltipPopper.getByText(tooltipText)).toBeVisible();
1770
+ return this;
1771
+ }
1725
1772
  async expectCommentsDateTimeToBe(comment, date) {
1726
1773
  const commentLocator = this.page.locator(".task-comment-body").filter({
1727
1774
  has: this.page.locator(".markdown-switcher").getByText(comment)
@@ -2893,6 +2940,35 @@ class $1fbdec5dc9cde599$export$e3515314c13bc477 extends (0, $f8721861c660dd88$ex
2893
2940
 
2894
2941
 
2895
2942
 
2943
+
2944
+
2945
+ class $ce493860594d5685$export$60cb93c4adcee489 extends (0, $f8721861c660dd88$export$2b65d1d97338f32b) {
2946
+ constructor(page){
2947
+ super(page);
2948
+ this.logsFilterInput = this.page.locator("input#drawer-history-filter");
2949
+ this.sortButton = this.page.locator(".dot-icon-btn[data-testid='drawer-history-sort-btn']");
2950
+ this.logContentWrapper = this.page.locator(".content-right-message");
2951
+ }
2952
+ async expectLogToContain(log, shouldContain = true) {
2953
+ const logLocator = this.logContentWrapper.getByText(log);
2954
+ if (shouldContain) await (0, $kKeXs$playwrighttest.expect)(logLocator).toBeVisible();
2955
+ else await (0, $kKeXs$playwrighttest.expect)(logLocator).toHaveCount(0);
2956
+ }
2957
+ async expectLogToContainAtPosition(log, positionIndex) {
2958
+ await (0, $kKeXs$playwrighttest.expect)(this.logContentWrapper.nth(positionIndex).getByText(log)).toBeVisible();
2959
+ return this;
2960
+ }
2961
+ async searchLogs(filter) {
2962
+ await this.logsFilterInput.fill(filter);
2963
+ return this;
2964
+ }
2965
+ async clickOnSortIconButton() {
2966
+ await this.sortButton.click();
2967
+ return this;
2968
+ }
2969
+ }
2970
+
2971
+
2896
2972
  class $6a21661eb4695574$export$e946776eae644790 extends (0, $f8721861c660dd88$export$2b65d1d97338f32b) {
2897
2973
  constructor(page){
2898
2974
  super(page);
@@ -2911,6 +2987,7 @@ class $6a21661eb4695574$export$e946776eae644790 extends (0, $f8721861c660dd88$ex
2911
2987
  this.failMenu = this.page.getByRole("menuitem", {
2912
2988
  name: "Fail"
2913
2989
  });
2990
+ this.history = new (0, $ce493860594d5685$export$60cb93c4adcee489)(page);
2914
2991
  this.openMenu = this.page.getByRole("button", {
2915
2992
  name: "arrow-down icon",
2916
2993
  exact: true
@@ -2952,6 +3029,9 @@ class $6a21661eb4695574$export$e946776eae644790 extends (0, $f8721861c660dd88$ex
2952
3029
  async openTagsRail() {
2953
3030
  await this.openRail("Tags");
2954
3031
  }
3032
+ async openHistoryRail() {
3033
+ await this.openRail("History");
3034
+ }
2955
3035
  async openRail(rail) {
2956
3036
  await this.taskDrawerLocator.locator(".task-navigation-rail").getByText(rail).click();
2957
3037
  }