@digital-ai/devops-page-object-release 0.0.102 → 0.0.104
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 +12 -0
- package/dist/main.js +75 -16
- package/dist/main.js.map +1 -1
- package/dist/module.js +75 -16
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +8 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @digital-ai/devops-page-object-release
|
|
2
2
|
|
|
3
|
+
## 0.0.104
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 32b30f0: S-128936: fix selections for new react based confirm leave dialog
|
|
8
|
+
|
|
9
|
+
## 0.0.103
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- dce3d59: S-126526: Added page object for edit-teams-and-permissions-scenario
|
|
14
|
+
|
|
3
15
|
## 0.0.102
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/main.js
CHANGED
|
@@ -4398,9 +4398,9 @@ class $2c89ba54932fbba8$export$f8f26dd395d7e1bd extends (0, $f8721861c660dd88$ex
|
|
|
4398
4398
|
}
|
|
4399
4399
|
async leaveWithoutSaving() {
|
|
4400
4400
|
await (0, $kKeXs$playwrighttest.expect)(this.page.getByRole('heading', {
|
|
4401
|
-
name: '
|
|
4401
|
+
name: 'Unsaved changes'
|
|
4402
4402
|
})).toBeVisible();
|
|
4403
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.
|
|
4403
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByText('There are unsaved changes. If you leave now, they will be lost.')).toBeVisible();
|
|
4404
4404
|
await this.page.getByRole('button', {
|
|
4405
4405
|
name: 'Leave without saving'
|
|
4406
4406
|
}).click();
|
|
@@ -5966,32 +5966,80 @@ class $e5c8dec182aa2e84$export$e2613a7eee3a1b1b extends (0, $f8721861c660dd88$ex
|
|
|
5966
5966
|
constructor(page){
|
|
5967
5967
|
super(page);
|
|
5968
5968
|
}
|
|
5969
|
-
async
|
|
5969
|
+
async removePermission(permission, team) {
|
|
5970
5970
|
const row = this.page.locator('table tr', {
|
|
5971
5971
|
hasText: permission
|
|
5972
5972
|
});
|
|
5973
5973
|
const tag = row.locator('.tag', {
|
|
5974
5974
|
hasText: team
|
|
5975
5975
|
});
|
|
5976
|
-
await (
|
|
5976
|
+
await tag.locator('.close-icon').click();
|
|
5977
5977
|
}
|
|
5978
|
-
async
|
|
5979
|
-
const
|
|
5978
|
+
async expectPermissionReadOnly(permission, team, readOnly) {
|
|
5979
|
+
const rowLocator = this.page.locator('table').getByRole('row').filter({
|
|
5980
5980
|
hasText: permission
|
|
5981
|
+
}).filter({
|
|
5982
|
+
has: this.page.getByText(team, {
|
|
5983
|
+
exact: true
|
|
5984
|
+
})
|
|
5981
5985
|
});
|
|
5982
|
-
const
|
|
5983
|
-
|
|
5986
|
+
const tagLocator = rowLocator.getByText(team, {
|
|
5987
|
+
exact: true
|
|
5984
5988
|
});
|
|
5985
|
-
|
|
5989
|
+
const closeIconLocator = tagLocator.locator('+ .tag-close');
|
|
5990
|
+
if (readOnly) {
|
|
5991
|
+
await (0, $kKeXs$playwrighttest.expect)(tagLocator).toBeVisible();
|
|
5992
|
+
await (0, $kKeXs$playwrighttest.expect)(closeIconLocator).toHaveCount(0);
|
|
5993
|
+
} else {
|
|
5994
|
+
await (0, $kKeXs$playwrighttest.expect)(tagLocator).toBeVisible();
|
|
5995
|
+
await (0, $kKeXs$playwrighttest.expect)(closeIconLocator).toBeVisible();
|
|
5996
|
+
}
|
|
5986
5997
|
}
|
|
5987
|
-
async
|
|
5988
|
-
const
|
|
5998
|
+
async expectTeamNotInPermission(permission, team) {
|
|
5999
|
+
const rowLocator = this.page.locator('table').getByRole('row').filter({
|
|
5989
6000
|
hasText: permission
|
|
5990
6001
|
});
|
|
5991
|
-
const
|
|
5992
|
-
|
|
6002
|
+
const teamTag = rowLocator.getByText(team, {
|
|
6003
|
+
exact: true
|
|
5993
6004
|
});
|
|
5994
|
-
await (0, $kKeXs$playwrighttest.expect)(
|
|
6005
|
+
await (0, $kKeXs$playwrighttest.expect)(teamTag).toHaveCount(0);
|
|
6006
|
+
}
|
|
6007
|
+
async expectTeamsReadonly(teams, readOnly) {
|
|
6008
|
+
for (const team of teams){
|
|
6009
|
+
const teamRow = this.page.locator('table').first().locator('tr').filter({
|
|
6010
|
+
has: this.page.locator('td').first().filter({
|
|
6011
|
+
hasText: team
|
|
6012
|
+
})
|
|
6013
|
+
});
|
|
6014
|
+
if (readOnly) {
|
|
6015
|
+
await (0, $kKeXs$playwrighttest.expect)(teamRow).toBeVisible();
|
|
6016
|
+
await (0, $kKeXs$playwrighttest.expect)(teamRow.getByTitle('Delete')).toHaveCount(0);
|
|
6017
|
+
} else {
|
|
6018
|
+
await (0, $kKeXs$playwrighttest.expect)(teamRow).toBeVisible();
|
|
6019
|
+
await (0, $kKeXs$playwrighttest.expect)(teamRow.getByTitle('Delete')).toHaveCount(1);
|
|
6020
|
+
}
|
|
6021
|
+
}
|
|
6022
|
+
}
|
|
6023
|
+
async expectInheritTeamsDisabled() {
|
|
6024
|
+
const inheritCheckbox = this.page.locator('.inherit-checkbox input');
|
|
6025
|
+
await (0, $kKeXs$playwrighttest.expect)(inheritCheckbox).toBeVisible();
|
|
6026
|
+
await (0, $kKeXs$playwrighttest.expect)(inheritCheckbox).toBeDisabled();
|
|
6027
|
+
}
|
|
6028
|
+
async expectNewTeamButtonDisabled() {
|
|
6029
|
+
const addTeamButton = this.page.locator('.button-add-team');
|
|
6030
|
+
await (0, $kKeXs$playwrighttest.expect)(addTeamButton).toBeDisabled();
|
|
6031
|
+
}
|
|
6032
|
+
async expectRemoveTeamButtonNotToExist() {
|
|
6033
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator('#teams-permissions-table table tr .action-label')).toHaveCount(0);
|
|
6034
|
+
return this;
|
|
6035
|
+
}
|
|
6036
|
+
async expectSaveButtonDisabled() {
|
|
6037
|
+
const saveButton = this.page.getByRole('button', {
|
|
6038
|
+
name: 'Save'
|
|
6039
|
+
});
|
|
6040
|
+
await (0, $kKeXs$playwrighttest.expect)(saveButton).toBeVisible();
|
|
6041
|
+
await (0, $kKeXs$playwrighttest.expect)(saveButton).toBeDisabled();
|
|
6042
|
+
return this;
|
|
5995
6043
|
}
|
|
5996
6044
|
async removeTeam(teamName) {
|
|
5997
6045
|
const row = this.page.locator('#teams-permissions-table table tr', {
|
|
@@ -9846,9 +9894,9 @@ class $dbc8f157e7b24b12$export$b8732a8d21d8bf63 extends $dbc8f157e7b24b12$export
|
|
|
9846
9894
|
}
|
|
9847
9895
|
async expectConfirmationPopUp() {
|
|
9848
9896
|
await (0, $kKeXs$playwrighttest.expect)(this.page.getByRole('heading', {
|
|
9849
|
-
name: '
|
|
9897
|
+
name: 'Unsaved changes'
|
|
9850
9898
|
})).toBeVisible();
|
|
9851
|
-
await (0, $kKeXs$playwrighttest.expect)(this.page.
|
|
9899
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.getByText('There are unsaved changes. If you leave now, they will be lost.')).toBeVisible();
|
|
9852
9900
|
await this.page.getByRole('button', {
|
|
9853
9901
|
name: 'Leave without saving'
|
|
9854
9902
|
}).click();
|
|
@@ -10177,6 +10225,17 @@ class $4ef41cf96a5fae4c$export$b8a61e5c71402559 {
|
|
|
10177
10225
|
await this.page.waitForSelector('#releases-content');
|
|
10178
10226
|
return new (0, $9058d40a81bdb1f5$export$b453f08936c58edb)(this.page);
|
|
10179
10227
|
}
|
|
10228
|
+
async openFolderByName(folderName) {
|
|
10229
|
+
const folder = this.page.getByTitle(folderName);
|
|
10230
|
+
await (0, $kKeXs$playwrighttest.expect)(folder).toBeVisible({
|
|
10231
|
+
timeout: 5000
|
|
10232
|
+
});
|
|
10233
|
+
await folder.click();
|
|
10234
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator('.MuiBreadcrumbs-li').getByRole('link', {
|
|
10235
|
+
name: folderName
|
|
10236
|
+
})).toBeVisible();
|
|
10237
|
+
return new (0, $9058d40a81bdb1f5$export$b453f08936c58edb)(this.page);
|
|
10238
|
+
}
|
|
10180
10239
|
async openProfilePage() {
|
|
10181
10240
|
await this.page.goto(`./#/profile`);
|
|
10182
10241
|
return new (0, $010122e1d9b28b80$export$3cf9c90f870f31bd)(this.page);
|