@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.cjs.js
CHANGED
|
@@ -188,7 +188,7 @@ const COMMON_SELECTORS = {
|
|
|
188
188
|
|
|
189
189
|
class CustomCommands {
|
|
190
190
|
constructor(page, request) {
|
|
191
|
-
this.interceptMultipleResponses = ({ responseUrl = "", times = 1, baseUrl, customPageContext, timeout =
|
|
191
|
+
this.interceptMultipleResponses = ({ responseUrl = "", times = 1, baseUrl, customPageContext, timeout = 35000, } = {}) => {
|
|
192
192
|
const pageContext = customPageContext !== null && customPageContext !== void 0 ? customPageContext : this.page;
|
|
193
193
|
return Promise.all([...new Array(times)].map(() => pageContext.waitForResponse((response) => {
|
|
194
194
|
var _a, _b, _c;
|
|
@@ -322,7 +322,8 @@ const commands = {
|
|
|
322
322
|
};
|
|
323
323
|
|
|
324
324
|
const generateStagingData = (product = "invoice") => {
|
|
325
|
-
|
|
325
|
+
var _a;
|
|
326
|
+
const timestamp = `${dayjs__default["default"]().format("YYYYMMDDHH")}${(_a = process.env.JOB_COMPLETION_INDEX) !== null && _a !== void 0 ? _a : ""}`;
|
|
326
327
|
const firstName = "André";
|
|
327
328
|
const lastName = "O'Reilly";
|
|
328
329
|
const otpBypassKey = process.env.OTP_BYPASS_KEY;
|