@bigbinary/neeto-playwright-commons 1.10.15 → 1.11.0

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, {
@@ -148822,11 +148823,6 @@ if (fs__namespace.existsSync("./e2e/config/.env.local")) {
148822
148823
  });
148823
148824
  main.expand(localEnv);
148824
148825
  }
148825
- const currentsConfig = {
148826
- ciBuildId: process.env.NEETO_CI_JOB_ID,
148827
- recordKey: "PVHNwxEOySsdAeTc",
148828
- tag: [process.env.TAG],
148829
- };
148830
148826
  const playdashStagingConfig = {
148831
148827
  apiKey: process.env.PLAYDASH_STAGING_API_KEY,
148832
148828
  ciBuildId: process.env.NEETO_CI_JOB_ID,
@@ -148840,28 +148836,26 @@ const playdashProductionConfig = {
148840
148836
  };
148841
148837
  const isCI = [ENVIRONMENT.staging, ENVIRONMENT.review].includes((_b = process.env.TEST_ENV) !== null && _b !== void 0 ? _b : ENVIRONMENT.development) && !!process.env.NEETO_CI_JOB_ID;
148842
148838
  const definePlaywrightConfig = (overrides) => {
148843
- const { globalOverrides = {}, useOverrides = {}, useCustomProjects = false, projectOverrides = [], currentsOverrides = {}, playdashStagingOverrides = {}, playdashProductionOverrides = {}, } = overrides;
148844
- const reporter = [
148845
- ["@currents/playwright", { ...currentsConfig, ...currentsOverrides }],
148846
- ];
148847
- if (!ramda.isEmpty(playdashStagingOverrides)) {
148848
- reporter.push([
148849
- "@bigbinary/neeto-playwright-reporter",
148850
- {
148851
- ...playdashStagingConfig,
148852
- ...playdashStagingOverrides,
148853
- },
148854
- ]);
148855
- }
148856
- else {
148857
- reporter.push([
148858
- "@bigbinary/neeto-playwright-reporter",
148859
- {
148860
- ...playdashProductionConfig,
148861
- ...playdashProductionOverrides,
148862
- },
148863
- ]);
148864
- }
148839
+ const { globalOverrides = {}, useOverrides = {}, useCustomProjects = false, projectOverrides = [], playdashStagingOverrides = {}, playdashProductionOverrides = {}, } = overrides;
148840
+ const reporter = !ramda.isEmpty(playdashStagingOverrides)
148841
+ ? [
148842
+ [
148843
+ "@bigbinary/neeto-playwright-reporter",
148844
+ {
148845
+ ...playdashStagingConfig,
148846
+ ...playdashStagingOverrides,
148847
+ },
148848
+ ],
148849
+ ]
148850
+ : [
148851
+ [
148852
+ "@bigbinary/neeto-playwright-reporter",
148853
+ {
148854
+ ...playdashProductionConfig,
148855
+ ...playdashProductionOverrides,
148856
+ },
148857
+ ],
148858
+ ];
148865
148859
  return test$1.defineConfig({
148866
148860
  testDir: "./e2e/tests",
148867
148861
  fullyParallel: true,