@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/CHANGELOG.md +6 -0
- package/dist/main.js +60 -0
- package/dist/main.js.map +1 -1
- package/dist/module.js +60 -0
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +14 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/main.js
CHANGED
|
@@ -6036,6 +6036,62 @@ class $010122e1d9b28b80$export$3cf9c90f870f31bd extends (0, $f8721861c660dd88$ex
|
|
|
6036
6036
|
async openAccessToken() {
|
|
6037
6037
|
await this.util.openSideNavMenu("Access tokens");
|
|
6038
6038
|
}
|
|
6039
|
+
async expectEmailDefined(email) {
|
|
6040
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#email")).toHaveValue(email);
|
|
6041
|
+
return this;
|
|
6042
|
+
}
|
|
6043
|
+
async expectNoEmailDefined() {
|
|
6044
|
+
return this.expectEmailDefined("");
|
|
6045
|
+
}
|
|
6046
|
+
async expectFullNameDefined(fullName) {
|
|
6047
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator("#full-name")).toHaveValue(fullName);
|
|
6048
|
+
return this;
|
|
6049
|
+
}
|
|
6050
|
+
async expectNoFullNameDefined() {
|
|
6051
|
+
return this.expectFullNameDefined("");
|
|
6052
|
+
}
|
|
6053
|
+
async expectPasswordNotToBe(password) {
|
|
6054
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator('input[data-test="password-input"]')).not.toHaveValue(password);
|
|
6055
|
+
return this;
|
|
6056
|
+
}
|
|
6057
|
+
async expectDateFormatToBe(dateFormat) {
|
|
6058
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator('select[ng-model="$ctrl.profile.dateFormat"]')).toHaveValue(dateFormat);
|
|
6059
|
+
return this;
|
|
6060
|
+
}
|
|
6061
|
+
async expectTimeFormatToBe(timeFormat) {
|
|
6062
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator('select[ng-model="$ctrl.profile.timeFormat"]')).toHaveValue(timeFormat);
|
|
6063
|
+
return this;
|
|
6064
|
+
}
|
|
6065
|
+
async expectFirstDayOfWeekToBe(firstDayOfWeek) {
|
|
6066
|
+
await (0, $kKeXs$playwrighttest.expect)(this.page.locator('select[ng-model="$ctrl.profile.firstDayOfWeek"]')).toHaveValue(firstDayOfWeek);
|
|
6067
|
+
return this;
|
|
6068
|
+
}
|
|
6069
|
+
async save() {
|
|
6070
|
+
await this.page.locator('action-toolbar button:has-text("Save"):enabled').click();
|
|
6071
|
+
await this.page.locator(".saved-text").waitFor({
|
|
6072
|
+
state: "visible"
|
|
6073
|
+
});
|
|
6074
|
+
return this;
|
|
6075
|
+
}
|
|
6076
|
+
async setEmail(email) {
|
|
6077
|
+
await this.page.locator("#email").fill(email);
|
|
6078
|
+
return this.save();
|
|
6079
|
+
}
|
|
6080
|
+
async setFullName(fullName) {
|
|
6081
|
+
await this.page.locator("#full-name").fill(fullName);
|
|
6082
|
+
return this.save();
|
|
6083
|
+
}
|
|
6084
|
+
async setPassword(previousPassword, password) {
|
|
6085
|
+
await this.page.locator("#previousPassword").fill(previousPassword);
|
|
6086
|
+
await this.page.locator('input[data-test="password-input"]').fill(password);
|
|
6087
|
+
await this.page.locator("#passwordConfirmation").fill(password);
|
|
6088
|
+
return this.save();
|
|
6089
|
+
}
|
|
6090
|
+
async refresh() {
|
|
6091
|
+
await this.page.reload();
|
|
6092
|
+
await this.page.waitForSelector("#profileForm");
|
|
6093
|
+
return this;
|
|
6094
|
+
}
|
|
6039
6095
|
async editUserProfile(email) {
|
|
6040
6096
|
await this.page.getByLabel("Email address").click();
|
|
6041
6097
|
await this.page.getByLabel("Email address").fill(email);
|
|
@@ -9511,6 +9567,10 @@ class $4ef41cf96a5fae4c$export$b8a61e5c71402559 {
|
|
|
9511
9567
|
await this.page.waitForSelector("#releases-content");
|
|
9512
9568
|
return new (0, $9058d40a81bdb1f5$export$b453f08936c58edb)(this.page);
|
|
9513
9569
|
}
|
|
9570
|
+
async openProfilePage() {
|
|
9571
|
+
await this.page.goto(`./#/profile`);
|
|
9572
|
+
return new (0, $010122e1d9b28b80$export$3cf9c90f870f31bd)(this.page);
|
|
9573
|
+
}
|
|
9514
9574
|
async openVariablesOnReleasePage(releaseId) {
|
|
9515
9575
|
await this.page.goto(`./#/releases/${releaseId}/variables`);
|
|
9516
9576
|
await this.page.waitForSelector("#release-variables");
|