Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinEtchells committed Nov 21, 2024
1 parent 496cbc2 commit c622fd7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions django_app/frontend/tests-web-components/chat-controller.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { test, expect } from "@playwright/test";
const { sendMessage, signIn } = require("./utils.js");

test(`The activity log is displayed`, async ({ page }) => {
await signIn(page);

await page.goto("/chats");

await sendMessage(page);
expect(page.getByText("You sent this prompt")).toBeVisible();

});
2 changes: 1 addition & 1 deletion tests/pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def expected_page_title(self) -> str:
return "Citations - Redbox"

def back_to_chat(self) -> ChatsPage:
self.page.get_by_role("link", name="Back to chat", exact=True).click()
self.page.get_by_role("link", name="Back to chat").click()
return ChatsPage(self.page)


Expand Down

0 comments on commit c622fd7

Please sign in to comment.