@bigbinary/neeto-playwright-commons 1.12.6 → 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
@@ -24210,8 +24210,7 @@ class EditorPage {
24210
24210
  await this.page
24211
24211
  .getByTestId(NEETO_EDITOR_SELECTORS.dynamicVariableSelector(key))
24212
24212
  .click();
24213
- const formattedValue = value.length > 25 ? `${value.substring(0, 25)}...` : value;
24214
- await test$1.expect(this.contentField.getByText(formattedValue)).toBeVisible();
24213
+ await test$1.expect(this.contentField.getByText(neetoCist.truncate(value, 25))).toBeVisible();
24215
24214
  }
24216
24215
  };
24217
24216
  this.buttonsAndVerifications = {
@@ -25173,17 +25172,24 @@ const initializeCredentials = (product) => {
25173
25172
  }
25174
25173
  };
25175
25174
 
25176
- const addMemberViaRequest = ({ email, role = MEMBER_TEXTS.agent, appName, neetoPlaywrightUtilities, }) => neetoPlaywrightUtilities.apiRequest({
25177
- method: "post",
25178
- url: API_ROUTES.teamMembers.index,
25179
- body: {
25180
- user: {
25181
- emails: [email],
25182
- organization_role: role,
25183
- 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
+ },
25184
25188
  },
25185
- },
25186
- });
25189
+ });
25190
+ return response === null || response === void 0 ? void 0 : response.status();
25191
+ }, { timeout: 30000 })
25192
+ .toBe(200);
25187
25193
  const editMemberViaRequest = async ({ email, firstName, lastName, newRole, neetoPlaywrightUtilities, }) => {
25188
25194
  const response = await neetoPlaywrightUtilities.apiRequest({
25189
25195
  method: "get",