Skip to content

Commit

Permalink
Update PF6 virtual-assistant library version (#1398)
Browse files Browse the repository at this point in the history
  • Loading branch information
TamiTakamiya authored Nov 14, 2024
1 parent 9c7e009 commit 755e0ab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
9 changes: 4 additions & 5 deletions ansible_ai_connect_chatbot/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ansible_ai_connect_chatbot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@patternfly/virtual-assistant": "^2.0.2",
"@patternfly/virtual-assistant": "^2.1.0-prerelease.12",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
Expand Down
6 changes: 3 additions & 3 deletions ansible_ai_connect_chatbot/src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe("App tests", () => {
renderApp();
const textArea = screen.getByLabelText("Send a message...");
await act(async () => userEvent.type(textArea, "Hello"));
const sendButton = screen.getByLabelText("Send Button");
const sendButton = screen.getByLabelText("Send button");
await act(async () => fireEvent.click(sendButton));
expect(
screen.getByText(
Expand All @@ -73,7 +73,7 @@ describe("App tests", () => {
const view = renderApp();
const textArea = screen.getByLabelText("Send a message...");
await act(async () => userEvent.type(textArea, "Hello"));
const sendButton = screen.getByLabelText("Send Button");
const sendButton = screen.getByLabelText("Send button");
await act(async () => fireEvent.click(sendButton));
const alert = view.container.querySelector(".pf-v6-c-alert__description");
const textContent = alert?.textContent;
Expand All @@ -85,7 +85,7 @@ describe("App tests", () => {
const view = renderApp();
const textArea = screen.getByLabelText("Send a message...");
await act(async () => userEvent.type(textArea, "Hello"));
const sendButton = screen.getByLabelText("Send Button");
const sendButton = screen.getByLabelText("Send button");
await act(async () => fireEvent.click(sendButton));
const alert = view.container.querySelector(".pf-v6-c-alert__description");
const textContent = alert?.textContent;
Expand Down

0 comments on commit 755e0ab

Please sign in to comment.