@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/dist/module.js CHANGED
@@ -234,6 +234,47 @@ class $5359280e98d97ff9$export$a678525e79c4ccc4 extends (0, $9626bc9256ce31f7$ex
234
234
  }).click();
235
235
  await (0, $hOLA6$expect)(this.page.locator(".tl-viewport")).toBeVisible();
236
236
  }
237
+ async openReleasesList() {
238
+ await this.page.goto("./#/releases");
239
+ await (0, $hOLA6$expect)(this.page.locator(".release-list")).toBeVisible();
240
+ return this;
241
+ }
242
+ async clickReleaseOptions(releaseTitle) {
243
+ await this.page.locator(".release-line").filter({
244
+ hasText: releaseTitle
245
+ }).locator(".options-icon").click({
246
+ force: true
247
+ });
248
+ return this;
249
+ }
250
+ async clickAddToRelease() {
251
+ const addToGroupLink = this.page.locator('a:has-text("Add to group")');
252
+ await (0, $hOLA6$expect)(addToGroupLink).toBeVisible();
253
+ await addToGroupLink.click({
254
+ force: true
255
+ });
256
+ return this;
257
+ }
258
+ async checkAddDisabled() {
259
+ await (0, $hOLA6$expect)(this.page.locator(".modal-footer .primary")).toBeDisabled();
260
+ return this;
261
+ }
262
+ async selectReleaseGroup(rgTitle) {
263
+ await this.page.locator(".ui-autocomplete-input").click({
264
+ force: true
265
+ });
266
+ await this.page.locator(".ui-autocomplete-input").fill(rgTitle);
267
+ await this.page.locator(".ui-autocomplete-input").press("Backspace");
268
+ await this.page.locator("li").filter({
269
+ hasText: rgTitle
270
+ }).click();
271
+ return this;
272
+ }
273
+ async clickAddToReleaseGroup() {
274
+ await (0, $hOLA6$expect)(this.page.locator(".modal-footer .primary")).toBeVisible();
275
+ await this.page.locator(".modal-footer .primary").click();
276
+ return this;
277
+ }
237
278
  }
238
279
 
239
280
 
@@ -5100,6 +5141,62 @@ class $a5932af323ac015a$export$3cf9c90f870f31bd extends (0, $9626bc9256ce31f7$ex
5100
5141
  async openAccessToken() {
5101
5142
  await this.util.openSideNavMenu("Access tokens");
5102
5143
  }
5144
+ async expectEmailDefined(email) {
5145
+ await (0, $hOLA6$expect)(this.page.locator("#email")).toHaveValue(email);
5146
+ return this;
5147
+ }
5148
+ async expectNoEmailDefined() {
5149
+ return this.expectEmailDefined("");
5150
+ }
5151
+ async expectFullNameDefined(fullName) {
5152
+ await (0, $hOLA6$expect)(this.page.locator("#full-name")).toHaveValue(fullName);
5153
+ return this;
5154
+ }
5155
+ async expectNoFullNameDefined() {
5156
+ return this.expectFullNameDefined("");
5157
+ }
5158
+ async expectPasswordNotToBe(password) {
5159
+ await (0, $hOLA6$expect)(this.page.locator('input[data-test="password-input"]')).not.toHaveValue(password);
5160
+ return this;
5161
+ }
5162
+ async expectDateFormatToBe(dateFormat) {
5163
+ await (0, $hOLA6$expect)(this.page.locator('select[ng-model="$ctrl.profile.dateFormat"]')).toHaveValue(dateFormat);
5164
+ return this;
5165
+ }
5166
+ async expectTimeFormatToBe(timeFormat) {
5167
+ await (0, $hOLA6$expect)(this.page.locator('select[ng-model="$ctrl.profile.timeFormat"]')).toHaveValue(timeFormat);
5168
+ return this;
5169
+ }
5170
+ async expectFirstDayOfWeekToBe(firstDayOfWeek) {
5171
+ await (0, $hOLA6$expect)(this.page.locator('select[ng-model="$ctrl.profile.firstDayOfWeek"]')).toHaveValue(firstDayOfWeek);
5172
+ return this;
5173
+ }
5174
+ async save() {
5175
+ await this.page.locator('action-toolbar button:has-text("Save"):enabled').click();
5176
+ await this.page.locator(".saved-text").waitFor({
5177
+ state: "visible"
5178
+ });
5179
+ return this;
5180
+ }
5181
+ async setEmail(email) {
5182
+ await this.page.locator("#email").fill(email);
5183
+ return this.save();
5184
+ }
5185
+ async setFullName(fullName) {
5186
+ await this.page.locator("#full-name").fill(fullName);
5187
+ return this.save();
5188
+ }
5189
+ async setPassword(previousPassword, password) {
5190
+ await this.page.locator("#previousPassword").fill(previousPassword);
5191
+ await this.page.locator('input[data-test="password-input"]').fill(password);
5192
+ await this.page.locator("#passwordConfirmation").fill(password);
5193
+ return this.save();
5194
+ }
5195
+ async refresh() {
5196
+ await this.page.reload();
5197
+ await this.page.waitForSelector("#profileForm");
5198
+ return this;
5199
+ }
5103
5200
  async editUserProfile(email) {
5104
5201
  await this.page.getByLabel("Email address").click();
5105
5202
  await this.page.getByLabel("Email address").fill(email);
@@ -8575,6 +8672,10 @@ class $e72552cbf941ecfa$export$b8a61e5c71402559 {
8575
8672
  await this.page.waitForSelector("#releases-content");
8576
8673
  return new (0, $50c91328c9110668$export$b453f08936c58edb)(this.page);
8577
8674
  }
8675
+ async openProfilePage() {
8676
+ await this.page.goto(`./#/profile`);
8677
+ return new (0, $a5932af323ac015a$export$3cf9c90f870f31bd)(this.page);
8678
+ }
8578
8679
  async openVariablesOnReleasePage(releaseId) {
8579
8680
  await this.page.goto(`./#/releases/${releaseId}/variables`);
8580
8681
  await this.page.waitForSelector("#release-variables");
@@ -9128,6 +9229,9 @@ class $80c3ae34677b4324$var$Fixtures {
9128
9229
  deleteUserProfile(userProfile) {
9129
9230
  return this.doDelete(`fixtures/userProfile/${userProfile}`);
9130
9231
  }
9232
+ deleteReleaseGroup(releaseGroup) {
9233
+ return this.doDelete(`fixtures/release-groups/${releaseGroup}`);
9234
+ }
9131
9235
  deleteTrigger(id) {
9132
9236
  return this.doDelete(`fixtures/trigger/${id}`);
9133
9237
  }