@digital-ai/devops-page-object-release 0.0.0-snapshot-20251215122615 → 0.0.0-snapshot-20251216064142
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 +8 -64
- package/dist/main.js.map +1 -1
- package/dist/module.js +8 -64
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +0 -8
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @digital-ai/devops-page-object-release
|
|
2
2
|
|
|
3
|
-
## 0.0.0-snapshot-
|
|
3
|
+
## 0.0.0-snapshot-20251216064142
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- ec1a601: S-127036: Update for Action button with options. Updated the action button implementation to use a dropdown menu pattern instead of direct action buttons.
|
|
8
8
|
|
|
9
9
|
## 0.0.97
|
|
10
10
|
|
package/dist/main.js
CHANGED
|
@@ -5971,52 +5971,6 @@ class $e5c8dec182aa2e84$export$e2613a7eee3a1b1b extends (0, $f8721861c660dd88$ex
|
|
|
5971
5971
|
});
|
|
5972
5972
|
await tag.locator(".close-icon").click();
|
|
5973
5973
|
}
|
|
5974
|
-
async expectPermissionReadOnly(permission, team, readOnly) {
|
|
5975
|
-
const rowLocator = this.page.locator(`table tr:has-text("${permission}")`);
|
|
5976
|
-
const tagLocator = rowLocator.locator(`.tag-label:has-text("${team}")`);
|
|
5977
|
-
if (readOnly) await (0, $kKeXs$playwrighttest.expect)(tagLocator).toBeVisible();
|
|
5978
|
-
else {
|
|
5979
|
-
const closeIconLocator = tagLocator.locator(".. >> .tag-close");
|
|
5980
|
-
await (0, $kKeXs$playwrighttest.expect)(closeIconLocator).toBeVisible();
|
|
5981
|
-
}
|
|
5982
|
-
}
|
|
5983
|
-
async expectTeamsNotToExist(teams, readOnly) {
|
|
5984
|
-
for (const team of teams){
|
|
5985
|
-
const teamRow = this.page.locator(`tr:has-text("${team}")`);
|
|
5986
|
-
if (readOnly) await (0, $kKeXs$playwrighttest.expect)(teamRow.getByTitle("Delete")).toHaveCount(0);
|
|
5987
|
-
else await (0, $kKeXs$playwrighttest.expect)(teamRow.getByTitle("Delete")).toHaveCount(1);
|
|
5988
|
-
}
|
|
5989
|
-
}
|
|
5990
|
-
async expectInheritTeamsDisabled() {
|
|
5991
|
-
const inheritCheckbox = this.page.locator(".inherit-checkbox input");
|
|
5992
|
-
await (0, $kKeXs$playwrighttest.expect)(inheritCheckbox).toBeVisible();
|
|
5993
|
-
await (0, $kKeXs$playwrighttest.expect)(inheritCheckbox).toBeDisabled();
|
|
5994
|
-
}
|
|
5995
|
-
async expectNewTeamButtonDisabled() {
|
|
5996
|
-
const addTeamButton = this.page.locator(".button-add-team");
|
|
5997
|
-
await (0, $kKeXs$playwrighttest.expect)(addTeamButton).toBeDisabled();
|
|
5998
|
-
}
|
|
5999
|
-
async expectRemoveTeamButtonNotToExist() {
|
|
6000
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#teams-permissions-table table tr .action-label")).toHaveCount(0);
|
|
6001
|
-
return this;
|
|
6002
|
-
}
|
|
6003
|
-
async expectSaveButtonDisabled() {
|
|
6004
|
-
const saveButton = this.page.getByRole("button", {
|
|
6005
|
-
name: "Save"
|
|
6006
|
-
});
|
|
6007
|
-
await (0, $kKeXs$playwrighttest.expect)(saveButton).toBeVisible();
|
|
6008
|
-
await (0, $kKeXs$playwrighttest.expect)(saveButton).toBeDisabled();
|
|
6009
|
-
return this;
|
|
6010
|
-
}
|
|
6011
|
-
async expectTeamsReadOnly(teams, readOnly) {
|
|
6012
|
-
for (const team of teams){
|
|
6013
|
-
const teamRow = this.page.locator("table").first().locator("tr", {
|
|
6014
|
-
hasText: team
|
|
6015
|
-
});
|
|
6016
|
-
await (0, $kKeXs$playwrighttest.expect)(teamRow.locator(".tag-label + .tag-close")).toHaveCount(readOnly ? 0 : 1);
|
|
6017
|
-
}
|
|
6018
|
-
return this;
|
|
6019
|
-
}
|
|
6020
5974
|
async expectPermissionNotToExist(permission, team) {
|
|
6021
5975
|
const row = this.page.locator("table tr", {
|
|
6022
5976
|
hasText: permission
|
|
@@ -6911,7 +6865,9 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6911
6865
|
}).getByRole("checkbox")).toBeChecked();
|
|
6912
6866
|
}
|
|
6913
6867
|
async deleteUser(username) {
|
|
6914
|
-
await this.page.getByTestId(`
|
|
6868
|
+
await this.page.getByTestId(`user-actions-btn-${username}`).click();
|
|
6869
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".icon-delete")).toBeVisible();
|
|
6870
|
+
await this.page.locator(".icon-delete").click();
|
|
6915
6871
|
await this.modal.delete();
|
|
6916
6872
|
}
|
|
6917
6873
|
async openRoles() {
|
|
@@ -6956,9 +6912,7 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6956
6912
|
}).locator(`td`).filter({
|
|
6957
6913
|
hasText: user.externalId
|
|
6958
6914
|
}).count()).toBeGreaterThan(0);
|
|
6959
|
-
(0, $kKeXs$playwrighttest.expect)(await this.page.
|
|
6960
|
-
hasText: user.name
|
|
6961
|
-
}).locator(`td .icon-delete`).count()).toBeGreaterThan(0);
|
|
6915
|
+
(0, $kKeXs$playwrighttest.expect)(await this.page.getByTestId(`user-actions-btn-${user.name}`).count()).toBeGreaterThan(0);
|
|
6962
6916
|
}
|
|
6963
6917
|
}
|
|
6964
6918
|
async expectNoUser(username) {
|
|
@@ -6967,9 +6921,10 @@ class $3ceab7c613cabfd6$export$107317390f5aa598 extends (0, $f8721861c660dd88$ex
|
|
|
6967
6921
|
}
|
|
6968
6922
|
async updateUser(username) {
|
|
6969
6923
|
await this.filterUser(username);
|
|
6970
|
-
await this.page.
|
|
6971
|
-
|
|
6972
|
-
|
|
6924
|
+
await this.page.getByTestId(`user-actions-btn-${username}`).click();
|
|
6925
|
+
const editIcon = this.page.locator(".icon-edit");
|
|
6926
|
+
await (0, $kKeXs$playwrighttest.expect)(editIcon).toBeVisible();
|
|
6927
|
+
await editIcon.click();
|
|
6973
6928
|
return this.modal;
|
|
6974
6929
|
}
|
|
6975
6930
|
async sortByColumn(columnName, columnIndex) {
|
|
@@ -10209,17 +10164,6 @@ class $4ef41cf96a5fae4c$export$b8a61e5c71402559 {
|
|
|
10209
10164
|
await this.page.waitForSelector("#releases-content");
|
|
10210
10165
|
return new (0, $9058d40a81bdb1f5$export$b453f08936c58edb)(this.page);
|
|
10211
10166
|
}
|
|
10212
|
-
async openFolderByName(folderName) {
|
|
10213
|
-
const folder = this.page.getByTitle(folderName);
|
|
10214
|
-
await (0, $kKeXs$playwrighttest.expect)(folder).toBeVisible({
|
|
10215
|
-
timeout: 5000
|
|
10216
|
-
});
|
|
10217
|
-
await folder.click();
|
|
10218
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".MuiBreadcrumbs-li").getByRole("link", {
|
|
10219
|
-
name: folderName
|
|
10220
|
-
})).toBeVisible();
|
|
10221
|
-
return this;
|
|
10222
|
-
}
|
|
10223
10167
|
async openProfilePage() {
|
|
10224
10168
|
await this.page.goto(`./#/profile`);
|
|
10225
10169
|
return new (0, $010122e1d9b28b80$export$3cf9c90f870f31bd)(this.page);
|