Skip to content

Commit 921aedc

Browse files
authored
Merge branch 'main' into feat/braintrust-tracing-integration
2 parents b40b5dd + 80f6397 commit 921aedc

3 files changed

Lines changed: 19 additions & 18 deletions

File tree

src/frontend/tests/core/features/globalVariables.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ test(
99
"user must be able to save or delete a global variable",
1010
{ tag: ["@release", "@workspace", "@api"] },
1111
async ({ page }) => {
12+
await page.setViewportSize({ width: 1920, height: 1080 });
1213
await awaitBootstrapTest(page);
1314

1415
await page.waitForSelector('[data-testid="blank-flow"]', {

src/frontend/tests/core/integrations/Market Research.spec.ts

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { initialGPTsetup } from "../../utils/initialGPTsetup";
77
import { waitForOpenModalWithChatInput } from "../../utils/wait-for-open-modal";
88
import { withEventDeliveryModes } from "../../utils/withEventDeliveryModes";
99
import { unselectNodes } from "../../utils/unselect-nodes";
10+
import { disableInspectPanel } from "../../utils/open-advanced-options";
1011

1112
withEventDeliveryModes(
1213
"Market Research",
@@ -37,20 +38,11 @@ withEventDeliveryModes(
3738

3839
await initialGPTsetup(page);
3940

40-
// Approach 1: Direct fill like Instagram Copywriter (most reliable)
41-
const tavily = page
42-
.getByTestId(/rf__node-TavilySearchComponent-[A-Za-z0-9]{5}/)
43-
.getByTestId("popover-anchor-input-api_key");
41+
await disableInspectPanel(page);
4442

45-
await page.getByText("Tavily AI Search", { exact: true }).last().click();
46-
47-
if ((await tavily.count()) > 0) {
48-
await tavily.nth(0).fill(process.env.TAVILY_API_KEY ?? "");
49-
} else {
50-
await page
51-
.getByTestId("popover-anchor-input-api_key")
52-
.fill(process.env.TAVILY_API_KEY ?? "");
53-
}
43+
await page
44+
.getByTestId("popover-anchor-input-api_key")
45+
.fill(process.env.TAVILY_API_KEY || "");
5446

5547
await unselectNodes(page);
5648

src/frontend/tests/core/integrations/Vector Store.spec.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { adjustScreenView } from "../../utils/adjust-screen-view";
44
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
55
import { initialGPTsetup } from "../../utils/initialGPTsetup";
66
import { withEventDeliveryModes } from "../../utils/withEventDeliveryModes";
7+
import { disableInspectPanel } from "../../utils/open-advanced-options";
78

89
// Add this line to declare Node.js global variables
910
declare const process: any;
@@ -21,6 +22,7 @@ withEventDeliveryModes(
2122
!process?.env?.ASTRA_DB_APPLICATION_TOKEN,
2223
"ASTRA_DB_APPLICATION_TOKEN required to run this test",
2324
);
25+
2426
await awaitBootstrapTest(page);
2527

2628
await page.getByTestId("side_nav_options_all-templates").click();
@@ -34,6 +36,8 @@ withEventDeliveryModes(
3436

3537
await initialGPTsetup(page);
3638

39+
await disableInspectPanel(page);
40+
3741
await page.waitForSelector('[data-testid="title-Astra DB"]', {
3842
timeout: 3000,
3943
});
@@ -259,9 +263,7 @@ withEventDeliveryModes(
259263
.getByText("This is a test file.", { exact: true })
260264
.last()
261265
.isVisible();
262-
await page.getByText("Chat", { exact: true }).last().click();
263-
await page.getByText("Default Session").last().click();
264-
await page.getByRole("combobox").click();
266+
await page.getByTestId("chat-header-more-menu").last().click();
265267
await page.getByLabel("Message logs").click();
266268
await page.getByText("timestamp", { exact: true }).last().isVisible();
267269
await page.getByText("text", { exact: true }).last().isVisible();
@@ -270,8 +272,14 @@ withEventDeliveryModes(
270272
await page.getByText("session_id", { exact: true }).last().isVisible();
271273
await page.getByText("files", { exact: true }).last().isVisible();
272274
await page.getByRole("gridcell").last().isVisible();
273-
await page.getByRole("combobox").click();
274-
await page.getByLabel("Delete").click();
275+
await page.getByRole("checkbox").first().click();
276+
await page.getByTestId("delete-row-button").last().click();
277+
await page
278+
.getByText("No Data Available", { exact: true })
279+
.last()
280+
.isVisible();
281+
await page.getByText("Close").last().click();
282+
275283
await page.waitForSelector('[data-testid="input-chat-playground"]', {
276284
timeout: 60000,
277285
});

0 commit comments

Comments
 (0)