@digital-ai/devops-page-object-release 0.0.29 → 0.0.31
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 +14 -0
- package/dist/main.js +225 -35
- package/dist/main.js.map +1 -1
- package/dist/module.js +225 -35
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +37 -4
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @digital-ai/devops-page-object-release
|
|
2
2
|
|
|
3
|
+
## 0.0.31
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b610153: S-117836: Fix new template action
|
|
8
|
+
|
|
9
|
+
## 0.0.30
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 530ebfd: Migrated create-release-task-scenario cypress script to playwright
|
|
14
|
+
- d4c2287: S-117771: Support for prefill variable feature
|
|
15
|
+
- e8f2005: Migrated cypress script of dependencies-scenario into playwright
|
|
16
|
+
|
|
3
17
|
## 0.0.29
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/main.js
CHANGED
|
@@ -998,7 +998,7 @@ class $3d3f3946c54f5897$export$34addcca3f0ae43f extends (0, $f8721861c660dd88$ex
|
|
|
998
998
|
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".variable-editor .form-group")).toHaveCount(count);
|
|
999
999
|
}
|
|
1000
1000
|
async expectContainingVariable(variableName, value) {
|
|
1001
|
-
(0, $kKeXs$playwrighttest.expect)(
|
|
1001
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(`#form-${variableName} .text span`)).toContainText(value);
|
|
1002
1002
|
}
|
|
1003
1003
|
async selectTemplate(templateName) {
|
|
1004
1004
|
await this.page.getByPlaceholder("No template").click();
|
|
@@ -1012,6 +1012,7 @@ class $3d3f3946c54f5897$export$34addcca3f0ae43f extends (0, $f8721861c660dd88$ex
|
|
|
1012
1012
|
async setValueForVariables(variableName, value) {
|
|
1013
1013
|
await this.page.locator(`#form-${variableName} .display`).click();
|
|
1014
1014
|
await this.page.locator(`input[name="${variableName}"]`).fill(value);
|
|
1015
|
+
await this.page.locator(`input[name="${variableName}"]`).blur();
|
|
1015
1016
|
}
|
|
1016
1017
|
async setVariable(variable, value) {
|
|
1017
1018
|
await this.releaseForm.filter({
|
|
@@ -1020,6 +1021,34 @@ class $3d3f3946c54f5897$export$34addcca3f0ae43f extends (0, $f8721861c660dd88$ex
|
|
|
1020
1021
|
await this.releaseForm.filter({
|
|
1021
1022
|
hasText: variable
|
|
1022
1023
|
}).locator("div[inline-text-editor] input").fill(value);
|
|
1024
|
+
await this.releaseForm.filter({
|
|
1025
|
+
hasText: variable
|
|
1026
|
+
}).locator("div[inline-text-editor] input").blur();
|
|
1027
|
+
}
|
|
1028
|
+
async resetVariableValues() {
|
|
1029
|
+
await this.page.locator("button", {
|
|
1030
|
+
hasText: "Reset to defaults"
|
|
1031
|
+
}).click();
|
|
1032
|
+
await this.page.locator("button", {
|
|
1033
|
+
hasText: "Reset variables"
|
|
1034
|
+
}).click();
|
|
1035
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator("button", {
|
|
1036
|
+
hasText: "Reset to defaults"
|
|
1037
|
+
})).toBeDisabled();
|
|
1038
|
+
}
|
|
1039
|
+
async clickOnPrefillVariables() {
|
|
1040
|
+
await this.page.getByText("Pre-fill variable values from previous releases").click();
|
|
1041
|
+
}
|
|
1042
|
+
async selectPreviousRelease(releaseName) {
|
|
1043
|
+
await this.page.locator("button", {
|
|
1044
|
+
hasText: "Select release"
|
|
1045
|
+
}).click();
|
|
1046
|
+
await this.page.locator("a", {
|
|
1047
|
+
hasText: releaseName
|
|
1048
|
+
}).click();
|
|
1049
|
+
}
|
|
1050
|
+
async expectPrefillWarning(message) {
|
|
1051
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByText(message)).toBeVisible();
|
|
1023
1052
|
}
|
|
1024
1053
|
}
|
|
1025
1054
|
|
|
@@ -1034,7 +1063,39 @@ class $87643f2d97b0644e$export$a678525e79c4ccc4 extends (0, $f8721861c660dd88$ex
|
|
|
1034
1063
|
if (amount === 1) await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".release").getByText(releaseTitle)).toBeVisible({
|
|
1035
1064
|
timeout: 5000
|
|
1036
1065
|
});
|
|
1037
|
-
else
|
|
1066
|
+
else (0, $kKeXs$playwrighttest.expect)(await this.page.locator(".release").getByText(releaseTitle).count()).toBe(amount);
|
|
1067
|
+
}
|
|
1068
|
+
async expectReleaseStarted(releaseTitle) {
|
|
1069
|
+
const releaseStatus = this.page.locator(".release").filter({
|
|
1070
|
+
hasText: releaseTitle
|
|
1071
|
+
}).locator(".release-status").filter({
|
|
1072
|
+
hasText: "Planned"
|
|
1073
|
+
});
|
|
1074
|
+
await (0, $kKeXs$playwrighttest.expect)(releaseStatus).toBeVisible();
|
|
1075
|
+
}
|
|
1076
|
+
async expectReleaseStatusInProgress(releaseTitle) {
|
|
1077
|
+
const releaseStatus = this.page.locator(".release").filter({
|
|
1078
|
+
hasText: releaseTitle
|
|
1079
|
+
}).locator(".release-status").filter({
|
|
1080
|
+
hasText: "In progress"
|
|
1081
|
+
});
|
|
1082
|
+
await (0, $kKeXs$playwrighttest.expect)(releaseStatus).toBeVisible();
|
|
1083
|
+
}
|
|
1084
|
+
async expectReleaseAborted(releaseTitle) {
|
|
1085
|
+
const releaseStatus = this.page.locator(".release").filter({
|
|
1086
|
+
hasText: releaseTitle
|
|
1087
|
+
}).locator(".release-status").filter({
|
|
1088
|
+
hasText: "Aborted"
|
|
1089
|
+
});
|
|
1090
|
+
await (0, $kKeXs$playwrighttest.expect)(releaseStatus).toBeVisible();
|
|
1091
|
+
}
|
|
1092
|
+
async expectReleaseFailed(releaseTitle) {
|
|
1093
|
+
const releaseStatus = this.page.locator(".release").filter({
|
|
1094
|
+
hasText: releaseTitle
|
|
1095
|
+
}).locator(".release-status").filter({
|
|
1096
|
+
hasText: "Failed"
|
|
1097
|
+
});
|
|
1098
|
+
await (0, $kKeXs$playwrighttest.expect)(releaseStatus).toBeVisible();
|
|
1038
1099
|
}
|
|
1039
1100
|
async filterReleaseByAllStatus() {
|
|
1040
1101
|
await this.page.locator(".ci-status .remaining-tags").getByText("more").click();
|
|
@@ -1046,11 +1107,34 @@ class $87643f2d97b0644e$export$a678525e79c4ccc4 extends (0, $f8721861c660dd88$ex
|
|
|
1046
1107
|
}).click();
|
|
1047
1108
|
return new (0, $9b9a8c3da392d020$export$f43492e8ac3c566)(this.page);
|
|
1048
1109
|
}
|
|
1049
|
-
async
|
|
1110
|
+
async openSearchFilter() {
|
|
1050
1111
|
await this.page.locator(".toggle-search-filter").click();
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1112
|
+
}
|
|
1113
|
+
async filterReleaseByTitle(releaseTitle) {
|
|
1114
|
+
const searchTitle = this.page.locator(".searchFilter");
|
|
1115
|
+
const searchCount = await searchTitle.count();
|
|
1116
|
+
if (searchCount == 0) {
|
|
1117
|
+
await this.openSearchFilter();
|
|
1118
|
+
await searchTitle.fill(releaseTitle);
|
|
1119
|
+
await searchTitle.press("Enter");
|
|
1120
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".release").getByText(releaseTitle)).toBeVisible();
|
|
1121
|
+
} else {
|
|
1122
|
+
await searchTitle.press("Enter");
|
|
1123
|
+
await searchTitle.fill(releaseTitle);
|
|
1124
|
+
await searchTitle.press("Enter");
|
|
1125
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".release").getByText(releaseTitle)).toBeVisible();
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
async clearTitleFilter() {
|
|
1129
|
+
const search = await this.page.locator(".searchFilter").count();
|
|
1130
|
+
if (search == 0) {
|
|
1131
|
+
await this.openSearchFilter();
|
|
1132
|
+
await this.page.locator(".searchFilter").clear();
|
|
1133
|
+
await this.page.locator(".searchFilter").press("Enter");
|
|
1134
|
+
} else {
|
|
1135
|
+
await this.page.locator(".searchFilter").clear();
|
|
1136
|
+
await this.page.locator(".searchFilter").press("Enter");
|
|
1137
|
+
}
|
|
1054
1138
|
}
|
|
1055
1139
|
async createNewRelease(releaseName, description) {
|
|
1056
1140
|
await this.releaseCreatePage.setName(releaseName);
|
|
@@ -1687,6 +1771,12 @@ class $9c0b0c2caed50730$export$d4865631ba74f3e2 extends (0, $f8721861c660dd88$ex
|
|
|
1687
1771
|
await this.saveButton.dblclick();
|
|
1688
1772
|
await this.page.waitForTimeout(1000);
|
|
1689
1773
|
}
|
|
1774
|
+
async expectPreconditionEditable() {
|
|
1775
|
+
await this.textEditor.isVisible();
|
|
1776
|
+
}
|
|
1777
|
+
async expectPreconditionNotEditable() {
|
|
1778
|
+
await this.textEditor.isHidden();
|
|
1779
|
+
}
|
|
1690
1780
|
}
|
|
1691
1781
|
|
|
1692
1782
|
|
|
@@ -1783,7 +1873,7 @@ class $eb81c1b930e440ff$export$519356f6c50361f7 extends (0, $f8721861c660dd88$ex
|
|
|
1783
1873
|
return this.railLocator.locator(`input[id="${propertyName}"]`).inputValue();
|
|
1784
1874
|
}
|
|
1785
1875
|
async setValueFromString(propertyName, value) {
|
|
1786
|
-
await this.railLocator.locator(
|
|
1876
|
+
await this.railLocator.locator(`input[name=${propertyName}]`).focus();
|
|
1787
1877
|
await this.railLocator.locator(`input[id="${propertyName}"]`).fill(value);
|
|
1788
1878
|
}
|
|
1789
1879
|
async setValueFromLargeString(propertyName, value) {
|
|
@@ -1793,37 +1883,76 @@ class $eb81c1b930e440ff$export$519356f6c50361f7 extends (0, $f8721861c660dd88$ex
|
|
|
1793
1883
|
async setValueFromPassword(propertyName, value) {
|
|
1794
1884
|
await this.railLocator.locator(`input[id="${propertyName}"]`).fill(value);
|
|
1795
1885
|
}
|
|
1796
|
-
async
|
|
1797
|
-
await this.
|
|
1798
|
-
await this.
|
|
1799
|
-
await this.
|
|
1886
|
+
async selectVariableFromOption(objectID, variable) {
|
|
1887
|
+
await this.page.locator(`div[data-testid="${objectID}"] .icon-variable`).click();
|
|
1888
|
+
await this.page.locator(`#${objectID}`).fill(variable);
|
|
1889
|
+
await this.page.getByRole("option", {
|
|
1890
|
+
name: variable
|
|
1891
|
+
}).click();
|
|
1892
|
+
}
|
|
1893
|
+
async createNewVariableForField(objectID, variable) {
|
|
1894
|
+
await this.page.locator(`div[data-testid="${objectID}"] .icon-variable`).click();
|
|
1895
|
+
await this.page.locator(`#${objectID}`).fill(variable);
|
|
1800
1896
|
await this.railLocator.locator(`.dot-popper button`, {
|
|
1801
|
-
hasText:
|
|
1897
|
+
hasText: variable
|
|
1802
1898
|
}).click();
|
|
1803
1899
|
}
|
|
1804
|
-
async
|
|
1805
|
-
await this.railLocator.locator(
|
|
1900
|
+
async createReleaseIdInOutputProperties(propertyName, variableName) {
|
|
1901
|
+
await this.railLocator.locator(`#${propertyName}`).fill(variableName);
|
|
1902
|
+
await this.page.getByTestId("dot-action-item-btn").click();
|
|
1903
|
+
}
|
|
1904
|
+
async expectValueInOutputProperties(variableId, value, expected = true) {
|
|
1905
|
+
if (expected) {
|
|
1906
|
+
await (0, $kKeXs$playwrighttest.expect)(this.railLocator.locator(`#${variableId}`)).toBeVisible();
|
|
1907
|
+
await (0, $kKeXs$playwrighttest.expect)(this.railLocator.locator(`#${variableId}`)).toHaveValue(value);
|
|
1908
|
+
} else await (0, $kKeXs$playwrighttest.expect)(this.railLocator.locator(`#${variableId}`)).not.toBeVisible();
|
|
1806
1909
|
}
|
|
1807
|
-
async
|
|
1808
|
-
await
|
|
1910
|
+
async selectReleaseIdInOutputProperties(propertyName, variableName) {
|
|
1911
|
+
await this.railLocator.locator(`#${propertyName}`).fill(variableName);
|
|
1912
|
+
await this.page.getByRole("option", {
|
|
1913
|
+
name: variableName
|
|
1914
|
+
}).click();
|
|
1915
|
+
}
|
|
1916
|
+
async expectVariable(propertyName, expected = true) {
|
|
1917
|
+
if (expected) await (0, $kKeXs$playwrighttest.expect)(this.railLocator.locator(`input[id="${propertyName}"]`).or(this.railLocator.locator(`textarea[id="${propertyName}"]`))).toBeVisible();
|
|
1918
|
+
else await (0, $kKeXs$playwrighttest.expect)(this.railLocator.locator(`input[id="${propertyName}"]`).or(this.railLocator.locator(`textarea[id="${propertyName}"]`))).not.toBeVisible();
|
|
1919
|
+
}
|
|
1920
|
+
async expectAlertMessage(alertMessage) {
|
|
1921
|
+
await (0, $kKeXs$playwrighttest.expect)(this.railLocator.locator(".warning .MuiAlert-message")).toHaveText(alertMessage);
|
|
1809
1922
|
}
|
|
1810
1923
|
async expectValueFromString(propertyName, propertyValue) {
|
|
1811
1924
|
return await (0, $kKeXs$playwrighttest.expect)(this.railLocator.locator(`.input-scalar-fake-input[id="${propertyName}"]`)).toHaveText(propertyValue);
|
|
1812
1925
|
}
|
|
1926
|
+
async expectRiskProfileValue(value) {
|
|
1927
|
+
await (0, $kKeXs$playwrighttest.expect)(this.railLocator.locator("#riskProfileId")).toHaveValue(value);
|
|
1928
|
+
}
|
|
1813
1929
|
async expectTo(value) {
|
|
1814
1930
|
return await (0, $kKeXs$playwrighttest.expect)(this.railLocator.getByTestId(`dot-autocomplete-chip`)).toHaveText(value);
|
|
1815
1931
|
}
|
|
1816
1932
|
async expectSubjectToBe(value) {
|
|
1817
|
-
return (0, $kKeXs$playwrighttest.expect)(
|
|
1933
|
+
return await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#notification-subject")).toHaveValue(value);
|
|
1818
1934
|
}
|
|
1819
1935
|
async expectBodyToBe(value) {
|
|
1820
1936
|
return await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".notification-body-field p")).toHaveText(value);
|
|
1821
1937
|
}
|
|
1938
|
+
async expectReleaseTitleToBe(value) {
|
|
1939
|
+
return await (0, $kKeXs$playwrighttest.expect)(this.page.locator("input[name=newReleaseTitle]")).toHaveValue(value);
|
|
1940
|
+
}
|
|
1822
1941
|
async setBody(value) {
|
|
1823
1942
|
await this.page.locator(".notification-body-field p").dblclick();
|
|
1824
1943
|
await this.page.locator(".notification-body-field #notification-body").fill(value);
|
|
1825
1944
|
await this.page.getByTestId(`save-button`).click();
|
|
1826
1945
|
}
|
|
1946
|
+
async setReleaseTags(tags) {
|
|
1947
|
+
if (typeof tags !== "string") for (const tag of tags){
|
|
1948
|
+
await this.page.locator("#release-tags").fill(tag);
|
|
1949
|
+
await this.page.locator("#release-tags").press("Enter");
|
|
1950
|
+
}
|
|
1951
|
+
else {
|
|
1952
|
+
await this.page.locator("#release-tags").fill(tags);
|
|
1953
|
+
await this.page.locator("#release-tags").press("Enter");
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1827
1956
|
async setValueFromMap(propertyName, key, value) {
|
|
1828
1957
|
await this.railLocator.locator(`.input-with-map[data-test-id="${propertyName}"] button.add-new-button`).click();
|
|
1829
1958
|
await this.railLocator.locator(`.input-with-map[data-test-id="${propertyName}"] input[id="new-row-key-input"]`).fill(key);
|
|
@@ -1867,6 +1996,16 @@ class $eb81c1b930e440ff$export$519356f6c50361f7 extends (0, $f8721861c660dd88$ex
|
|
|
1867
1996
|
hasText: dependencies[i]
|
|
1868
1997
|
})).toBeVisible();
|
|
1869
1998
|
}
|
|
1999
|
+
async expectDependencyStatus(option = true) {
|
|
2000
|
+
if (option) await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".with-status .task-status")).toBeVisible();
|
|
2001
|
+
else await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".with-status .task-status")).not.toBeVisible();
|
|
2002
|
+
}
|
|
2003
|
+
async expectResolvedDependency() {
|
|
2004
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator('span[aria-label="check-line icon"]')).toBeVisible();
|
|
2005
|
+
}
|
|
2006
|
+
async expectUnresolvedDependency() {
|
|
2007
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator('span[aria-label="close-line icon"]')).not.toBeVisible();
|
|
2008
|
+
}
|
|
1870
2009
|
async expectCanDeleteDependency(title, canDelete = true) {
|
|
1871
2010
|
const depOptionsIcon = this.page.locator(".dependency").filter({
|
|
1872
2011
|
has: this.page.getByRole("link", {
|
|
@@ -1882,6 +2021,27 @@ class $eb81c1b930e440ff$export$519356f6c50361f7 extends (0, $f8721861c660dd88$ex
|
|
|
1882
2021
|
})).toBeVisible();
|
|
1883
2022
|
} else await (0, $kKeXs$playwrighttest.expect)(depOptionsIcon).not.toBeVisible();
|
|
1884
2023
|
}
|
|
2024
|
+
async expectDependencyContextualMenu(option = true) {
|
|
2025
|
+
const depOptionsIcon = this.page.locator(".dependency .icon-options");
|
|
2026
|
+
if (option) await (0, $kKeXs$playwrighttest.expect)(depOptionsIcon).toBeVisible();
|
|
2027
|
+
else await (0, $kKeXs$playwrighttest.expect)(depOptionsIcon).not.toBeVisible();
|
|
2028
|
+
}
|
|
2029
|
+
async removeDependency(title) {
|
|
2030
|
+
const depOptionsIcon = this.page.locator(".dependency").filter({
|
|
2031
|
+
has: this.page.getByRole("link", {
|
|
2032
|
+
name: title,
|
|
2033
|
+
exact: true
|
|
2034
|
+
})
|
|
2035
|
+
}).locator(".icon-options");
|
|
2036
|
+
await depOptionsIcon.isVisible();
|
|
2037
|
+
await depOptionsIcon.click();
|
|
2038
|
+
await this.railLocator.getByRole("menuitem", {
|
|
2039
|
+
name: "Remove"
|
|
2040
|
+
}).click();
|
|
2041
|
+
}
|
|
2042
|
+
async expectDependencyNotToBeVisible() {
|
|
2043
|
+
await (0, $kKeXs$playwrighttest.expect)(this.railLocator.locator(".gate-task-dependencies")).not.toBeVisible();
|
|
2044
|
+
}
|
|
1885
2045
|
async getDependencyCount() {
|
|
1886
2046
|
await (0, $kKeXs$playwrighttest.expect)(this.railLocator.locator(".gate-task-dependencies")).toBeVisible();
|
|
1887
2047
|
return await this.railLocator.locator(".gate-task-dependencies .dependency").count();
|
|
@@ -1986,8 +2146,10 @@ class $eb81c1b930e440ff$export$519356f6c50361f7 extends (0, $f8721861c660dd88$ex
|
|
|
1986
2146
|
}).click();
|
|
1987
2147
|
}
|
|
1988
2148
|
async expectTemplate(template) {
|
|
1989
|
-
|
|
1990
|
-
|
|
2149
|
+
await (0, $kKeXs$playwrighttest.expect)(this.railLocator.locator("#templateId")).toBeVisible({
|
|
2150
|
+
timeout: 10000
|
|
2151
|
+
});
|
|
2152
|
+
await (0, $kKeXs$playwrighttest.expect)(this.railLocator.locator("#templateId")).toHaveValue(template);
|
|
1991
2153
|
}
|
|
1992
2154
|
async setAutoCompletePassword(passwordValue) {
|
|
1993
2155
|
await this.page.getByTestId("password").getByLabel("Click to switch between").click();
|
|
@@ -2032,13 +2194,6 @@ class $eb81c1b930e440ff$export$519356f6c50361f7 extends (0, $f8721861c660dd88$ex
|
|
|
2032
2194
|
await this.page.locator("#endDate").click();
|
|
2033
2195
|
await this.page.locator("#endDate").fill(date);
|
|
2034
2196
|
}
|
|
2035
|
-
async clickVariableButton(objectID, variableValue) {
|
|
2036
|
-
await this.page.locator(`div[data-testid="${objectID}"] .icon-variable`).click();
|
|
2037
|
-
await this.page.locator(`#${objectID}`).fill(variableValue);
|
|
2038
|
-
await this.page.getByRole("option", {
|
|
2039
|
-
name: variableValue
|
|
2040
|
-
}).click();
|
|
2041
|
-
}
|
|
2042
2197
|
async enableFallback() {
|
|
2043
2198
|
await this.page.getByLabel("Fallback").check();
|
|
2044
2199
|
}
|
|
@@ -2084,6 +2239,16 @@ class $eb81c1b930e440ff$export$519356f6c50361f7 extends (0, $f8721861c660dd88$ex
|
|
|
2084
2239
|
await this.page.getByTestId(`${fieldName}-input`).fill(fieldValue);
|
|
2085
2240
|
await this.page.getByText(fieldValue).click();
|
|
2086
2241
|
}
|
|
2242
|
+
async expectStartReleaseToBe(value) {
|
|
2243
|
+
return await (0, $kKeXs$playwrighttest.expect)(this.railLocator.locator("#startRelease")).toHaveValue(value);
|
|
2244
|
+
}
|
|
2245
|
+
async setStartReleaseVariable(value) {
|
|
2246
|
+
await this.railLocator.locator("#startRelease").click();
|
|
2247
|
+
await this.railLocator.locator("#startRelease").fill(value);
|
|
2248
|
+
}
|
|
2249
|
+
async close() {
|
|
2250
|
+
await this.page.locator("task-drawer .dot-drawer .task-drawer-header").getByTestId("close-btn").click();
|
|
2251
|
+
}
|
|
2087
2252
|
}
|
|
2088
2253
|
class $eb81c1b930e440ff$export$fbbf45eff21470e3 extends (0, $f8721861c660dd88$export$2b65d1d97338f32b) {
|
|
2089
2254
|
constructor(page){
|
|
@@ -2874,6 +3039,15 @@ class $8681d8a3f46f87b7$export$d1077068a9cc9f17 extends (0, $f8721861c660dd88$ex
|
|
|
2874
3039
|
async expectOwnerToBe(user) {
|
|
2875
3040
|
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".release-owner")).toContainText(user);
|
|
2876
3041
|
}
|
|
3042
|
+
async expectReleaseTaggedWith(tagName) {
|
|
3043
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#tags")).toContainText(tagName);
|
|
3044
|
+
}
|
|
3045
|
+
async expectTemplateTitleToBe(templateTitle) {
|
|
3046
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator('[data-test="created-from-template"]')).toContainText(templateTitle);
|
|
3047
|
+
}
|
|
3048
|
+
async expectRiskProfileTitleToBe(riskProfile) {
|
|
3049
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator('[data-test="release-risk-profile"]')).toContainText(riskProfile);
|
|
3050
|
+
}
|
|
2877
3051
|
}
|
|
2878
3052
|
|
|
2879
3053
|
|
|
@@ -3333,6 +3507,11 @@ class $9b9a8c3da392d020$export$f43492e8ac3c566 extends (0, $f8721861c660dd88$exp
|
|
|
3333
3507
|
timeout: timeout
|
|
3334
3508
|
});
|
|
3335
3509
|
}
|
|
3510
|
+
async clickOnStatusLine(statusLine) {
|
|
3511
|
+
await this.page.locator(".task .status-line a").getByText(statusLine, {
|
|
3512
|
+
exact: true
|
|
3513
|
+
}).click();
|
|
3514
|
+
}
|
|
3336
3515
|
async expectTaskCompletedInAdvance(taskTitle) {
|
|
3337
3516
|
await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#release-content .completed_in_advance .task-title").filter({
|
|
3338
3517
|
hasText: taskTitle
|
|
@@ -3454,11 +3633,19 @@ class $9b9a8c3da392d020$export$f43492e8ac3c566 extends (0, $f8721861c660dd88$exp
|
|
|
3454
3633
|
await this.page.locator(".progress-status-and-percentage").waitFor({
|
|
3455
3634
|
timeout: 10000
|
|
3456
3635
|
});
|
|
3457
|
-
(0, $kKeXs$playwrighttest.expect)(
|
|
3636
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".progress-status-and-percentage")).toHaveText("Aborted");
|
|
3458
3637
|
}
|
|
3459
3638
|
async expectInProgressStatusToBePresent() {
|
|
3460
|
-
await this.page.
|
|
3461
|
-
|
|
3639
|
+
await this.page.locator(".release-status").waitFor({
|
|
3640
|
+
timeout: 10000
|
|
3641
|
+
});
|
|
3642
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".release-status")).toHaveText("In progress");
|
|
3643
|
+
}
|
|
3644
|
+
async expectFailedStatusToBePresent() {
|
|
3645
|
+
await this.page.locator(".progress-status-and-percentage").waitFor({
|
|
3646
|
+
timeout: 10000
|
|
3647
|
+
});
|
|
3648
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".progress-status-and-percentage")).toHaveText("Failed0%");
|
|
3462
3649
|
}
|
|
3463
3650
|
async openTableView() {
|
|
3464
3651
|
await this.util.openSideNavMenu("Table");
|
|
@@ -3606,7 +3793,7 @@ class $9b9a8c3da392d020$var$Phase extends (0, $f8721861c660dd88$export$2b65d1d97
|
|
|
3606
3793
|
await (0, $kKeXs$playwrighttest.expect)(menuItem).toHaveClass(/disabled/);
|
|
3607
3794
|
const anchorTag = menuItem.locator("a");
|
|
3608
3795
|
const disabledAttribute = await anchorTag.getAttribute("disabled");
|
|
3609
|
-
|
|
3796
|
+
(0, $kKeXs$playwrighttest.expect)(disabledAttribute).not.toBeNull();
|
|
3610
3797
|
await this.closeContextMenu();
|
|
3611
3798
|
}
|
|
3612
3799
|
async expectMenuItemIsNotVisible(menuName, taskTitle) {
|
|
@@ -5088,9 +5275,7 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
5088
5275
|
}).getByRole("checkbox")).toBeChecked();
|
|
5089
5276
|
}
|
|
5090
5277
|
async deleteUser(username) {
|
|
5091
|
-
await this.page.
|
|
5092
|
-
name: "" + username + ""
|
|
5093
|
-
}).locator("i").nth(1).click();
|
|
5278
|
+
await this.page.getByTestId(`delete-btn-${username}`).click();
|
|
5094
5279
|
await this.modal.delete();
|
|
5095
5280
|
}
|
|
5096
5281
|
async openRoles() {
|
|
@@ -6709,8 +6894,10 @@ class $8b6ce149dd48e48b$export$7e1d435fa474ee21 extends (0, $f8721861c660dd88$ex
|
|
|
6709
6894
|
})).not.toBeVisible();
|
|
6710
6895
|
}
|
|
6711
6896
|
async clickCreateNewTemplate() {
|
|
6712
|
-
await this.page.
|
|
6713
|
-
|
|
6897
|
+
await this.page.locator(".action-toolbar-actions").getByRole("button", {
|
|
6898
|
+
name: "New template"
|
|
6899
|
+
}).click();
|
|
6900
|
+
await this.page.locator(".action-toolbar-actions").getByRole("menuitem", {
|
|
6714
6901
|
name: "Create new template"
|
|
6715
6902
|
}).click();
|
|
6716
6903
|
}
|
|
@@ -7491,6 +7678,9 @@ class $4ef41cf96a5fae4c$export$b8a61e5c71402559 {
|
|
|
7491
7678
|
await this.page.goto("./#/configuration");
|
|
7492
7679
|
await (0, $kKeXs$playwrighttest.expect)(this.page.getByLabel("breadcrumb").getByText("Connections")).toBeVisible();
|
|
7493
7680
|
}
|
|
7681
|
+
async clickOnPrimaryLogo() {
|
|
7682
|
+
await this.page.getByTestId("primary-logo").click();
|
|
7683
|
+
}
|
|
7494
7684
|
}
|
|
7495
7685
|
|
|
7496
7686
|
|