@bigbinary/neeto-playwright-commons 1.11.16 → 1.11.17

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
@@ -1054,14 +1054,27 @@ declare class GooglePage extends IntegrationBase {
1054
1054
  integration,
1055
1055
  integrationRouteIndex
1056
1056
  }: GooglePageParams);
1057
+ /**
1058
+ *
1059
+ * Connects to the Google account for integration.
1060
+ *
1061
+ * appName: Name of the application.
1062
+ *
1063
+ * @example
1064
+ *
1065
+ * await googlePage.connectGoogleAccount("neetoForm");
1066
+ * @endexample
1067
+ */
1057
1068
  connectGoogleAccount: (appName: string) => Promise<void>;
1058
1069
  /**
1059
1070
  *
1060
1071
  * Selects the Google account to be used during the integration. If a verification code is required (e.g., for 2FA), it enters the TOTP code.
1061
1072
  *
1073
+ * appName: Name of the application.
1074
+ *
1062
1075
  * @example
1063
1076
  *
1064
- * await googlePage.selectGoogleAccount();
1077
+ * await googlePage.selectGoogleAccount("neetoForm");
1065
1078
  * @endexample
1066
1079
  */
1067
1080
  selectGoogleAccount: (appName: string) => Promise<void>;
@@ -1096,6 +1109,22 @@ declare class GooglePage extends IntegrationBase {
1096
1109
  * @endexample
1097
1110
  */
1098
1111
  disconnectAndVerifyIntegration: () => Promise<void>;
1112
+ /**
1113
+ *
1114
+ * Handles the user consent process for Google account. It handles navigating screens, granting permissions, and aborting the flow if needed.
1115
+ *
1116
+ * abortFlow (optional): Cancel the integration. Defaults to false.
1117
+ *
1118
+ * allowPermissions: Give permissions to the application to access the google account. Defaults to true.
1119
+ *
1120
+ * @example
1121
+ *
1122
+ * await googlePage.stagingConsentFlow({
1123
+ * abortFlow: true,
1124
+ * allowPermissions: false,
1125
+ * })
1126
+ * @endexample
1127
+ */
1099
1128
  stagingConsentFlow: ({
1100
1129
  abortFlow,
1101
1130
  allowPermissions
@@ -1485,9 +1514,11 @@ declare class ZapierPage extends IntegrationBase {
1485
1514
  *
1486
1515
  * zapierApiKey: Zapier API key.
1487
1516
  *
1517
+ * appName: Name of the application.
1518
+ *
1488
1519
  * @example
1489
1520
  *
1490
- * await zapierPage.reconnectAccountAndPublish("your-zapier-api-key");
1521
+ * await zapierPage.reconnectAccountAndPublish("your-zapier-api-key", "neetoForm");
1491
1522
  * @endexample
1492
1523
  */
1493
1524
  reconnectAccountAndPublish: (zapierApiKey: string, appName: string) => Promise<void>;
package/index.js CHANGED
@@ -16372,7 +16372,10 @@ class TeamMembers {
16372
16372
  await this.page
16373
16373
  .getByTestId(MEMBER_FORM_SELECTORS.emailTextField)
16374
16374
  .fill(emails.join(", "));
16375
- await this.page.getByTestId(MEMBER_SELECTORS.roleLabel(role)).click();
16375
+ await expect(async () => {
16376
+ await this.page.getByTestId(MEMBER_SELECTORS.roleLabel(role)).click();
16377
+ await expect(this.page.getByTestId(MEMBER_SELECTORS.roleLabel(role))).toBeChecked();
16378
+ }).toPass({ timeout: 20000 });
16376
16379
  await this.page.getByTestId(MEMBER_SELECTORS.continueButton).click();
16377
16380
  if (IS_STAGING_ENV) {
16378
16381
  await this.page
@@ -16381,8 +16384,10 @@ class TeamMembers {
16381
16384
  .click();
16382
16385
  await this.page.getByTestId(MEMBER_SELECTORS.continueButton).click();
16383
16386
  }
16387
+ // eslint-disable-next-line playwright/no-standalone-expect
16384
16388
  await expect(async () => {
16385
16389
  await this.page.getByTestId(MEMBER_SELECTORS.submitButton).click();
16390
+ // eslint-disable-next-line playwright/no-standalone-expect
16386
16391
  await expect(this.page.getByTestId(COMMON_SELECTORS.paneBody)).toBeHidden();
16387
16392
  }).toPass({ timeout: 20000 });
16388
16393
  await this.neetoPlaywrightUtilities.waitForPageLoad();