@bigbinary/neeto-playwright-commons 1.12.7 → 1.12.8
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 +17 -10
- package/index.cjs.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +17 -10
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -25172,17 +25172,24 @@ const initializeCredentials = (product) => {
|
|
|
25172
25172
|
}
|
|
25173
25173
|
};
|
|
25174
25174
|
|
|
25175
|
-
const addMemberViaRequest = ({ email, role = MEMBER_TEXTS.agent, appName, neetoPlaywrightUtilities, }) =>
|
|
25176
|
-
|
|
25177
|
-
|
|
25178
|
-
|
|
25179
|
-
|
|
25180
|
-
|
|
25181
|
-
|
|
25182
|
-
|
|
25175
|
+
const addMemberViaRequest = ({ email, role = MEMBER_TEXTS.agent, appName, neetoPlaywrightUtilities, }) => test$1.expect
|
|
25176
|
+
.poll(async () => {
|
|
25177
|
+
const response = await neetoPlaywrightUtilities.apiRequest({
|
|
25178
|
+
method: "post",
|
|
25179
|
+
url: API_ROUTES.teamMembers.index,
|
|
25180
|
+
body: {
|
|
25181
|
+
user: {
|
|
25182
|
+
emails: [email],
|
|
25183
|
+
organization_role: role,
|
|
25184
|
+
app_roles: [
|
|
25185
|
+
{ app_name: appName, active_role: role, is_enabled: true },
|
|
25186
|
+
],
|
|
25187
|
+
},
|
|
25183
25188
|
},
|
|
25184
|
-
}
|
|
25185
|
-
|
|
25189
|
+
});
|
|
25190
|
+
return response === null || response === void 0 ? void 0 : response.status();
|
|
25191
|
+
}, { timeout: 30000 })
|
|
25192
|
+
.toBe(200);
|
|
25186
25193
|
const editMemberViaRequest = async ({ email, firstName, lastName, newRole, neetoPlaywrightUtilities, }) => {
|
|
25187
25194
|
const response = await neetoPlaywrightUtilities.apiRequest({
|
|
25188
25195
|
method: "get",
|