@dev-blinq/cucumber_client 1.0.1692-dev → 1.0.1694-dev
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.
|
@@ -1588,6 +1588,7 @@ export class BVTRecorder {
|
|
|
1588
1588
|
selectedTarget,
|
|
1589
1589
|
page_context,
|
|
1590
1590
|
AIMemory,
|
|
1591
|
+
steps_context,
|
|
1591
1592
|
}) {
|
|
1592
1593
|
const runsURL = getRunsServiceBaseURL();
|
|
1593
1594
|
const url = `${runsURL}/process-user-request/generate-code-with-context`;
|
|
@@ -1602,6 +1603,7 @@ export class BVTRecorder {
|
|
|
1602
1603
|
selectedTarget,
|
|
1603
1604
|
page_context,
|
|
1604
1605
|
AIMemory,
|
|
1606
|
+
steps_context,
|
|
1605
1607
|
},
|
|
1606
1608
|
headers: {
|
|
1607
1609
|
Authorization: `Bearer ${this.TOKEN}`,
|
|
@@ -1670,6 +1672,9 @@ export class BVTRecorder {
|
|
|
1670
1672
|
}
|
|
1671
1673
|
}
|
|
1672
1674
|
async getContext() {
|
|
1675
|
+
await this.page.waitForLoadState("domcontentloaded");
|
|
1676
|
+
await this.page.waitForSelector("body");
|
|
1677
|
+
await this.page.waitForTimeout(500);
|
|
1673
1678
|
return await this.page.evaluate(() => {
|
|
1674
1679
|
return document.documentElement.outerHTML;
|
|
1675
1680
|
});
|
|
@@ -33,6 +33,7 @@ function testStringForRegex(text) {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
function escapeNonPrintables(text) {
|
|
36
|
+
if (typeof text !== "string") return text.toString();
|
|
36
37
|
const t = text.replace(/\n/g, "\\n").replace(/\t/g, "\\t"); // .replace(/\|/g, "\\|");
|
|
37
38
|
let result = "";
|
|
38
39
|
// replace \ with \\ and | with \|
|