@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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @digital-ai/devops-page-object-release
2
2
 
3
+ ## 0.0.61
4
+
5
+ ### Patch Changes
6
+
7
+ - 5cfb118: page objects added for migrated login-scenario
8
+
9
+ login-page updated
10
+ systemSettingsPage updated
11
+
12
+ - 786502f: S-121108: settingsMenu updated for system-message-configuration-scenario
13
+
3
14
  ## 0.0.60
4
15
 
5
16
  ### Patch Changes
package/dist/main.js CHANGED
@@ -6210,7 +6210,9 @@ class $7867194f18360347$export$1d7840d5cdc861d5 extends (0, $f8721861c660dd88$ex
6210
6210
  await (0, $kKeXs$playwrighttest.expect)(this.page.getByRole("heading", {
6211
6211
  name: "System message"
6212
6212
  })).toBeVisible();
6213
- await this.closeIcon.click();
6213
+ }
6214
+ async closeConfigureSystemMessage() {
6215
+ await this.closeIcon.first().click();
6214
6216
  }
6215
6217
  async configureSystemMessage(message) {
6216
6218
  await this.settingsIcon.click();
@@ -8944,6 +8946,26 @@ class $dbc8f157e7b24b12$export$b8732a8d21d8bf63 extends $dbc8f157e7b24b12$export
8944
8946
  }).fill(value);
8945
8947
  return this;
8946
8948
  }
8949
+ async setLoginMessage(message) {
8950
+ await this.page.locator("div#loginMessage").click({
8951
+ force: true
8952
+ });
8953
+ const input = this.page.locator("input#loginMessage");
8954
+ const currentValue = await input.inputValue();
8955
+ if (currentValue.trim() !== "") await input.fill("");
8956
+ await input.fill(message);
8957
+ await input.press("Tab");
8958
+ return this;
8959
+ }
8960
+ async clearLoginMessage() {
8961
+ await this.page.locator("div#loginMessage").click({
8962
+ force: true
8963
+ });
8964
+ const input = this.page.locator("input#loginMessage");
8965
+ await input.fill("");
8966
+ await input.press("Tab");
8967
+ return this;
8968
+ }
8947
8969
  async setHeaderColor(colorName) {
8948
8970
  await this.page.locator(".color-picker button").click({
8949
8971
  force: true
@@ -9467,6 +9489,17 @@ class $258749e0671c845a$export$f14c0e3f98d164c0 extends (0, $f8721861c660dd88$ex
9467
9489
  await this.page.waitForTimeout(1000);
9468
9490
  await this.closePendoModalWindow();
9469
9491
  }
9492
+ async loginWithoutReload(userName, password) {
9493
+ let loadTriggered = false;
9494
+ this.page.on("load", ()=>{
9495
+ loadTriggered = true;
9496
+ });
9497
+ await this.page.evaluate(()=>{
9498
+ window.location.hash = "#tasks";
9499
+ });
9500
+ (0, $kKeXs$playwrighttest.expect)(loadTriggered).toBe(false);
9501
+ await this.login(userName, password);
9502
+ }
9470
9503
  /**
9471
9504
  * Logout as authenticated user
9472
9505
  */ async logout() {
@@ -9492,6 +9525,18 @@ class $258749e0671c845a$export$f14c0e3f98d164c0 extends (0, $f8721861c660dd88$ex
9492
9525
  await this.page.waitForTimeout(1000);
9493
9526
  if (await this.page.locator("._pendo-close-guide").count() > 0) await this.page.locator("._pendo-close-guide").click();
9494
9527
  }
9528
+ async expectUserNotVisible() {
9529
+ const tooltip = this.page.locator("top-toolbar .avatar-wrapper .dot-tooltip");
9530
+ await tooltip.waitFor({
9531
+ state: "hidden"
9532
+ });
9533
+ }
9534
+ async expectUserVisible() {
9535
+ const tooltip = this.page.locator("top-toolbar .avatar-wrapper .dot-tooltip");
9536
+ await tooltip.waitFor({
9537
+ state: "visible"
9538
+ });
9539
+ }
9495
9540
  }
9496
9541
 
9497
9542