@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 CHANGED
@@ -25172,17 +25172,24 @@ const initializeCredentials = (product) => {
25172
25172
  }
25173
25173
  };
25174
25174
 
25175
- const addMemberViaRequest = ({ email, role = MEMBER_TEXTS.agent, appName, neetoPlaywrightUtilities, }) => neetoPlaywrightUtilities.apiRequest({
25176
- method: "post",
25177
- url: API_ROUTES.teamMembers.index,
25178
- body: {
25179
- user: {
25180
- emails: [email],
25181
- organization_role: role,
25182
- app_roles: [{ app_name: appName, active_role: role, is_enabled: true }],
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",