@bigbinary/neeto-playwright-commons 1.10.14 → 1.10.16

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
@@ -12920,7 +12920,7 @@ const ZAPIER_WEB_TEXTS = {
12920
12920
  subdomain: "Subdomain",
12921
12921
  apiKey: "API key",
12922
12922
  publishingZapHeading: "Preparing Zap to go live",
12923
- connectionListMenu: "Connection List Item Menu",
12923
+ connectionListMenu: "Toggle connection list menu",
12924
12924
  usageRegExp: "Usage resets in *",
12925
12925
  trialEndsRegExp: "Trial ends on",
12926
12926
  testCurrentlyInQueue: "Test currently in queue",
@@ -13707,20 +13707,21 @@ class ZapierPage extends IntegrationBase {
13707
13707
  await test$1.expect(this.zapierWebPage.locator(ZAPIER_SELECTORS.skeletonBlock)).toHaveCount(0);
13708
13708
  const connectionLocator = this.zapierWebPage.locator(ZAPIER_SELECTORS.connection);
13709
13709
  const connections = await connectionLocator.all();
13710
- const deleteButton = this.zapierWebPage
13711
- .locator(ZAPIER_SELECTORS.floatingBox)
13712
- .locator(ZAPIER_SELECTORS.deleteConnectionDropdownButton);
13710
+ const deleteButton = this.zapierWebPage.getByRole("menuitem", {
13711
+ name: ZAPIER_WEB_TEXTS.delete,
13712
+ });
13713
13713
  for (const connection of connections) {
13714
13714
  await test$1.expect(async () => {
13715
13715
  await connection
13716
13716
  .getByLabel(ZAPIER_WEB_TEXTS.connectionListMenu)
13717
13717
  .click();
13718
+ await test$1.expect(deleteButton).toBeVisible({ timeout: 10000 });
13718
13719
  await deleteButton.click();
13719
13720
  await this.zapierWebPage
13720
13721
  .locator(ZAPIER_SELECTORS.deleteConnectionModal)
13721
13722
  .getByRole("button", { name: ZAPIER_WEB_TEXTS.delete })
13722
13723
  .click();
13723
- }).toPass({ timeout: 20000 });
13724
+ }).toPass({ timeout: 40000 });
13724
13725
  }
13725
13726
  // eslint-disable-next-line playwright/no-standalone-expect
13726
13727
  await test$1.expect(connectionLocator).toHaveCount(0, {
@@ -14750,7 +14751,7 @@ class OrganizationPage {
14750
14751
  this.fillOrganizationDetails = async ({ credentials, appName, }) => {
14751
14752
  await this.page
14752
14753
  .getByTestId(SIGNUP_SELECTORS.organizationNameTextField)
14753
- .fill(credentials.businessName);
14754
+ .fill(neetoCist.humanize(credentials.businessName));
14754
14755
  const fetchSubdomainAvailability = this.neetoPlaywrightUtilities.interceptMultipleResponses({
14755
14756
  responseUrl: ROUTES.subdomainAvailability,
14756
14757
  timeout: 60 * 1000,