@digital-ai/devops-page-object-release 0.0.60 → 0.0.61

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
@@ -5274,7 +5274,9 @@ class $f1bf370bb7f683ca$export$1d7840d5cdc861d5 extends (0, $9626bc9256ce31f7$ex
5274
5274
  await (0, $hOLA6$expect)(this.page.getByRole("heading", {
5275
5275
  name: "System message"
5276
5276
  })).toBeVisible();
5277
- await this.closeIcon.click();
5277
+ }
5278
+ async closeConfigureSystemMessage() {
5279
+ await this.closeIcon.first().click();
5278
5280
  }
5279
5281
  async configureSystemMessage(message) {
5280
5282
  await this.settingsIcon.click();
@@ -8008,6 +8010,26 @@ class $2cbb78eec86d0a9f$export$b8732a8d21d8bf63 extends $2cbb78eec86d0a9f$export
8008
8010
  }).fill(value);
8009
8011
  return this;
8010
8012
  }
8013
+ async setLoginMessage(message) {
8014
+ await this.page.locator("div#loginMessage").click({
8015
+ force: true
8016
+ });
8017
+ const input = this.page.locator("input#loginMessage");
8018
+ const currentValue = await input.inputValue();
8019
+ if (currentValue.trim() !== "") await input.fill("");
8020
+ await input.fill(message);
8021
+ await input.press("Tab");
8022
+ return this;
8023
+ }
8024
+ async clearLoginMessage() {
8025
+ await this.page.locator("div#loginMessage").click({
8026
+ force: true
8027
+ });
8028
+ const input = this.page.locator("input#loginMessage");
8029
+ await input.fill("");
8030
+ await input.press("Tab");
8031
+ return this;
8032
+ }
8011
8033
  async setHeaderColor(colorName) {
8012
8034
  await this.page.locator(".color-picker button").click({
8013
8035
  force: true
@@ -8531,6 +8553,17 @@ class $4444bee76761dfb1$export$f14c0e3f98d164c0 extends (0, $9626bc9256ce31f7$ex
8531
8553
  await this.page.waitForTimeout(1000);
8532
8554
  await this.closePendoModalWindow();
8533
8555
  }
8556
+ async loginWithoutReload(userName, password) {
8557
+ let loadTriggered = false;
8558
+ this.page.on("load", ()=>{
8559
+ loadTriggered = true;
8560
+ });
8561
+ await this.page.evaluate(()=>{
8562
+ window.location.hash = "#tasks";
8563
+ });
8564
+ (0, $hOLA6$expect)(loadTriggered).toBe(false);
8565
+ await this.login(userName, password);
8566
+ }
8534
8567
  /**
8535
8568
  * Logout as authenticated user
8536
8569
  */ async logout() {
@@ -8556,6 +8589,18 @@ class $4444bee76761dfb1$export$f14c0e3f98d164c0 extends (0, $9626bc9256ce31f7$ex
8556
8589
  await this.page.waitForTimeout(1000);
8557
8590
  if (await this.page.locator("._pendo-close-guide").count() > 0) await this.page.locator("._pendo-close-guide").click();
8558
8591
  }
8592
+ async expectUserNotVisible() {
8593
+ const tooltip = this.page.locator("top-toolbar .avatar-wrapper .dot-tooltip");
8594
+ await tooltip.waitFor({
8595
+ state: "hidden"
8596
+ });
8597
+ }
8598
+ async expectUserVisible() {
8599
+ const tooltip = this.page.locator("top-toolbar .avatar-wrapper .dot-tooltip");
8600
+ await tooltip.waitFor({
8601
+ state: "visible"
8602
+ });
8603
+ }
8559
8604
  }
8560
8605
 
8561
8606