@bigbinary/neeto-playwright-commons 1.8.5 → 1.8.7
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 +3 -2
- package/index.cjs.js.map +1 -1
- package/index.js +3 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -153,7 +153,7 @@ const COMMON_SELECTORS = {
|
|
|
153
153
|
|
|
154
154
|
class CustomCommands {
|
|
155
155
|
constructor(page, request) {
|
|
156
|
-
this.interceptMultipleResponses = ({ responseUrl = "", times = 1, baseUrl, customPageContext, timeout =
|
|
156
|
+
this.interceptMultipleResponses = ({ responseUrl = "", times = 1, baseUrl, customPageContext, timeout = 35000, } = {}) => {
|
|
157
157
|
const pageContext = customPageContext !== null && customPageContext !== void 0 ? customPageContext : this.page;
|
|
158
158
|
return Promise.all([...new Array(times)].map(() => pageContext.waitForResponse((response) => {
|
|
159
159
|
var _a, _b, _c;
|
|
@@ -287,7 +287,8 @@ const commands = {
|
|
|
287
287
|
};
|
|
288
288
|
|
|
289
289
|
const generateStagingData = (product = "invoice") => {
|
|
290
|
-
|
|
290
|
+
var _a;
|
|
291
|
+
const timestamp = `${dayjs().format("YYYYMMDDHH")}${(_a = process.env.JOB_COMPLETION_INDEX) !== null && _a !== void 0 ? _a : ""}`;
|
|
291
292
|
const firstName = "André";
|
|
292
293
|
const lastName = "O'Reilly";
|
|
293
294
|
const otpBypassKey = process.env.OTP_BYPASS_KEY;
|