@digital-ai/devops-page-object-release 0.0.0-snapshot-20251125090500 → 0.0.0-snapshot-20251125090528
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 +2 -2
- package/dist/main.js +17 -57
- package/dist/main.js.map +1 -1
- package/dist/module.js +17 -57
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +3 -8
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# @digital-ai/devops-page-object-release
|
|
2
2
|
|
|
3
|
-
## 0.0.0-snapshot-
|
|
3
|
+
## 0.0.0-snapshot-20251125090528
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
+
- 2a2a240: S-126903: Migrated release-tags-scenario to playwright
|
|
7
8
|
- 8fd6062: Corrected the User Filter placeholder to the new UI label change
|
|
8
|
-
- b99183c: S-126526: Added page object for edit-teams-and-permissions-scenario
|
|
9
9
|
|
|
10
10
|
## 0.0.92
|
|
11
11
|
|
package/dist/main.js
CHANGED
|
@@ -3838,6 +3838,23 @@ class $8681d8a3f46f87b7$export$d1077068a9cc9f17 extends (0, $f8721861c660dd88$ex
|
|
|
3838
3838
|
async expectReleaseTaggedWith(tagName) {
|
|
3839
3839
|
await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#tags")).toContainText(tagName);
|
|
3840
3840
|
}
|
|
3841
|
+
async expectReleaseNotTaggedWith(tagName) {
|
|
3842
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(`#tags >> text=${tagName}`)).toHaveCount(0);
|
|
3843
|
+
}
|
|
3844
|
+
async addTag(tagName) {
|
|
3845
|
+
const tagInput = this.page.locator("#tags input");
|
|
3846
|
+
await tagInput.fill(tagName);
|
|
3847
|
+
await tagInput.press("Enter");
|
|
3848
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(`#tags >> text=${tagName}`)).toBeVisible();
|
|
3849
|
+
}
|
|
3850
|
+
async removeTag(tagName) {
|
|
3851
|
+
const tag = this.page.locator(`#tags`, {
|
|
3852
|
+
hasText: tagName
|
|
3853
|
+
});
|
|
3854
|
+
const removeIcon = tag.locator(".tag-close");
|
|
3855
|
+
await removeIcon.click();
|
|
3856
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(`#tags >> text=${tagName}`)).toHaveCount(0);
|
|
3857
|
+
}
|
|
3841
3858
|
async expectTemplateTitleToBe(templateTitle) {
|
|
3842
3859
|
await (0, $kKeXs$playwrighttest.expect)(this.page.locator('[data-test="created-from-template"]')).toContainText(templateTitle);
|
|
3843
3860
|
}
|
|
@@ -5915,52 +5932,6 @@ class $e5c8dec182aa2e84$export$e2613a7eee3a1b1b extends (0, $f8721861c660dd88$ex
|
|
|
5915
5932
|
});
|
|
5916
5933
|
await tag.locator(".close-icon").click();
|
|
5917
5934
|
}
|
|
5918
|
-
async expectPermissionReadOnly(permission, team, readOnly) {
|
|
5919
|
-
const rowLocator = this.page.locator(`table tr:has-text("${permission}")`);
|
|
5920
|
-
const tagLocator = rowLocator.locator(`.tag-label:has-text("${team}")`);
|
|
5921
|
-
if (readOnly) await (0, $kKeXs$playwrighttest.expect)(tagLocator).toBeVisible();
|
|
5922
|
-
else {
|
|
5923
|
-
const closeIconLocator = tagLocator.locator(".. >> .tag-close");
|
|
5924
|
-
await (0, $kKeXs$playwrighttest.expect)(closeIconLocator).toBeVisible();
|
|
5925
|
-
}
|
|
5926
|
-
}
|
|
5927
|
-
async expectTeamsNotToExist(teams, readOnly) {
|
|
5928
|
-
for (const team of teams){
|
|
5929
|
-
const teamRow = this.page.locator(`tr:has-text("${team}")`);
|
|
5930
|
-
if (readOnly) await (0, $kKeXs$playwrighttest.expect)(teamRow.getByTitle("Delete")).toHaveCount(0);
|
|
5931
|
-
else await (0, $kKeXs$playwrighttest.expect)(teamRow.getByTitle("Delete")).toHaveCount(1);
|
|
5932
|
-
}
|
|
5933
|
-
}
|
|
5934
|
-
async expectInheritTeamsDisabled() {
|
|
5935
|
-
const inheritCheckbox = this.page.locator(".inherit-checkbox input");
|
|
5936
|
-
await (0, $kKeXs$playwrighttest.expect)(inheritCheckbox).toBeVisible();
|
|
5937
|
-
await (0, $kKeXs$playwrighttest.expect)(inheritCheckbox).toBeDisabled();
|
|
5938
|
-
}
|
|
5939
|
-
async expectNewTeamButtonDisabled() {
|
|
5940
|
-
const addTeamButton = this.page.locator(".button-add-team");
|
|
5941
|
-
await (0, $kKeXs$playwrighttest.expect)(addTeamButton).toBeDisabled();
|
|
5942
|
-
}
|
|
5943
|
-
async expectRemoveTeamButtonNotToExist() {
|
|
5944
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#teams-permissions-table table tr .action-label")).toHaveCount(0);
|
|
5945
|
-
return this;
|
|
5946
|
-
}
|
|
5947
|
-
async expectSaveButtonDisabled() {
|
|
5948
|
-
const saveButton = this.page.getByRole("button", {
|
|
5949
|
-
name: "Save"
|
|
5950
|
-
});
|
|
5951
|
-
await (0, $kKeXs$playwrighttest.expect)(saveButton).toBeVisible();
|
|
5952
|
-
await (0, $kKeXs$playwrighttest.expect)(saveButton).toBeDisabled();
|
|
5953
|
-
return this;
|
|
5954
|
-
}
|
|
5955
|
-
async expectTeamsReadOnly(teams, readOnly) {
|
|
5956
|
-
for (const team of teams){
|
|
5957
|
-
const teamRow = this.page.locator("table").first().locator("tr", {
|
|
5958
|
-
hasText: team
|
|
5959
|
-
});
|
|
5960
|
-
await (0, $kKeXs$playwrighttest.expect)(teamRow.locator(".tag-label + .tag-close")).toHaveCount(readOnly ? 0 : 1);
|
|
5961
|
-
}
|
|
5962
|
-
return this;
|
|
5963
|
-
}
|
|
5964
5935
|
async expectPermissionNotToExist(permission, team) {
|
|
5965
5936
|
const row = this.page.locator("table tr", {
|
|
5966
5937
|
hasText: permission
|
|
@@ -10132,17 +10103,6 @@ class $4ef41cf96a5fae4c$export$b8a61e5c71402559 {
|
|
|
10132
10103
|
await this.page.waitForSelector("#releases-content");
|
|
10133
10104
|
return new (0, $9058d40a81bdb1f5$export$b453f08936c58edb)(this.page);
|
|
10134
10105
|
}
|
|
10135
|
-
async openFolderByName(folderName) {
|
|
10136
|
-
const folder = this.page.getByTitle(folderName);
|
|
10137
|
-
await (0, $kKeXs$playwrighttest.expect)(folder).toBeVisible({
|
|
10138
|
-
timeout: 5000
|
|
10139
|
-
});
|
|
10140
|
-
await folder.click();
|
|
10141
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".MuiBreadcrumbs-li").getByRole("link", {
|
|
10142
|
-
name: folderName
|
|
10143
|
-
})).toBeVisible();
|
|
10144
|
-
return this;
|
|
10145
|
-
}
|
|
10146
10106
|
async openProfilePage() {
|
|
10147
10107
|
await this.page.goto(`./#/profile`);
|
|
10148
10108
|
return new (0, $010122e1d9b28b80$export$3cf9c90f870f31bd)(this.page);
|