@digital-ai/devops-page-object-release 0.0.18 → 0.0.19

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
@@ -93,6 +93,18 @@ class $5359280e98d97ff9$export$a678525e79c4ccc4 extends (0, $9626bc9256ce31f7$ex
93
93
  await this.releaseCreatePage.create();
94
94
  await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Flow")).toBeVisible();
95
95
  }
96
+ async gotoListView() {
97
+ await this.page.getByRole("tab", {
98
+ name: "release icon List"
99
+ }).click();
100
+ await (0, $hOLA6$expect)(this.page.locator(".release-list")).toBeVisible();
101
+ }
102
+ async gotoCalendarView() {
103
+ await this.page.getByRole("tab", {
104
+ name: "calendar icon Calendar"
105
+ }).click();
106
+ await (0, $hOLA6$expect)(this.page.locator(".tl-viewport")).toBeVisible();
107
+ }
96
108
  }
97
109
 
98
110
 
@@ -399,7 +411,7 @@ class $90bb70a7e909e500$export$519356f6c50361f7 extends (0, $9626bc9256ce31f7$ex
399
411
  async clickEditDependency(dependencies) {
400
412
  const depOptionsIcon = this.page.locator(".dependency").filter({
401
413
  has: this.page.getByLabel(dependencies)
402
- }).locator(".actions");
414
+ }).first().locator(".actions");
403
415
  await depOptionsIcon.isVisible();
404
416
  await depOptionsIcon.click();
405
417
  const frame = this.page.getByTestId("undefined-menu");
@@ -1045,9 +1057,51 @@ class $87bbb6d35ad31a00$export$f8f26dd395d7e1bd extends (0, $9626bc9256ce31f7$ex
1045
1057
  exact: true
1046
1058
  }).click();
1047
1059
  }
1060
+ async openNestedMenuItem(nestedMenuItem) {
1061
+ await this.page.locator(".MuiList-root li").getByText(nestedMenuItem, {
1062
+ exact: true
1063
+ }).scrollIntoViewIfNeeded();
1064
+ await this.page.locator(".MuiList-root li").getByText(nestedMenuItem, {
1065
+ exact: true
1066
+ }).click();
1067
+ }
1048
1068
  async clickCloseIcon() {
1049
1069
  await this.closeIcon.click();
1050
1070
  }
1071
+ async clickOnStatusField() {
1072
+ await this.page.locator(".ci-filter-status.ng-isolate-scope").click();
1073
+ }
1074
+ async clickOnStatus(statusNames) {
1075
+ await this.clickOnStatusClearAll();
1076
+ await this.clickOnStatusField();
1077
+ for(let i = 0; i < statusNames.length; i++)await this.page.locator(`i.xl-icon.icon-s.checkbox[data='${statusNames[i]}']`).click();
1078
+ // Clicking outside to close the grid dropdown
1079
+ await this.page.getByText("Status").click();
1080
+ }
1081
+ async clickOnStatusClearAll() {
1082
+ await this.clickOnStatusField();
1083
+ await this.page.locator("a.xl-react-link", {
1084
+ hasText: "Clear all"
1085
+ }).click();
1086
+ await this.page.getByText("Status").click();
1087
+ }
1088
+ async clickOnStatusSelectAll() {
1089
+ await this.clickOnStatusField();
1090
+ await this.page.locator("a.xl-react-link", {
1091
+ hasText: "Select all"
1092
+ }).click();
1093
+ await this.page.getByText("Status").click();
1094
+ }
1095
+ async setOrderBy(orderBy) {
1096
+ await this.page.locator(".order-by-filter .btn:first-child").click();
1097
+ await this.page.locator(`.order-by-filter .bootstrap-link:has-text('${orderBy}')`).click();
1098
+ }
1099
+ async setSearchFilter(filterText) {
1100
+ await this.page.locator(".searchFilter").fill(filterText);
1101
+ }
1102
+ async clearSearchFilter() {
1103
+ await this.page.locator(".searchFilter").clear();
1104
+ }
1051
1105
  }
1052
1106
 
1053
1107
 
@@ -1160,9 +1214,9 @@ class $43cbcdfccb6c2a76$export$f43492e8ac3c566 extends (0, $9626bc9256ce31f7$exp
1160
1214
  await (0, $hOLA6$expect)(this.page.locator(`.task:has-text('${title}').planned`)).toBeVisible();
1161
1215
  }
1162
1216
  async expectTaskCompletedInAdvance(taskTitle) {
1163
- await (0, $hOLA6$expect)(this.page.locator("#release-content").getByRole("list").locator("div").filter({
1217
+ await (0, $hOLA6$expect)(this.page.locator("#release-content .completed_in_advance .task-title").filter({
1164
1218
  hasText: taskTitle
1165
- }).locator('span.pull-right.ng-binding.ng-scope:has-text("Completed on")')).toBeVisible();
1219
+ })).toBeVisible();
1166
1220
  }
