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

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
@@ -5100,6 +5100,62 @@ class $a5932af323ac015a$export$3cf9c90f870f31bd extends (0, $9626bc9256ce31f7$ex
5100
5100
  async openAccessToken() {
5101
5101
  await this.util.openSideNavMenu("Access tokens");
5102
5102
  }
5103
+ async expectEmailDefined(email) {
5104
+ await (0, $hOLA6$expect)(this.page.locator("#email")).toHaveValue(email);
5105
+ return this;
5106
+ }
5107
+ async expectNoEmailDefined() {
5108
+ return this.expectEmailDefined("");
5109
+ }
5110
+ async expectFullNameDefined(fullName) {
5111
+ await (0, $hOLA6$expect)(this.page.locator("#full-name")).toHaveValue(fullName);
5112
+ return this;
5113
+ }
5114
+ async expectNoFullNameDefined() {
5115
+ return this.expectFullNameDefined("");
5116
+ }
5117
+ async expectPasswordNotToBe(password) {
5118
+ await (0, $hOLA6$expect)(this.page.locator('input[data-test="password-input"]')).not.toHaveValue(password);
5119
+ return this;
5120
+ }
5121
+ async expectDateFormatToBe(dateFormat) {
5122
+ await (0, $hOLA6$expect)(this.page.locator('select[ng-model="$ctrl.profile.dateFormat"]')).toHaveValue(dateFormat);
5123
+ return this;
5124
+ }
5125
+ async expectTimeFormatToBe(timeFormat) {
5126
+ await (0, $hOLA6$expect)(this.page.locator('select[ng-model="$ctrl.profile.timeFormat"]')).toHaveValue(timeFormat);
5127
+ return this;
5128
+ }
5129
+ async expectFirstDayOfWeekToBe(firstDayOfWeek) {
5130
+ await (0, $hOLA6$expect)(this.page.locator('select[ng-model="$ctrl.profile.firstDayOfWeek"]')).toHaveValue(firstDayOfWeek);
5131
+ return this;
5132
+ }
5133
+ async save() {
5134
+ await this.page.locator('action-toolbar button:has-text("Save"):enabled').click();
5135
+ await this.page.locator(".saved-text").waitFor({
5136
+ state: "visible"
5137
+ });
5138
+ return this;
5139
+ }
5140
+ async setEmail(email) {
5141
+ await this.page.locator("#email").fill(email);
5142
+ return this.save();
5143
+ }
5144
+ async setFullName(fullName) {
5145
+ await this.page.locator("#full-name").fill(fullName);
5146
+ return this.save();
5147
+ }
5148
+ async setPassword(previousPassword, password) {
5149
+ await this.page.locator("#previousPassword").fill(previousPassword);
5150
+ await this.page.locator('input[data-test="password-input"]').fill(password);
5151
+ await this.page.locator("#passwordConfirmation").fill(password);
5152
+ return this.save();
5153
+ }
5154
+ async refresh() {
5155
+ await this.page.reload();
5156
+ await this.page.waitForSelector("#profileForm");
5157
+ return this;
5158
+ }
5103
5159
  async editUserProfile(email) {
5104
5160
  await this.page.getByLabel("Email address").click();
5105
5161
  await this.page.getByLabel("Email address").fill(email);
@@ -8575,6 +8631,10 @@ class $e72552cbf941ecfa$export$b8a61e5c71402559 {
8575
8631
  await this.page.waitForSelector("#releases-content");
8576
8632
  return new (0, $50c91328c9110668$export$b453f08936c58edb)(this.page);
8577
8633
  }
8634
+ async openProfilePage() {
8635
+ await this.page.goto(`./#/profile`);
8636
+ return new (0, $a5932af323ac015a$export$3cf9c90f870f31bd)(this.page);
8637
+ }
8578
8638
  async openVariablesOnReleasePage(releaseId) {
8579
8639
  await this.page.goto(`./#/releases/${releaseId}/variables`);
8580
8640
  await this.page.waitForSelector("#release-variables");