@bigbinary/neeto-playwright-commons 1.12.7 → 1.12.9
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 +25 -20
- package/index.cjs.js.map +1 -1
- package/index.d.ts +5 -2
- package/index.js +25 -21
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -21215,15 +21215,16 @@ const GOOGLE_LOGIN_TEXTS = {
|
|
|
21215
21215
|
backToSafety: "Back to safety",
|
|
21216
21216
|
neetoAutomation: "neeto.automation",
|
|
21217
21217
|
};
|
|
21218
|
+
const ENGAGE_TEXTS = { subscribe: "Subscribe" };
|
|
21218
21219
|
|
|
21219
21220
|
const HELP_CENTER_SELECTORS = {
|
|
21220
21221
|
helpButton: "help-button",
|
|
21221
21222
|
documentationButton: "help-link-help-center-button",
|
|
21222
21223
|
keyboardShortcutButton: "help-link-keyboard-shortcut-button",
|
|
21223
21224
|
chatButton: "help-link-live-chat-button",
|
|
21224
|
-
whatsNewButton: "help-link-
|
|
21225
|
+
whatsNewButton: "help-link-engage-button",
|
|
21225
21226
|
whatsNewWidgetInfo: "h1",
|
|
21226
|
-
whatsNewWidgetCloseButton: ".
|
|
21227
|
+
whatsNewWidgetCloseButton: ".ne-widget-header__btn",
|
|
21227
21228
|
keyboardShortcutPaneHeading: "keyboard-shortcuts-pane-title",
|
|
21228
21229
|
keyboardShortcutPaneCrossIcon: "keyboard-shortcuts-pane-close-button",
|
|
21229
21230
|
};
|
|
@@ -21251,9 +21252,9 @@ const CHAT_WIDGET_SELECTORS = {
|
|
|
21251
21252
|
chatQuestionHeader: "chat-question-header",
|
|
21252
21253
|
};
|
|
21253
21254
|
const CHANGELOG_WIDGET_SELECTORS = {
|
|
21254
|
-
changelogWrapper: ".
|
|
21255
|
-
closeButton: "
|
|
21256
|
-
publicUrlLink: "
|
|
21255
|
+
changelogWrapper: ".ne-widget__wrapper",
|
|
21256
|
+
closeButton: "ne-widget-close-btn",
|
|
21257
|
+
publicUrlLink: "ne-widget-public-url",
|
|
21257
21258
|
};
|
|
21258
21259
|
const KEYBOARD_SHORTCUTS_SELECTORS = {
|
|
21259
21260
|
keyboardShortcutsPane: "keyboard-shortcuts-pane",
|
|
@@ -21357,11 +21358,7 @@ class HelpAndProfilePage {
|
|
|
21357
21358
|
.getByTestId(CHANGELOG_WIDGET_SELECTORS.publicUrlLink)
|
|
21358
21359
|
.click();
|
|
21359
21360
|
const changelogPage = await changelogPagePromise;
|
|
21360
|
-
await
|
|
21361
|
-
customPageContext: changelogPage,
|
|
21362
|
-
baseUrl: this.changelogBaseURL.split("/site")[0],
|
|
21363
|
-
times: 3,
|
|
21364
|
-
});
|
|
21361
|
+
await test$1.expect(changelogPage.getByRole("button", { name: ENGAGE_TEXTS.subscribe })).toBeVisible();
|
|
21365
21362
|
await test$1.expect(changelogPage).toHaveURL(this.changelogBaseURL);
|
|
21366
21363
|
await changelogPage.close();
|
|
21367
21364
|
});
|
|
@@ -25172,17 +25169,24 @@ const initializeCredentials = (product) => {
|
|
|
25172
25169
|
}
|
|
25173
25170
|
};
|
|
25174
25171
|
|
|
25175
|
-
const addMemberViaRequest = ({ email, role = MEMBER_TEXTS.agent, appName, neetoPlaywrightUtilities, }) =>
|
|
25176
|
-
|
|
25177
|
-
|
|
25178
|
-
|
|
25179
|
-
|
|
25180
|
-
|
|
25181
|
-
|
|
25182
|
-
|
|
25172
|
+
const addMemberViaRequest = ({ email, role = MEMBER_TEXTS.agent, appName, neetoPlaywrightUtilities, }) => test$1.expect
|
|
25173
|
+
.poll(async () => {
|
|
25174
|
+
const response = await neetoPlaywrightUtilities.apiRequest({
|
|
25175
|
+
method: "post",
|
|
25176
|
+
url: API_ROUTES.teamMembers.index,
|
|
25177
|
+
body: {
|
|
25178
|
+
user: {
|
|
25179
|
+
emails: [email],
|
|
25180
|
+
organization_role: role,
|
|
25181
|
+
app_roles: [
|
|
25182
|
+
{ app_name: appName, active_role: role, is_enabled: true },
|
|
25183
|
+
],
|
|
25184
|
+
},
|
|
25183
25185
|
},
|
|
25184
|
-
}
|
|
25185
|
-
|
|
25186
|
+
});
|
|
25187
|
+
return response === null || response === void 0 ? void 0 : response.status();
|
|
25188
|
+
}, { timeout: 30000 })
|
|
25189
|
+
.toBe(200);
|
|
25186
25190
|
const editMemberViaRequest = async ({ email, firstName, lastName, newRole, neetoPlaywrightUtilities, }) => {
|
|
25187
25191
|
const response = await neetoPlaywrightUtilities.apiRequest({
|
|
25188
25192
|
method: "get",
|
|
@@ -157282,6 +157286,7 @@ exports.CustomCommands = CustomCommands;
|
|
|
157282
157286
|
exports.DESCRIPTION_EDITOR_TEXTS = DESCRIPTION_EDITOR_TEXTS;
|
|
157283
157287
|
exports.EMBED_SELECTORS = EMBED_SELECTORS;
|
|
157284
157288
|
exports.EMOJI_LABEL = EMOJI_LABEL;
|
|
157289
|
+
exports.ENGAGE_TEXTS = ENGAGE_TEXTS;
|
|
157285
157290
|
exports.ENVIRONMENT = ENVIRONMENT;
|
|
157286
157291
|
exports.EXPANDED_FONT_SIZE = EXPANDED_FONT_SIZE;
|
|
157287
157292
|
exports.EditorPage = EditorPage;
|