@umbraco/playwright-testhelpers
Version:
Test helpers for making playwright tests for Umbraco solutions
22 lines • 919 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CurrentUserProfileUiHelper = void 0;
const UiBaseLocators_1 = require("./UiBaseLocators");
class CurrentUserProfileUiHelper extends UiBaseLocators_1.UiBaseLocators {
changePasswordBtn;
constructor(page) {
super(page);
this.changePasswordBtn = page.getByLabel('Change password');
}
async clickChangePasswordButton() {
await this.click(this.changePasswordBtn);
}
async changePassword(currentPassword, newPassword) {
await this.enterText(this.currentPasswordTxt, currentPassword);
await this.enterText(this.newPasswordTxt, newPassword);
await this.enterText(this.confirmPasswordTxt, newPassword);
await this.clickConfirmButton();
}
}
exports.CurrentUserProfileUiHelper = CurrentUserProfileUiHelper;
//# sourceMappingURL=CurrentUserProfileUiHelper.js.map