@bigbinary/neeto-playwright-commons 1.11.15 → 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.cjs.js +15 -3
- package/index.cjs.js.map +1 -1
- package/index.d.ts +33 -2
- package/index.js +15 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
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
|
@@ -9696,7 +9696,12 @@ const util$7 = require$$0$1;
|
|
|
9696
9696
|
const braces = braces_1;
|
|
9697
9697
|
const picomatch = picomatch$1;
|
|
9698
9698
|
const utils$c = utils$g;
|
|
9699
|
-
|
|
9699
|
+
|
|
9700
|
+
const isEmptyString = v => v === '' || v === './';
|
|
9701
|
+
const hasBraces = v => {
|
|
9702
|
+
const index = v.indexOf('{');
|
|
9703
|
+
return index > -1 && v.indexOf('}', index) > -1;
|
|
9704
|
+
};
|
|
9700
9705
|
|
|
9701
9706
|
/**
|
|
9702
9707
|
* Returns an array of strings that match one or more glob patterns.
|
|
@@ -10137,7 +10142,7 @@ micromatch$1.parse = (patterns, options) => {
|
|
|
10137
10142
|
|
|
10138
10143
|
micromatch$1.braces = (pattern, options) => {
|
|
10139
10144
|
if (typeof pattern !== 'string') throw new TypeError('Expected a string');
|
|
10140
|
-
if ((options && options.nobrace === true) ||
|
|
10145
|
+
if ((options && options.nobrace === true) || !hasBraces(pattern)) {
|
|
10141
10146
|
return [pattern];
|
|
10142
10147
|
}
|
|
10143
10148
|
return braces(pattern, options);
|
|
@@ -10156,6 +10161,8 @@ micromatch$1.braceExpand = (pattern, options) => {
|
|
|
10156
10161
|
* Expose micromatch
|
|
10157
10162
|
*/
|
|
10158
10163
|
|
|
10164
|
+
// exposed for tests
|
|
10165
|
+
micromatch$1.hasBraces = hasBraces;
|
|
10159
10166
|
var micromatch_1 = micromatch$1;
|
|
10160
10167
|
|
|
10161
10168
|
Object.defineProperty(pattern$1, "__esModule", { value: true });
|
|
@@ -16365,7 +16372,10 @@ class TeamMembers {
|
|
|
16365
16372
|
await this.page
|
|
16366
16373
|
.getByTestId(MEMBER_FORM_SELECTORS.emailTextField)
|
|
16367
16374
|
.fill(emails.join(", "));
|
|
16368
|
-
await
|
|
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 });
|
|
16369
16379
|
await this.page.getByTestId(MEMBER_SELECTORS.continueButton).click();
|
|
16370
16380
|
if (IS_STAGING_ENV) {
|
|
16371
16381
|
await this.page
|
|
@@ -16374,8 +16384,10 @@ class TeamMembers {
|
|
|
16374
16384
|
.click();
|
|
16375
16385
|
await this.page.getByTestId(MEMBER_SELECTORS.continueButton).click();
|
|
16376
16386
|
}
|
|
16387
|
+
// eslint-disable-next-line playwright/no-standalone-expect
|
|
16377
16388
|
await expect(async () => {
|
|
16378
16389
|
await this.page.getByTestId(MEMBER_SELECTORS.submitButton).click();
|
|
16390
|
+
// eslint-disable-next-line playwright/no-standalone-expect
|
|
16379
16391
|
await expect(this.page.getByTestId(COMMON_SELECTORS.paneBody)).toBeHidden();
|
|
16380
16392
|
}).toPass({ timeout: 20000 });
|
|
16381
16393
|
await this.neetoPlaywrightUtilities.waitForPageLoad();
|