@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.cjs.js CHANGED
@@ -7207,6 +7207,7 @@ const HELP_CENTER_SELECTORS = {
7207
7207
 
7208
7208
  const PROFILE_SECTION_SELECTORS = {
7209
7209
  profileSectionButton: "profile-section",
7210
+ profilePopup: "profile-popup",
7210
7211
  myProfileButton: "my-profile-button",
7211
7212
  profileOrganizationSettingsButton: "profile-organization-settings-button",
7212
7213
  logoutButton: "profile-logout-button",
@@ -7249,10 +7250,13 @@ class HelpAndProfilePage {
7249
7250
  await test.expect(this.neetoChatSpinner).toBeHidden();
7250
7251
  };
7251
7252
  this.openAndVerifyChatWidget = async () => {
7252
- await this.neetoPlaywrightUtilities.interceptMultipleResponses({
7253
+ const chatInitializationApis = this.neetoPlaywrightUtilities.interceptMultipleResponses({
7253
7254
  baseUrl: this.chatApiBaseURL,
7254
7255
  times: 3,
7256
+ timeout: 20 * 1000, // Increased timeout accounting delays in page load
7255
7257
  });
7258
+ await this.page.reload();
7259
+ await chatInitializationApis;
7256
7260
  await test.test.step("Step 1: Open Help Center links", this.openHelpCenter);
7257
7261
  await test.test.step("Step 2: Open live chat and verify iframe", this.openLiveChatAndVerify);
7258
7262
  await test.test.step("Step 3: Close and reopen live chat frame", async () => {
@@ -7391,7 +7395,7 @@ class HelpAndProfilePage {
7391
7395
  this.openProfilePopup = () => test.expect(async () => {
7392
7396
  await this.profileSectionButton.scrollIntoViewIfNeeded();
7393
7397
  await this.profileSectionButton.hover();
7394
- await test.expect(this.profileSectionButton).toBeVisible();
7398
+ await test.expect(this.page.getByTestId(PROFILE_SECTION_SELECTORS.profilePopup)).toBeVisible();
7395
7399
  }).toPass({ timeout: 15000 });
7396
7400
  this.openAuthLinkAndVerify = async ({ linkSelector, redirectLink, }) => {
7397
7401
  var _a, _b;
@@ -8250,6 +8254,7 @@ const definePlaywrightConfig = (overrides) => {
8250
8254
  trace: "on",
8251
8255
  video: { mode: "on", size: { width: 1200, height: 1200 } },
8252
8256
  screenshot: "on",
8257
+ actionTimeout: 10 * 1000,
8253
8258
  ...useOverrides,
8254
8259
  },
8255
8260
  projects: useCustomProjects