@bigbinary/neeto-playwright-commons 1.10.15 → 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.js CHANGED
@@ -12873,7 +12873,7 @@ const ZAPIER_WEB_TEXTS = {
12873
12873
  subdomain: "Subdomain",
12874
12874
  apiKey: "API key",
12875
12875
  publishingZapHeading: "Preparing Zap to go live",
12876
- connectionListMenu: "Connection List Item Menu",
12876
+ connectionListMenu: "Toggle connection list menu",
12877
12877
  usageRegExp: "Usage resets in *",
12878
12878
  trialEndsRegExp: "Trial ends on",
12879
12879
  testCurrentlyInQueue: "Test currently in queue",
@@ -13660,20 +13660,21 @@ class ZapierPage extends IntegrationBase {
13660
13660
  await expect(this.zapierWebPage.locator(ZAPIER_SELECTORS.skeletonBlock)).toHaveCount(0);
13661
13661
  const connectionLocator = this.zapierWebPage.locator(ZAPIER_SELECTORS.connection);
13662
13662
  const connections = await connectionLocator.all();
13663
- const deleteButton = this.zapierWebPage
13664
- .locator(ZAPIER_SELECTORS.floatingBox)
13665
- .locator(ZAPIER_SELECTORS.deleteConnectionDropdownButton);
13663
+ const deleteButton = this.zapierWebPage.getByRole("menuitem", {
13664
+ name: ZAPIER_WEB_TEXTS.delete,
13665
+ });
13666
13666
  for (const connection of connections) {
13667
13667
  await expect(async () => {
13668
13668
  await connection
13669
13669
  .getByLabel(ZAPIER_WEB_TEXTS.connectionListMenu)
13670
13670
  .click();
13671
+ await expect(deleteButton).toBeVisible({ timeout: 10000 });
13671
13672
  await deleteButton.click();
13672
13673
  await this.zapierWebPage
13673
13674
  .locator(ZAPIER_SELECTORS.deleteConnectionModal)
13674
13675
  .getByRole("button", { name: ZAPIER_WEB_TEXTS.delete })
13675
13676
  .click();
13676
- }).toPass({ timeout: 20000 });
13677
+ }).toPass({ timeout: 40000 });
13677
13678
  }
13678
13679
  // eslint-disable-next-line playwright/no-standalone-expect
13679
13680
  await expect(connectionLocator).toHaveCount(0, {