fix: make streaming work in JS code example (#3891)

* fix js code

* fix js code

* fix js code

* fix js code

* update js code

* update js code
This commit is contained in:
Yuqi Tang 2024-10-02 16:34:05 -07:00 • committed by GitHub
commit 91e5ae797d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 33 additions and 23 deletions

View file

@ -57,7 +57,7 @@ test("user should be able to connect RetrieverTool to another components", async
.hover()
.then(async () => {
await page.mouse.down();
await page.mouse.move(-500, 500);
await page.mouse.move(-300, 300);
});
await page.mouse.up();
@ -86,7 +86,7 @@ test("user should be able to connect RetrieverTool to another components", async
await chromaDbOutput.hover();
await page.mouse.down();
const retrieverToolInput = await page
.getByTestId("handle-retrievertool-shownode-retriever-left")
.getByTestId("handle-nvidiarerankcomponent-shownode-retriever-left")
.nth(0);
await retrieverToolInput.hover();
await page.mouse.up();