(chatInputOutputUser.spec.ts): update file path for image in end-to-end test

This commit is contained in:
cristhianzl 2024-06-26 22:29:11 -03:00 committed by Gabriel Luiz Freitas Almeida
commit 9ea4d7f7df

View file

@ -258,7 +258,7 @@ test("user must be able to send an image on chat", async ({ page }) => {
await page.getByText("Playground", { exact: true }).click();
// Read the image file as a binary string
const filePath = "src/frontend/tests/end-to-end/assets/chain.png";
const filePath = "tests/end-to-end/assets/chain.png";
const fileContent = readFileSync(filePath, "base64");
// Create the DataTransfer and File objects within the browser context