1167
1221
  async expectTaskPending(taskTitle) {
1168
1222
  await (0, $hOLA6$expect)(this.page.locator(".task.pending").getByText(taskTitle, {
@@ -1564,146 +1618,51 @@ class $b14c3492cf934ea2$export$e40b5d3c74b04c89 {
1564
1618
 
1565
1619
 
1566
1620
 
1567
-
1568
-
1569
- class $d13e78163af94d50$export$9b9454a7f137e99b extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
1621
+ class $4cdce1306be47ecd$export$eace2be4de1d3377 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
1570
1622
  constructor(page){
1571
1623
  super(page);
1572
1624
  this.util = new (0, $87bbb6d35ad31a00$export$f8f26dd395d7e1bd)(page);
1573
1625
  this.addName = page.locator('.xl-react-components input[placeholder="Add..."]');
1574
1626
  this.addDescription = page.getByPlaceholder("Set description...");
1575
- }
1576
- async clickNewDeliveryPattern() {
1577
- await this.page.getByTestId("dot-button").click();
1578
- await (0, $hOLA6$expect)(this.page.getByRole("heading", {
1579
- name: "Create delivery pattern"
1580
- })).toBeVisible();
1581
- }
1582
- async setPatternName(patternName) {
1583
- await this.addName.click();
1584
- await this.addName.clear();
1585
- await this.addName.fill(patternName);
1586
- }
1587
- async setPatternDescription(patternDescription) {
1588
- await this.page.getByPlaceholder("Set description...").click();
1589
- await this.page.getByPlaceholder("Set description...").clear();
1590
- await this.page.getByPlaceholder("Set description...").fill(patternDescription);
1591
- }
1592
- async enableAutoComplete() {
1593
- await this.page.getByRole("checkbox").check();
1594
- }
1595
- async disableAutoComplete() {
1596
- await this.page.getByRole("checkbox").uncheck();
1597
- }
1598
- async setDuration(month, days, hours) {
1599
- await this.page.getByRole("group", {
1600
- name: "Pattern details"
1601
- }).getByRole("textbox").click();
1602
- await this.page.locator('input[name="months"]').click();
1603
- await this.page.locator('input[name="months"]').fill(month.toString());
1604
- await this.page.locator('input[name="days"]').click();
1605
- await this.page.locator('input[name="days"]').fill(days.toString());
1606
- await this.page.locator('input[name="hours"]').click();
1607
- await this.page.locator('input[name="hours"]').fill(hours.toString());
1608
- }
1609
- async createNewPattern(patternName, patternDescription) {
1610
- await this.clickNewDeliveryPattern();
1611
- await this.setPatternName(patternName);
1612
- await this.setPatternDescription(patternDescription);
1613
- await (0, $hOLA6$expect)(this.page.locator(".action-toolbar-actions button").filter({
1614
- hasText: "Create"
1615
- })).toBeEnabled();
1616
- await this.page.locator(".action-toolbar-actions button").filter({
1617
- hasText: "Create"
1618
- }).click({
1619
- force: true
1627
+ this.searchForDelivery = page.getByPlaceholder("Search for deliveries...", {
1628
+ exact: true
1620
1629
  });
1621
- await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Delivery flow")).toBeVisible();
1622
1630
  }
1623
- async clickEditPatternIcon(patternName) {
1624
- await this.page.locator(".delivery-pattern-row").filter({
1625
- hasText: patternName
1626
- }).locator(".edit").click();
1627
- await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Delivery flow")).toBeVisible();
1628
- }
1629
- async clickCopyPatternIcon(patternName) {
1630
- await this.page.locator(".delivery-pattern-row").filter({
1631
- hasText: patternName
1632
- }).locator(".copy").click();
1633
- await (0, $hOLA6$expect)(this.page.getByText("Copy delivery pattern")).toBeVisible();
1634
- }
1635
- async filterPatternByName(patternName) {
1636
- await this.page.getByPlaceholder("Filter by name...").click();
1637
- await this.page.getByPlaceholder("Filter by name...").clear();
1638
- await this.page.getByPlaceholder("Filter by name...").fill(patternName);
1639
- await this.page.getByPlaceholder("Filter by name...").press("Enter");
1640
- await (0, $hOLA6$expect)(this.page.locator(".delivery-pattern-row").filter({
1641
- hasText: patternName
1642
- })).toBeVisible();
1643
- }
1644
- async openProperties() {
1631
+ async filterDeliveryByName(deliveryName) {
1632
+ await this.searchForDelivery.click();
1633
+ await this.searchForDelivery.clear();
1634
+ await this.searchForDelivery.fill(deliveryName);
1635
+ await this.searchForDelivery.press("Enter");
1636
+ await (0, $hOLA6$expect)(this.page.locator("xlr-delivery-row").filter({
1637
+ hasText: deliveryName
1638
+ }).getByRole("link").first()).toBeVisible();
1639
+ }
1640
+ async editDelivery(deliveryName, newDeliveryName) {
1641
+ await this.page.locator("xlr-delivery-row").filter({
1642
+ hasText: deliveryName
1643
+ }).locator(".fc-list-item-actions .edit-icon").click();
1645
1644
  await this.util.openSideNavMenu("Properties");
1646
- return new $d13e78163af94d50$var$Properties(this.page);
1647
- }
1648
- async back() {
1649
- await this.page.getByTestId("back-button").click();
1650
- }
1651
- async copyPattern(existingPatternName, NewPatternName) {
1652
- await this.clickCopyPatternIcon(existingPatternName);
1653
- await this.page.locator(".xl-icon.close-icon").first().click();
1654
- await this.addName.fill(NewPatternName);
1645
+ await this.addName.click();
1646
+ await this.addName.clear();
1647
+ await this.addName.fill(newDeliveryName);
1655
1648
  await this.page.getByRole("button", {
1656
- name: "Continue"
1649
+ name: "Save"
1657
1650
  }).click();
1658
- await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Delivery flow")).toBeVisible();
1651
+ (0, $hOLA6$expect)(await this.page.locator(".saved-text").textContent()).toContain("Last saved on ");
1659
1652
  }
1660
- async clickDeletePattern(patternName) {
1661
- await this.page.locator(".delivery-pattern-row").filter({
1662
- hasText: patternName
1663
- }).locator(".delete").click();
1664
- await (0, $hOLA6$expect)(this.page.getByText("Delete delivery pattern", {
1653
+ async deleteDelivery(deliveryName) {
1654
+ await this.page.locator("xlr-delivery-row").filter({
1655
+ hasText: deliveryName
1656
+ }).locator(".fc-list-item-actions .delete-icon").click();
1657
+ await (0, $hOLA6$expect)(this.page.getByText("Delete release delivery", {
1665
1658
  exact: true
1666
1659
  })).toBeVisible();
1667
1660
  await this.page.getByRole("button", {
1668
1661
  name: "Delete"
1669
1662
  }).click();
1670
- await (0, $hOLA6$expect)(this.page.locator(".delivery-pattern-row").filter({
1671
- hasText: patternName
1672
- })).not.toBeVisible();
1673
- }
1674
- }
1675
- class $d13e78163af94d50$var$Properties extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
1676
- constructor(page){
1677
- super(page);
1678
- this.addName = page.locator('.xl-react-components input[placeholder="Add..."]');
1679
- this.addDescription = page.getByPlaceholder("Set description...");
1680
- }
1681
- async editName(name) {
1682
- await this.addName.click();
1683
- await this.addName.clear();
1684
- await this.addName.fill(name);
1685
- }
1686
- async editDescription(description) {
1687
- await this.page.getByPlaceholder("Set description...").click();
1688
- await this.page.getByPlaceholder("Set description...").clear();
1689
- await this.page.getByPlaceholder("Set description...").fill(description);
1690
- }
1691
- async editDuration(month, days, hours) {
1692
- await this.page.getByRole("group", {
1693
- name: "Pattern details"
1694
- }).getByRole("textbox").click();
1695
- await this.page.locator('input[name="months"]').click();
1696
- await this.page.locator('input[name="months"]').fill(month.toString());
1697
- await this.page.locator('input[name="days"]').click();
1698
- await this.page.locator('input[name="days"]').fill(days.toString());
1699
- await this.page.locator('input[name="hours"]').click();
1700
- await this.page.locator('input[name="hours"]').fill(hours.toString());
1701
- }
1702
- async save() {
1703
- await this.page.getByRole("button", {
1704
- name: "Save"
1705
- }).click();
1706
- (0, $hOLA6$expect)(await this.page.locator(".saved-text").textContent()).toContain("Last saved on ");
1663
+ await (0, $hOLA6$expect)(this.page.locator(".success").filter({
1664
+ hasText: "Deleted release delivery successfully"
1665
+ })).toBeVisible();
1707
1666
  }
1708
1667
  }
1709
1668
 
@@ -1855,9 +1814,176 @@ class $27cd192f30944b0c$export$572f40d328c1d028 extends (0, $9626bc9256ce31f7$ex
1855
1814
  }
1856
1815
 
1857
1816
 
1817
+
1818
+
1819
+
1820
+ class $d13e78163af94d50$export$9b9454a7f137e99b extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
1821
+ constructor(page){
1822
+ super(page);
1823
+ this.util = new (0, $87bbb6d35ad31a00$export$f8f26dd395d7e1bd)(page);
1824
+ this.addName = page.locator('.xl-react-components input[placeholder="Add..."]');
1825
+ this.addDescription = page.getByPlaceholder("Set description...");
1826
+ }
1827
+ async clickNewDeliveryPattern() {
1828
+ await this.page.getByTestId("dot-button").click();
1829
+ await (0, $hOLA6$expect)(this.page.getByRole("heading", {
1830
+ name: "Create delivery pattern"
1831
+ })).toBeVisible();
1832
+ }
1833
+ async setPatternName(patternName) {
1834
+ await this.addName.click();
1835
+ await this.addName.clear();
1836
+ await this.addName.fill(patternName);
1837
+ }
1838
+ async setPatternDescription(patternDescription) {
1839
+ await this.page.getByPlaceholder("Set description...").click();
1840
+ await this.page.getByPlaceholder("Set description...").clear();
1841
+ await this.page.getByPlaceholder("Set description...").fill(patternDescription);
1842
+ }
1843
+ async enableAutoComplete() {
1844
+ await this.page.getByRole("checkbox").check();
1845
+ }
1846
+ async disableAutoComplete() {
1847
+ await this.page.getByRole("checkbox").uncheck();
1848
+ }
1849
+ async setDuration(month, days, hours) {
1850
+ await this.page.getByRole("group", {
1851
+ name: "Pattern details"
1852
+ }).getByRole("textbox").click();
1853
+ await this.page.locator('input[name="months"]').click();
1854
+ await this.page.locator('input[name="months"]').fill(month.toString());
1855
+ await this.page.locator('input[name="days"]').click();
1856
+ await this.page.locator('input[name="days"]').fill(days.toString());
1857
+ await this.page.locator('input[name="hours"]').click();
1858
+ await this.page.locator('input[name="hours"]').fill(hours.toString());
1859
+ }
1860
+ async createNewPattern(patternName, patternDescription) {
1861
+ await this.clickNewDeliveryPattern();
1862
+ await this.setPatternName(patternName);
1863
+ await this.setPatternDescription(patternDescription);
1864
+ await (0, $hOLA6$expect)(this.page.locator(".action-toolbar-actions button").filter({
1865
+ hasText: "Create"
1866
+ })).toBeEnabled();
1867
+ await this.page.locator(".action-toolbar-actions button").filter({
1868
+ hasText: "Create"
1869
+ }).click({
1870
+ force: true
1871
+ });
1872
+ await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Delivery flow")).toBeVisible();
1873
+ }
1874
+ async clickEditPatternIcon(patternName) {
1875
+ await this.page.locator(".delivery-pattern-row").filter({
1876
+ hasText: patternName
1877
+ }).locator(".edit").click();
1878
+ await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Delivery flow")).toBeVisible();
1879
+ }
1880
+ async clickCopyPatternIcon(patternName) {
1881
+ await this.page.locator(".delivery-pattern-row").filter({
1882
+ hasText: patternName
1883
+ }).locator(".copy").click();
1884
+ await (0, $hOLA6$expect)(this.page.getByText("Copy delivery pattern")).toBeVisible();
1885
+ }
1886
+ async filterPatternByName(patternName) {
1887
+ await this.page.getByPlaceholder("Filter by name...").click();
1888
+ await this.page.getByPlaceholder("Filter by name...").clear();
1889
+ await this.page.getByPlaceholder("Filter by name...").fill(patternName);
1890
+ await this.page.getByPlaceholder("Filter by name...").press("Enter");
1891
+ await (0, $hOLA6$expect)(this.page.locator(".delivery-pattern-row").filter({
1892
+ hasText: patternName
1893
+ })).toBeVisible();
1894
+ }
1895
+ async openProperties() {
1896
+ await this.util.openSideNavMenu("Properties");
1897
+ return new $d13e78163af94d50$var$Properties(this.page);
1898
+ }
1899
+ async back() {
1900
+ await this.page.getByTestId("back-button").click();
1901
+ }
1902
+ async copyPattern(existingPatternName, NewPatternName) {
1903
+ await this.clickCopyPatternIcon(existingPatternName);
1904
+ await this.page.locator(".xl-icon.close-icon").first().click();
1905
+ await this.addName.fill(NewPatternName);
1906
+ await this.page.getByRole("button", {
1907
+ name: "Continue"
1908
+ }).click();
1909
+ await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Delivery flow")).toBeVisible();
1910
+ }
1911
+ async clickDeletePattern(patternName) {
1912
+ await this.page.locator(".delivery-pattern-row").filter({
1913
+ hasText: patternName
1914
+ }).locator(".delete").click();
1915
+ await (0, $hOLA6$expect)(this.page.getByText("Delete delivery pattern", {
1916
+ exact: true
1917
+ })).toBeVisible();
1918
+ await this.page.getByRole("button", {
1919
+ name: "Delete"
1920
+ }).click();
1921
+ await (0, $hOLA6$expect)(this.page.locator(".delivery-pattern-row").filter({
1922
+ hasText: patternName
1923
+ })).not.toBeVisible();
1924
+ }
1925
+ async createNewDelivery(deliveryName, deliveryDes, setAutoComplete) {
1926
+ await this.page.getByTestId("dot-button").click();
1927
+ await this.addName.fill(deliveryName);
1928
+ await this.addDescription.click();
1929
+ if (deliveryDes) await this.addDescription.fill(deliveryDes);
1930
+ else await this.addDescription.fill("Description");
1931
+ if (setAutoComplete) await this.page.getByRole("checkbox").check();
1932
+ await (0, $hOLA6$expect)(this.page.locator(".action-toolbar-actions button").filter({
1933
+ hasText: "Create"
1934
+ })).toBeEnabled();
1935
+ await this.page.locator(".action-toolbar-actions button").filter({
1936
+ hasText: "Create"
1937
+ }).click({
1938
+ force: true
1939
+ });
1940
+ await (0, $hOLA6$expect)(this.page.locator(".MuiBreadcrumbs-li").getByRole("link", {
1941
+ name: `${deliveryName}`
1942
+ })).toBeVisible();
1943
+ }
1944
+ }
1945
+ class $d13e78163af94d50$var$Properties extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
1946
+ constructor(page){
1947
+ super(page);
1948
+ this.addName = page.locator('.xl-react-components input[placeholder="Add..."]');
1949
+ this.addDescription = page.getByPlaceholder("Set description...");
1950
+ }
1951
+ async editName(name) {
1952
+ await this.addName.click();
1953
+ await this.addName.clear();
1954
+ await this.addName.fill(name);
1955
+ }
1956
+ async editDescription(description) {
1957
+ await this.page.getByPlaceholder("Set description...").click();
1958
+ await this.page.getByPlaceholder("Set description...").clear();
1959
+ await this.page.getByPlaceholder("Set description...").fill(description);
1960
+ }
1961
+ async editDuration(month, days, hours) {
1962
+ await this.page.getByRole("group", {
1963
+ name: "Pattern details"
1964
+ }).getByRole("textbox").click();
1965
+ await this.page.locator('input[name="months"]').click();
1966
+ await this.page.locator('input[name="months"]').fill(month.toString());
1967
+ await this.page.locator('input[name="days"]').click();
1968
+ await this.page.locator('input[name="days"]').fill(days.toString());
1969
+ await this.page.locator('input[name="hours"]').click();
1970
+ await this.page.locator('input[name="hours"]').fill(hours.toString());
1971
+ }
1972
+ async save() {
1973
+ await this.page.getByRole("button", {
1974
+ name: "Save"
1975
+ }).click();
1976
+ (0, $hOLA6$expect)(await this.page.locator(".saved-text").textContent()).toContain("Last saved on ");
1977
+ }
1978
+ }
1979
+
1980
+
1981
+
1982
+
1858
1983
  class $50c91328c9110668$export$b453f08936c58edb extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
1859
1984
  constructor(page){
1860
1985
  super(page);
1986
+ this.deliveryPage = new (0, $4cdce1306be47ecd$export$eace2be4de1d3377)(page);
1861
1987
  this.expandButton = this.page.getByRole("button", {
1862
1988
  name: " Expand"
1863
1989
  });
@@ -1978,7 +2104,8 @@ class $50c91328c9110668$export$b453f08936c58edb extends (0, $9626bc9256ce31f7$ex
1978
2104
  })).toBeVisible();
1979
2105
  }
1980
2106
  async openPatterns() {
1981
- await this.util.openSideNavMenu("Patterns");
2107
+ await this.util.openSideNavMenu("Deliveries");
2108
+ await this.util.openNestedMenuItem("Patterns");
1982
2109
  await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Patterns")).toBeVisible();
1983
2110
  return this.patternPage;
1984
2111
  }
@@ -1990,6 +2117,12 @@ class $50c91328c9110668$export$b453f08936c58edb extends (0, $9626bc9256ce31f7$ex
1990
2117
  async clickExpandButton() {
1991
2118
  if (await this.expandButton.isEnabled()) await this.expandButton.click();
1992
2119
  }
2120
+ async openDeliveriesOverview() {
2121
+ await this.util.openSideNavMenu("Deliveries");
2122
+ await this.util.openNestedMenuItem("Deliveries overview");
2123
+ await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Deliveries")).toBeVisible();
2124
+ return this.deliveryPage;
2125
+ }
1993
2126
  }
1994
2127
 
1995
2128
 
@@ -2139,6 +2272,143 @@ class $2174535b78371022$export$36d69433c4f81145 extends (0, $9626bc9256ce31f7$ex
2139
2272
 
2140
2273
 
2141
2274
 
2275
+
2276
+ class $aa1ba8c8de3c0679$export$2fb4351c41ce6e7a extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
2277
+ constructor(page){
2278
+ super(page);
2279
+ this.announcementIcon = this.page.getByLabel("Open Resource Center");
2280
+ this.settingsIcon = this.page.locator('i[aria-label="settings-admin-opaque icon"]');
2281
+ this.aboutMenu = this.page.getByText("About Digital.ai Release");
2282
+ this.util = new (0, $87bbb6d35ad31a00$export$f8f26dd395d7e1bd)(page);
2283
+ }
2284
+ async verifyVersionNumber(versionNumber) {
2285
+ const year = new Date().getFullYear();
2286
+ await this.settingsIcon.click();
2287
+ await this.aboutMenu.click();
2288
+ await (0, $hOLA6$expect)(this.page.getByText("Version " + versionNumber)).toBeVisible();
2289
+ await (0, $hOLA6$expect)(this.page.getByRole("img", {
2290
+ name: "Release"
2291
+ })).toBeVisible();
2292
+ await (0, $hOLA6$expect)(this.page.getByText(`ⓒ ${year} Digital.ai Software,`)).toBeVisible();
2293
+ await this.util.clickCloseIcon();
2294
+ }
2295
+ async verifyProductAnnouncements() {
2296
+ await (0, $hOLA6$expect)(this.announcementIcon).toBeVisible();
2297
+ await this.announcementIcon.click();
2298
+ (0, $hOLA6$expect)(await this.page.locator("#pendo-guide-container").innerText()).toContain("Product updates");
2299
+ }
2300
+ async clickHelpIcon() {
2301
+ await this.page.getByTestId("right-side-nav").getByRole("button", {
2302
+ name: "Help"
2303
+ }).click();
2304
+ }
2305
+ async verifyOnlineDocumentation() {
2306
+ const versionNumber = await this.getVersionNumber();
2307
+ await this.clickHelpIcon();
2308
+ const page2Promise = this.page.waitForEvent("popup");
2309
+ await (0, $hOLA6$expect)(this.page.getByText("Online documentation")).toBeVisible();
2310
+ await this.page.getByText("Online documentation").click();
2311
+ const page2 = await page2Promise;
2312
+ (0, $hOLA6$expect)(page2.url()).toContain("https://docs.digital.ai/bundle/devops-release-version-v." + versionNumber.substring(8, 12) + "/page/release/how-to/get-started-with-xl-release.html");
2313
+ await this.page.bringToFront();
2314
+ }
2315
+ async verifySupportRequest() {
2316
+ await (0, $hOLA6$expect)(this.page.getByRole("menuitem", {
2317
+ name: "Submit a support request"
2318
+ })).toBeVisible();
2319
+ const page2Promise = this.page.waitForEvent("popup");
2320
+ await this.page.getByRole("menuitem", {
2321
+ name: "Submit a support request"
2322
+ }).click();
2323
+ const page2 = await page2Promise;
2324
+ (0, $hOLA6$expect)(page2.url()).toContain("https://support.digital.ai/hc/en-us/");
2325
+ await this.page.bringToFront();
2326
+ }
2327
+ async verifySuggestAFeature() {
2328
+ await (0, $hOLA6$expect)(this.page.getByText("Suggest a feature")).toBeVisible();
2329
+ const page2Promise = this.page.waitForEvent("popup");
2330
+ await this.page.getByText("Suggest a feature").click();
2331
+ const page2 = await page2Promise;
2332
+ (0, $hOLA6$expect)(page2.url()).toContain("https://ideas.digital.ai/devops");
2333
+ await this.page.bringToFront();
2334
+ }
2335
+ async verifyDigitalAiWebsite() {
2336
+ await (0, $hOLA6$expect)(this.page.getByText("Digital.ai website")).toBeVisible();
2337
+ const page2Promise = this.page.waitForEvent("popup");
2338
+ await this.page.getByText("Digital.ai website").click();
2339
+ const page2 = await page2Promise;
2340
+ (0, $hOLA6$expect)(page2.url()).toContain("https://digital.ai/");
2341
+ await this.page.bringToFront();
2342
+ }
2343
+ async clickAvatarIcon(username) {
2344
+ await this.page.getByLabel(username, {
2345
+ exact: true
2346
+ }).click();
2347
+ }
2348
+ async verifyUser(userFullName) {
2349
+ await this.page.getByText(userFullName).click();
2350
+ await (0, $hOLA6$expect)(this.page.getByRole("heading", {
2351
+ name: "Personal settings for admin"
2352
+ })).toBeVisible();
2353
+ }
2354
+ async clickAccessTokens() {
2355
+ await this.page.getByText("Access tokens").click();
2356
+ await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Access tokens")).toBeVisible();
2357
+ }
2358
+ async getVersionNumber() {
2359
+ await this.settingsIcon.click();
2360
+ await this.aboutMenu.click();
2361
+ const versionNumber = await this.page.locator(".version-text").innerText();
2362
+ await this.util.clickCloseIcon();
2363
+ return versionNumber;
2364
+ }
2365
+ }
2366
+
2367
+
2368
+
2369
+
2370
+
2371
+ class $ecd0868a4240184d$export$7b434e00c788d0bf extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
2372
+ constructor(page){
2373
+ super(page);
2374
+ this.util = new (0, $87bbb6d35ad31a00$export$f8f26dd395d7e1bd)(page);
2375
+ }
2376
+ async openPluginGallery() {
2377
+ await this.util.openSideNavMenu("Plugin gallery");
2378
+ await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Plugin gallery")).toBeVisible();
2379
+ }
2380
+ async openInstalledPlugins() {
2381
+ await this.util.openSideNavMenu("Installed plugins");
2382
+ await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Installed plugins")).toBeVisible();
2383
+ }
2384
+ async searchForPlugins(searchText) {
2385
+ await this.page.getByPlaceholder("Search for plugin").fill(searchText);
2386
+ (0, $hOLA6$expect)(await this.page.locator(".PluginTile__title-and-version___1HsNr span").count()).toBeGreaterThan(0);
2387
+ }
2388
+ async refreshPluginList() {
2389
+ await (0, $hOLA6$expect)(this.page.getByTestId("plugin-refresh-btn")).toBeVisible();
2390
+ await this.page.getByTestId("plugin-refresh-btn").click();
2391
+ }
2392
+ async clickInstallNow(pluginName) {
2393
+ await this.page.locator("div").filter({
2394
+ hasText: "Install now" + pluginName
2395
+ }).getByRole("button").click();
2396
+ }
2397
+ async expectRestartInfo() {
2398
+ await (0, $hOLA6$expect)(this.page.getByLabel("info")).toContainText("Restart Digital.ai Release to finish installing the plugin.");
2399
+ }
2400
+ async expectNewPluginInstallationInfo(pluginName) {
2401
+ await (0, $hOLA6$expect)(this.page.getByText("New plugin installedPlugin")).toBeVisible();
2402
+ await (0, $hOLA6$expect)(this.page.getByLabel("info").locator("div")).toContainText("New plugin installedPlugin release-" + pluginName.toLowerCase() + "-integration has been installed, click here to reload the changes or refresh your browser");
2403
+ }
2404
+ async clickUpload() {
2405
+ await this.page.getByTestId("dot-button").click();
2406
+ }
2407
+ }
2408
+
2409
+
2410
+
2411
+
2142
2412
  class $6720a523bcb1cce0$export$3cac5fd37ae64b91 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
2143
2413
  async openPersonalAccessTokenPage() {
2144
2414
  // await this.page.locator("button.dot-avatar").click()
@@ -2159,6 +2429,61 @@ class $6720a523bcb1cce0$export$3cac5fd37ae64b91 extends (0, $9626bc9256ce31f7$ex
2159
2429
 
2160
2430
 
2161
2431
 
2432
+ class $a5932af323ac015a$export$3cf9c90f870f31bd extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
2433
+ constructor(page){
2434
+ super(page);
2435
+ this.util = new (0, $87bbb6d35ad31a00$export$f8f26dd395d7e1bd)(page);
2436
+ }
2437
+ async openProfile() {
2438
+ await this.util.openSideNavMenu("Profile");
2439
+ }
2440
+ async openAccessToken() {
2441
+ await this.util.openSideNavMenu("Access tokens");
2442
+ }
2443
+ async editUserProfile(email) {
2444
+ await this.page.getByLabel("Email address").click();
2445
+ await this.page.getByLabel("Email address").fill(email);
2446
+ await this.page.getByTestId("dot-button").click();
2447
+ (0, $hOLA6$expect)(await this.page.locator(".saved-text").textContent()).toContain("Last saved on ");
2448
+ }
2449
+ async generateNewAccessToken(tokenName, expiryOptions) {
2450
+ await this.page.getByRole("button", {
2451
+ name: "Generate token"
2452
+ }).click();
2453
+ await this.page.getByLabel("Token name").click();
2454
+ await this.page.getByLabel("Token name").fill(tokenName);
2455
+ await this.page.getByRole("textbox", {
2456
+ name: "Token expiration"
2457
+ }).getByLabel("Token expiration").selectOption(expiryOptions);
2458
+ await this.page.locator("label").filter({
2459
+ hasText: "Use all permissions"
2460
+ }).getByTestId("RadioButtonCheckedIcon").click();
2461
+ await this.page.getByRole("button", {
2462
+ name: "Generate",
2463
+ exact: true
2464
+ }).click();
2465
+ await (0, $hOLA6$expect)(this.page.getByTestId("alert-button-tooltip").getByTestId("dot-button")).toBeVisible();
2466
+ await (0, $hOLA6$expect)(this.page.getByText(tokenName)).toBeVisible();
2467
+ }
2468
+ async deleteAccessToken(tokenName) {
2469
+ await this.page.locator(".MuiTableRow-root").filter({
2470
+ hasText: tokenName
2471
+ }).getByTestId("button-icon-i").click();
2472
+ await (0, $hOLA6$expect)(this.page.getByRole("heading", {
2473
+ name: "Delete token"
2474
+ })).toBeVisible();
2475
+ await (0, $hOLA6$expect)(this.page.getByLabel("Delete token")).toContainText("Delete token");
2476
+ await this.page.getByRole("button", {
2477
+ name: "delete icon Delete token"
2478
+ }).click();
2479
+ await (0, $hOLA6$expect)(this.page.getByText(tokenName)).not.toBeVisible();
2480
+ }
2481
+ }
2482
+
2483
+
2484
+
2485
+
2486
+
2162
2487
 
2163
2488
  class $21185a378c23589e$export$e2e2e1ffdce20c30 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
2164
2489
  constructor(page){
@@ -2265,6 +2590,7 @@ class $2cb6a6ac6b17e85f$export$107317390f5aa598 extends (0, $9626bc9256ce31f7$ex
2265
2590
 
2266
2591
 
2267
2592
 
2593
+
2268
2594
  class $f1bf370bb7f683ca$export$1d7840d5cdc861d5 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
2269
2595
  constructor(page){
2270
2596
  super(page);
@@ -2285,6 +2611,7 @@ class $f1bf370bb7f683ca$export$1d7840d5cdc861d5 extends (0, $9626bc9256ce31f7$ex
2285
2611
  async openManagePlugin() {
2286
2612
  await this.settingsIcon.click();
2287
2613
  await this.managePluginMenu.click();
2614
+ await (0, $hOLA6$expect)(this.page.getByLabel("breadcrumb").getByText("Plugin gallery")).toBeVisible();
2288
2615
  }
2289
2616
  }
2290
2617
 
@@ -2301,7 +2628,7 @@ class $9ca6e63d357957dd$export$922081b54f2ab994 extends (0, $9626bc9256ce31f7$ex
2301
2628
 
2302
2629
  class $3a340a3f4fd8f04d$export$43682cddead1dd78 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
2303
2630
  async openReleaseCalendarPage() {
2304
- await this.page.goto("./#/calendar");
2631
+ await this.page.goto("./#/releases/calendar");
2305
2632
  //Define date format to verify different calendar views
2306
2633
  const today = new Date();
2307
2634
  let options = {
@@ -2319,7 +2646,7 @@ class $3a340a3f4fd8f04d$export$43682cddead1dd78 extends (0, $9626bc9256ce31f7$ex
2319
2646
  };
2320
2647
  this.monthFormat = today.toLocaleDateString("en-US", options);
2321
2648
  this.monthFormat = this.monthFormat.replace(/(\w+) (\d+)/, "$1, $2");
2322
- await (0, $hOLA6$expect)(this.page).toHaveTitle("Release calendar / Home - Digital.ai Release");
2649
+ await (0, $hOLA6$expect)(this.page.locator(".tl-viewport")).toBeVisible();
2323
2650
  return this;
2324
2651
  }
2325
2652
  async exportCalendar() {
@@ -3388,6 +3715,8 @@ class $e72552cbf941ecfa$export$b8a61e5c71402559 {
3388
3715
  this.folderPage = new (0, $50c91328c9110668$export$b453f08936c58edb)(page);
3389
3716
  this.globalvariable = new (0, $3df1257265fba073$export$74ca1eaaa9a0054)(page);
3390
3717
  this.homePage = new (0, $2174535b78371022$export$36d69433c4f81145)(page);
3718
+ this.header = new (0, $aa1ba8c8de3c0679$export$2fb4351c41ce6e7a)(page);
3719
+ this.managePluginsPage = new (0, $ecd0868a4240184d$export$7b434e00c788d0bf)(page);
3391
3720
  this.releasePage = new (0, $43cbcdfccb6c2a76$export$f43492e8ac3c566)(page);
3392
3721
  this.settingsMenu = new (0, $f1bf370bb7f683ca$export$1d7840d5cdc861d5)(page);
3393
3722
  this.usersPage = new (0, $2cb6a6ac6b17e85f$export$107317390f5aa598)(page);
@@ -3396,7 +3725,7 @@ class $e72552cbf941ecfa$export$b8a61e5c71402559 {
3396
3725
  this.taskListPage = new (0, $c37c93912f458e81$export$60c3bfa6385e2a10)(page);
3397
3726
  this.templatePage = new (0, $0c4084f199d70d72$export$8c8e7207254accc2)(page);
3398
3727
  this.templateListPage = new (0, $171d52b372748c0b$export$7e1d435fa474ee21)(page);
3399
- this.randomString = new (0, $b14c3492cf934ea2$export$e40b5d3c74b04c89)();
3728
+ this.personalSettingsPage = new (0, $a5932af323ac015a$export$3cf9c90f870f31bd)(page);
3400
3729
  this.releaseCalendarPage = new (0, $3a340a3f4fd8f04d$export$43682cddead1dd78)(page);
3401
3730
  this.releaseGroupPage = new (0, $cc2d15e53de5cef7$export$b6fbc3e67030138f)(page);
3402
3731
  this.releaseGroupTimelinePage = new (0, $cc231ea61b77c7a2$export$1a0994e9c202d529)(page);