@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.cjs.js
CHANGED
|
@@ -9743,7 +9743,12 @@ const util$7 = require$$0__default["default"];
|
|
|
9743
9743
|
const braces = braces_1;
|
|
9744
9744
|
const picomatch = picomatch$1;
|
|
9745
9745
|
const utils$c = utils$g;
|
|
9746
|
-
|
|
9746
|
+
|
|
9747
|
+
const isEmptyString = v => v === '' || v === './';
|
|
9748
|
+
const hasBraces = v => {
|
|
9749
|
+
const index = v.indexOf('{');
|
|
9750
|
+
return index > -1 && v.indexOf('}', index) > -1;
|
|
9751
|
+
};
|
|
9747
9752
|
|
|
9748
9753
|
/**
|
|
9749
9754
|
* Returns an array of strings that match one or more glob patterns.
|
|
@@ -10184,7 +10189,7 @@ micromatch$1.parse = (patterns, options) => {
|
|
|
10184
10189
|
|
|
10185
10190
|
micromatch$1.braces = (pattern, options) => {
|
|
10186
10191
|
if (typeof pattern !== 'string') throw new TypeError('Expected a string');
|
|
10187
|
-
if ((options && options.nobrace === true) ||
|
|
10192
|
+
if ((options && options.nobrace === true) || !hasBraces(pattern)) {
|
|
10188
10193
|
return [pattern];
|
|
10189
10194
|
}
|
|
10190
10195
|
return braces(pattern, options);
|
|
@@ -10203,6 +10208,8 @@ micromatch$1.braceExpand = (pattern, options) => {
|
|
|
10203
10208
|
* Expose micromatch
|
|
10204
10209
|
*/
|
|
10205
10210
|
|
|
10211
|
+
// exposed for tests
|
|
10212
|
+
micromatch$1.hasBraces = hasBraces;
|
|
10206
10213
|
var micromatch_1 = micromatch$1;
|
|
10207
10214
|
|
|
10208
10215
|
Object.defineProperty(pattern$1, "__esModule", { value: true });
|
|
@@ -16412,7 +16419,10 @@ class TeamMembers {
|
|
|
16412
16419
|
await this.page
|
|
16413
16420
|
.getByTestId(MEMBER_FORM_SELECTORS.emailTextField)
|
|
16414
16421
|
.fill(emails.join(", "));
|
|
16415
|
-
await
|
|
16422
|
+
await test$1.expect(async () => {
|
|
16423
|
+
await this.page.getByTestId(MEMBER_SELECTORS.roleLabel(role)).click();
|
|
16424
|
+
await test$1.expect(this.page.getByTestId(MEMBER_SELECTORS.roleLabel(role))).toBeChecked();
|
|
16425
|
+
}).toPass({ timeout: 20000 });
|
|
16416
16426
|
await this.page.getByTestId(MEMBER_SELECTORS.continueButton).click();
|
|
16417
16427
|
if (IS_STAGING_ENV) {
|
|
16418
16428
|
await this.page
|
|
@@ -16421,8 +16431,10 @@ class TeamMembers {
|
|
|
16421
16431
|
.click();
|
|
16422
16432
|
await this.page.getByTestId(MEMBER_SELECTORS.continueButton).click();
|
|
16423
16433
|
}
|
|
16434
|
+
// eslint-disable-next-line playwright/no-standalone-expect
|
|
16424
16435
|
await test$1.expect(async () => {
|
|
16425
16436
|
await this.page.getByTestId(MEMBER_SELECTORS.submitButton).click();
|
|
16437
|
+
// eslint-disable-next-line playwright/no-standalone-expect
|
|
16426
16438
|
await test$1.expect(this.page.getByTestId(COMMON_SELECTORS.paneBody)).toBeHidden();
|
|
16427
16439
|
}).toPass({ timeout: 20000 });
|
|
16428
16440
|
await this.neetoPlaywrightUtilities.waitForPageLoad();
|