Elffuss BraidHub

kikocis/continue public

change tests to check for agent mode as default
Changeset14b1fb4917c3eabb880bead209a2da49d841b945639fed8536079e5dd2284bbb
AuthorRohit Khanwani <rkhanwani10@gmail.com> · 2025-07-07 01:26 +01:00
CommitterRohit Khanwani <rkhanwani10@gmail.com> · 2025-07-08 21:09 +01:00
Parentsbc2e599de246

Browse the files at this changeset

1 file changed

modified gui/src/pages/gui/chat-tests/Chat.test.tsx +6 −6
@@ -15,7 +15,7 @@
1515
1616 test("should be able to toggle modes", async () => {
1717 await renderWithProviders(<Chat />);
18- await getElementByText("Chat");
18+ await getElementByText("Agent");
1919
2020 // Simulate cmd+. keyboard shortcut to toggle modes
2121 act(() => {
@@ -27,8 +27,8 @@
2727 );
2828 });
2929
30- // Check that it switched to Plan mode
31- await getElementByText("Plan");
30+ // Check that it switched to Chat mode
31+ await getElementByText("Chat");
3232
3333 act(() => {
3434 document.dispatchEvent(
@@ -39,8 +39,8 @@
3939 );
4040 });
4141
42- // Check that it switched to Agent mode
43- await getElementByText("Agent");
42+ // Check that it switched to Plan mode
43+ await getElementByText("Plan");
4444
4545 act(() => {
4646 document.dispatchEvent(
@@ -51,7 +51,7 @@
5151 );
5252 });
5353
54- await getElementByText("Chat");
54+ await getElementByText("Agent");
5555 });
5656
5757 test("should send a message and receive a response", async () => {