@bigbinary/neeto-playwright-commons 1.8.27 → 1.8.29

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
@@ -139,6 +139,8 @@ const skipTest = {
139
139
  },
140
140
  };
141
141
  const shouldSkipSetupAndTeardown = () => { var _a; return ((_a = getGlobalUserState()) === null || _a === void 0 ? void 0 : _a.isLoggedIn) && process.env.SKIP_SETUP === "true"; };
142
+ // trims and replaces multiple whitespace characters in a string with a single space
143
+ const squish = (text) => text.trim().replace(/\s+/g, " ");
142
144
 
143
145
  const COMMON_SELECTORS = {
144
146
  spinner: ".neeto-ui-spinner",
@@ -12398,18 +12400,7 @@ class HelpAndProfilePage {
12398
12400
  await newConversationButton.click();
12399
12401
  await test$1.expect(this.neetoChatSpinner).toBeHidden({ timeout: 35000 });
12400
12402
  });
12401
- await test$1.test.step("Step 4: Fill and submit email", async () => {
12402
- var _a, _b;
12403
- await this.neetoChatFrame
12404
- .getByTestId(CHAT_WIDGET_SELECTORS.preChatEmailInput)
12405
- .fill((_b = (_a = readFileSyncIfExists()) === null || _a === void 0 ? void 0 : _a.user) === null || _b === void 0 ? void 0 : _b.email);
12406
- await this.neetoChatFrame
12407
- .getByTestId(CHAT_WIDGET_SELECTORS.preChatSubmitButton)
12408
- .getByRole("button")
12409
- .click();
12410
- await test$1.expect(this.neetoChatSpinner).toBeHidden({ timeout: 35000 });
12411
- });
12412
- await test$1.test.step("Step 5: Verify conversation window", async () => {
12403
+ await test$1.test.step("Step 4: Verify conversation window", async () => {
12413
12404
  await test$1.expect(this.neetoChatFrame.getByTestId(CHAT_WIDGET_SELECTORS.chatBubble)).toHaveText(CHAT_WIDGET_TEXTS.welcomeChatBubble);
12414
12405
  });
12415
12406
  };
@@ -12856,6 +12847,7 @@ const SIGNUP_SELECTORS = {
12856
12847
  subdomainNameTextField: "signup-organization-subdomain-text-field",
12857
12848
  subdomainError: "subdomain-input-error",
12858
12849
  tryFreeButton: "neeto-auth-signup-link",
12850
+ unregisterdEmailError: "unregisterd-email-error",
12859
12851
  };
12860
12852
 
12861
12853
  const extractSubdomainFromError = (errorString) => {
@@ -13879,6 +13871,7 @@ exports.readFileSyncIfExists = readFileSyncIfExists;
13879
13871
  exports.removeCredentialFile = removeCredentialFile;
13880
13872
  exports.shouldSkipSetupAndTeardown = shouldSkipSetupAndTeardown;
13881
13873
  exports.skipTest = skipTest;
13874
+ exports.squish = squish;
13882
13875
  exports.stealthTest = stealth;
13883
13876
  exports.tableUtils = tableUtils;
13884
13877
  exports.updateCredentials = updateCredentials;