@bigbinary/neeto-playwright-commons 1.6.2 → 1.6.4

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/index.d.ts CHANGED
@@ -411,6 +411,7 @@ declare const KEYBOARD_SHORTCUTS_SELECTORS: {
411
411
 
412
412
  declare const PROFILE_SECTION_SELECTORS: {
413
413
  profileSectionButton: string;
414
+ profilePopup: string;
414
415
  myProfileButton: string;
415
416
  profileOrganizationSettingsButton: string;
416
417
  logoutButton: string;
package/index.js CHANGED
@@ -7172,6 +7172,7 @@ const HELP_CENTER_SELECTORS = {
7172
7172
 
7173
7173
  const PROFILE_SECTION_SELECTORS = {
7174
7174
  profileSectionButton: "profile-section",
7175
+ profilePopup: "profile-popup",
7175
7176
  myProfileButton: "my-profile-button",
7176
7177
  profileOrganizationSettingsButton: "profile-organization-settings-button",
7177
7178
  logoutButton: "profile-logout-button",
@@ -7214,10 +7215,13 @@ class HelpAndProfilePage {
7214
7215
  await expect(this.neetoChatSpinner).toBeHidden();
7215
7216
  };
7216
7217
  this.openAndVerifyChatWidget = async () => {
7217
- await this.neetoPlaywrightUtilities.interceptMultipleResponses({
7218
+ const chatInitializationApis = this.neetoPlaywrightUtilities.interceptMultipleResponses({
7218
7219
  baseUrl: this.chatApiBaseURL,
7219
7220
  times: 3,
7221
+ timeout: 20 * 1000, // Increased timeout accounting delays in page load
7220
7222
  });
7223
+ await this.page.reload();
7224
+ await chatInitializationApis;
7221
7225
  await test$1.step("Step 1: Open Help Center links", this.openHelpCenter);
7222
7226
  await test$1.step("Step 2: Open live chat and verify iframe", this.openLiveChatAndVerify);
7223
7227
  await test$1.step("Step 3: Close and reopen live chat frame", async () => {
@@ -7356,7 +7360,7 @@ class HelpAndProfilePage {
7356
7360
  this.openProfilePopup = () => expect(async () => {
7357
7361
  await this.profileSectionButton.scrollIntoViewIfNeeded();
7358
7362
  await this.profileSectionButton.hover();
7359
- await expect(this.profileSectionButton).toBeVisible();
7363
+ await expect(this.page.getByTestId(PROFILE_SECTION_SELECTORS.profilePopup)).toBeVisible();
7360
7364
  }).toPass({ timeout: 15000 });
7361
7365
  this.openAuthLinkAndVerify = async ({ linkSelector, redirectLink, }) => {
7362
7366
  var _a, _b;
@@ -8215,6 +8219,7 @@ const definePlaywrightConfig = (overrides) => {
8215
8219
  trace: "on",
8216
8220
  video: { mode: "on", size: { width: 1200, height: 1200 } },
8217
8221
  screenshot: "on",
8222
+ actionTimeout: 10 * 1000,
8218
8223
  ...useOverrides,
8219
8224
  },
8220
8225
  projects: useCustomProjects