@bigbinary/neeto-playwright-commons 1.8.15 → 1.8.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 +9 -2
- package/index.cjs.js.map +1 -1
- package/index.d.ts +44 -2
- package/index.js +4 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -193,12 +193,12 @@ const COMMON_SELECTORS = {
|
|
|
193
193
|
|
|
194
194
|
class CustomCommands {
|
|
195
195
|
constructor(page, request, baseURL = process.env.BASE_URL) {
|
|
196
|
-
this.interceptMultipleResponses = ({ responseUrl = "", times = 1, baseUrl, customPageContext, timeout = 35000, } = {}) => {
|
|
196
|
+
this.interceptMultipleResponses = ({ responseUrl = "", responseStatus = 200, times = 1, baseUrl, customPageContext, timeout = 35000, } = {}) => {
|
|
197
197
|
const pageContext = customPageContext !== null && customPageContext !== void 0 ? customPageContext : this.page;
|
|
198
198
|
return Promise.all([...new Array(times)].map(() => pageContext.waitForResponse((response) => {
|
|
199
199
|
var _a, _b, _c;
|
|
200
200
|
if (response.request().resourceType() === "xhr" &&
|
|
201
|
-
response.status() ===
|
|
201
|
+
response.status() === responseStatus &&
|
|
202
202
|
response.url().includes(responseUrl) &&
|
|
203
203
|
response.url().startsWith((_a = baseUrl !== null && baseUrl !== void 0 ? baseUrl : this.baseURL) !== null && _a !== void 0 ? _a : "") &&
|
|
204
204
|
!this.responses.includes((_b = response.headers()) === null || _b === void 0 ? void 0 : _b["x-request-id"])) {
|
|
@@ -7237,6 +7237,7 @@ const INTEGRATIONS_TEXTS = {
|
|
|
7237
7237
|
const SLACK_WEB_TEXTS = {
|
|
7238
7238
|
signOut: "Sign out",
|
|
7239
7239
|
allow: "Allow",
|
|
7240
|
+
loadingThread: "Loading thread",
|
|
7240
7241
|
};
|
|
7241
7242
|
|
|
7242
7243
|
const HELP_CENTER_SELECTORS = {
|
|
@@ -8712,6 +8713,7 @@ exports.API_ROUTES = API_ROUTES;
|
|
|
8712
8713
|
exports.BASE_URL = BASE_URL;
|
|
8713
8714
|
exports.CHANGELOG_WIDGET_SELECTORS = CHANGELOG_WIDGET_SELECTORS;
|
|
8714
8715
|
exports.CHAT_WIDGET_SELECTORS = CHAT_WIDGET_SELECTORS;
|
|
8716
|
+
exports.CHAT_WIDGET_TEXTS = CHAT_WIDGET_TEXTS;
|
|
8715
8717
|
exports.COMMON_SELECTORS = COMMON_SELECTORS;
|
|
8716
8718
|
exports.CREDENTIALS = CREDENTIALS;
|
|
8717
8719
|
exports.CustomCommands = CustomCommands;
|
|
@@ -8719,12 +8721,15 @@ exports.ENVIRONMENT = ENVIRONMENT;
|
|
|
8719
8721
|
exports.GLOBAL_TRANSLATIONS_PATTERN = GLOBAL_TRANSLATIONS_PATTERN;
|
|
8720
8722
|
exports.HELP_CENTER_SELECTORS = HELP_CENTER_SELECTORS;
|
|
8721
8723
|
exports.HelpAndProfilePage = HelpAndProfilePage;
|
|
8724
|
+
exports.INTEGRATIONS_TEXTS = INTEGRATIONS_TEXTS;
|
|
8725
|
+
exports.INTEGRATION_SELECTORS = INTEGRATION_SELECTORS;
|
|
8722
8726
|
exports.IS_STAGING_ENV = IS_STAGING_ENV;
|
|
8723
8727
|
exports.IntegrationBase = IntegrationBase;
|
|
8724
8728
|
exports.KEYBOARD_SHORTCUTS_SELECTORS = KEYBOARD_SHORTCUTS_SELECTORS;
|
|
8725
8729
|
exports.LOGIN_SELECTORS = LOGIN_SELECTORS;
|
|
8726
8730
|
exports.MEMBER_FORM_SELECTORS = MEMBER_FORM_SELECTORS;
|
|
8727
8731
|
exports.MEMBER_SELECTORS = MEMBER_SELECTORS;
|
|
8732
|
+
exports.MEMBER_TEXTS = MEMBER_TEXTS;
|
|
8728
8733
|
exports.MERGE_TAGS_SELECTORS = MERGE_TAGS_SELECTORS;
|
|
8729
8734
|
exports.MailosaurUtils = MailosaurUtils;
|
|
8730
8735
|
exports.NEETO_AUTH_BASE_URL = NEETO_AUTH_BASE_URL;
|
|
@@ -8738,6 +8743,8 @@ exports.ROLES_SELECTORS = ROLES_SELECTORS;
|
|
|
8738
8743
|
exports.ROUTES = ROUTES;
|
|
8739
8744
|
exports.SIGNUP_SELECTORS = SIGNUP_SELECTORS;
|
|
8740
8745
|
exports.SLACK_DEFAULT_CHANNEL = SLACK_DEFAULT_CHANNEL;
|
|
8746
|
+
exports.SLACK_SELECTORS = SLACK_SELECTORS;
|
|
8747
|
+
exports.SLACK_WEB_TEXTS = SLACK_WEB_TEXTS;
|
|
8741
8748
|
exports.STORAGE_STATE = STORAGE_STATE;
|
|
8742
8749
|
exports.SlackPage = SlackPage;
|
|
8743
8750
|
exports.TAGS_SELECTORS = TAGS_SELECTORS;
|