@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.d.ts CHANGED
@@ -5052,11 +5052,11 @@ interface Overrides {
5052
5052
  *
5053
5053
  * @example
5054
5054
  *
5055
- * import { definePlaywrightConfig } from "@bigbinary/neeto-playwright-commons";
5055
+ * import { definePlaywrightConfig } from "@bigbinary/neeto-playwright-commons";
5056
5056
  *
5057
- * export default definePlaywrightConfig({
5058
- * currentsOverrides: { projectId: "******" },
5059
- * });
5057
+ * export default definePlaywrightConfig({
5058
+ * playdashProductionOverrides: { projectKey: "********************" },
5059
+ * });
5060
5060
  * @endexample
5061
5061
  */
5062
5062
  declare const definePlaywrightConfig: (overrides: Overrides) => _playwright_test.PlaywrightTestConfig<{}, {}>;
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, {
@@ -148775,11 +148776,6 @@ if (fs$d.existsSync("./e2e/config/.env.local")) {
148775
148776
  });
148776
148777
  main.expand(localEnv);
148777
148778
  }
148778
- const currentsConfig = {
148779
- ciBuildId: process.env.NEETO_CI_JOB_ID,
148780
- recordKey: "PVHNwxEOySsdAeTc",
148781
- tag: [process.env.TAG],
148782
- };
148783
148779
  const playdashStagingConfig = {
148784
148780
  apiKey: process.env.PLAYDASH_STAGING_API_KEY,
148785
148781
  ciBuildId: process.env.NEETO_CI_JOB_ID,
@@ -148793,28 +148789,26 @@ const playdashProductionConfig = {
148793
148789
  };
148794
148790
  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;
148795
148791
  const definePlaywrightConfig = (overrides) => {
148796
- const { globalOverrides = {}, useOverrides = {}, useCustomProjects = false, projectOverrides = [], currentsOverrides = {}, playdashStagingOverrides = {}, playdashProductionOverrides = {}, } = overrides;
148797
- const reporter = [
148798
- ["@currents/playwright", { ...currentsConfig, ...currentsOverrides }],
148799
- ];
148800
- if (!isEmpty$1(playdashStagingOverrides)) {
148801
- reporter.push([
148802
- "@bigbinary/neeto-playwright-reporter",
148803
- {
148804
- ...playdashStagingConfig,
148805
- ...playdashStagingOverrides,
148806
- },
148807
- ]);
148808
- }
148809
- else {
148810
- reporter.push([
148811
- "@bigbinary/neeto-playwright-reporter",
148812
- {
148813
- ...playdashProductionConfig,
148814
- ...playdashProductionOverrides,
148815
- },
148816
- ]);
148817
- }
148792
+ const { globalOverrides = {}, useOverrides = {}, useCustomProjects = false, projectOverrides = [], playdashStagingOverrides = {}, playdashProductionOverrides = {}, } = overrides;
148793
+ const reporter = !isEmpty$1(playdashStagingOverrides)
148794
+ ? [
148795
+ [
148796
+ "@bigbinary/neeto-playwright-reporter",
148797
+ {
148798
+ ...playdashStagingConfig,
148799
+ ...playdashStagingOverrides,
148800
+ },
148801
+ ],
148802
+ ]
148803
+ : [
148804
+ [
148805
+ "@bigbinary/neeto-playwright-reporter",
148806
+ {
148807
+ ...playdashProductionConfig,
148808
+ ...playdashProductionOverrides,
148809
+ },
148810
+ ],
148811
+ ];
148818
148812
  return defineConfig({
148819
148813
  testDir: "./e2e/tests",
148820
148814
  fullyParallel: true,