@digital-ai/devops-page-object-release 0.0.64 → 0.0.66

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @digital-ai/devops-page-object-release
2
2
 
3
+ ## 0.0.66
4
+
5
+ ### Patch Changes
6
+
7
+ - d408297: S-121984: page-objects updated for add-to-release-group-scenario
8
+
9
+ ## 0.0.65
10
+
11
+ ### Patch Changes
12
+
13
+ - 9a0bc64: S-121552: page-objects updated for user-profile-scenario
14
+
3
15
  ## 0.0.64
4
16
 
5
17
  ### Patch Changes
package/dist/main.js CHANGED
@@ -1170,6 +1170,47 @@ class $87643f2d97b0644e$export$a678525e79c4ccc4 extends (0, $f8721861c660dd88$ex
1170
1170
  }).click();
1171
1171
  await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".tl-viewport")).toBeVisible();
1172
1172
  }
1173
+ async openReleasesList() {
1174
+ await this.page.goto("./#/releases");
1175
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".release-list")).toBeVisible();
1176
+ return this;
1177
+ }
1178
+ async clickReleaseOptions(releaseTitle) {
1179
+ await this.page.locator(".release-line").filter({
1180
+ hasText: releaseTitle
1181
+ }).locator(".options-icon").click({
1182
+ force: true
1183
+ });
1184
+ return this;
1185
+ }
1186
+ async clickAddToRelease() {
1187
+ const addToGroupLink = this.page.locator('a:has-text("Add to group")');
1188
+ await (0, $kKeXs$playwrighttest.expect)(addToGroupLink).toBeVisible();
1189
+ await addToGroupLink.click({
1190
+ force: true
1191
+ });
1192
+ return this;
1193
+ }
1194
+ async checkAddDisabled() {
1195
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".modal-footer .primary")).toBeDisabled();
1196
+ return this;
1197
+ }
1198
+ async selectReleaseGroup(rgTitle) {
1199
+ await this.page.locator(".ui-autocomplete-input").click({
1200
+ force: true
1201
+ });
1202
+ await this.page.locator(".ui-autocomplete-input").fill(rgTitle);
1203
+ await this.page.locator(".ui-autocomplete-input").press("Backspace");
1204
+ await this.page.locator("li").filter({
1205
+ hasText: rgTitle
1206
+ }).click();
1207
+ return this;
1208
+ }
1209
+ async clickAddToReleaseGroup() {
1210
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator(".modal-footer .primary")).toBeVisible();
1211
+ await this.page.locator(".modal-footer .primary").click();
1212
+ return this;
1213
+ }
1173
1214
  }
1174
1215
 
1175
1216
 
@@ -6036,6 +6077,62 @@ class $010122e1d9b28b80$export$3cf9c90f870f31bd extends (0, $f8721861c660dd88$ex
6036
6077
  async openAccessToken() {
6037
6078
  await this.util.openSideNavMenu("Access tokens");
6038
6079
  }
6080
+ async expectEmailDefined(email) {
6081
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#email")).toHaveValue(email);
6082
+ return this;
6083
+ }
6084
+ async expectNoEmailDefined() {
6085
+ return this.expectEmailDefined("");
6086
+ }
6087
+ async expectFullNameDefined(fullName) {
6088
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#full-name")).toHaveValue(fullName);
6089
+ return this;
6090
+ }
6091
+ async expectNoFullNameDefined() {
6092
+ return this.expectFullNameDefined("");
6093
+ }
6094
+ async expectPasswordNotToBe(password) {
6095
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator('input[data-test="password-input"]')).not.toHaveValue(password);
6096
+ return this;
6097
+ }
6098
+ async expectDateFormatToBe(dateFormat) {
6099
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator('select[ng-model="$ctrl.profile.dateFormat"]')).toHaveValue(dateFormat);
6100
+ return this;
6101
+ }
6102
+ async expectTimeFormatToBe(timeFormat) {
6103
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator('select[ng-model="$ctrl.profile.timeFormat"]')).toHaveValue(timeFormat);
6104
+ return this;
6105
+ }
6106
+ async expectFirstDayOfWeekToBe(firstDayOfWeek) {
6107
+ await (0, $kKeXs$playwrighttest.expect)(this.page.locator('select[ng-model="$ctrl.profile.firstDayOfWeek"]')).toHaveValue(firstDayOfWeek);
6108
+ return this;
6109
+ }
6110
+ async save() {
6111
+ await this.page.locator('action-toolbar button:has-text("Save"):enabled').click();
6112
+ await this.page.locator(".saved-text").waitFor({
6113
+ state: "visible"
6114
+ });
6115
+ return this;
6116
+ }
6117
+ async setEmail(email) {
6118
+ await this.page.locator("#email").fill(email);
6119
+ return this.save();
6120
+ }
6121
+ async setFullName(fullName) {
6122
+ await this.page.locator("#full-name").fill(fullName);
6123
+ return this.save();
6124
+ }
6125
+ async setPassword(previousPassword, password) {
6126
+ await this.page.locator("#previousPassword").fill(previousPassword);
6127
+ await this.page.locator('input[data-test="password-input"]').fill(password);
6128
+ await this.page.locator("#passwordConfirmation").fill(password);
6129
+ return this.save();
6130
+ }
6131
+ async refresh() {
6132
+ await this.page.reload();
6133
+ await this.page.waitForSelector("#profileForm");
6134
+ return this;
6135
+ }
6039
6136
  async editUserProfile(email) {
6040
6137
  await this.page.getByLabel("Email address").click();
6041
6138
  await this.page.getByLabel("Email address").fill(email);
@@ -9511,6 +9608,10 @@ class $4ef41cf96a5fae4c$export$b8a61e5c71402559 {
9511
9608
  await this.page.waitForSelector("#releases-content");
9512
9609
  return new (0, $9058d40a81bdb1f5$export$b453f08936c58edb)(this.page);
9513
9610
  }
9611
+ async openProfilePage() {
9612
+ await this.page.goto(`./#/profile`);
9613
+ return new (0, $010122e1d9b28b80$export$3cf9c90f870f31bd)(this.page);
9614
+ }
9514
9615
  async openVariablesOnReleasePage(releaseId) {
9515
9616
  await this.page.goto(`./#/releases/${releaseId}/variables`);
9516
9617
  await this.page.waitForSelector("#release-variables");
@@ -10738,6 +10839,9 @@ class $6998c6a53a9eb4fa$var$Fixtures {
10738
10839
  deleteUserProfile(userProfile) {
10739
10840
  return this.doDelete(`fixtures/userProfile/${userProfile}`);
10740
10841
  }
10842
+ deleteReleaseGroup(releaseGroup) {
10843
+ return this.doDelete(`fixtures/release-groups/${releaseGroup}`);
10844
+ }
10741
10845
  deleteTrigger(id) {
10742
10846
  return this.doDelete(`fixtures/trigger/${id}`);
10743
10847
  }