From 755e0abe9fdf7ec1f8b6a9c0931338b2e98e0980 Mon Sep 17 00:00:00 2001 From: Tami Takamiya Date: Thu, 14 Nov 2024 12:50:21 -0500 Subject: [PATCH] Update PF6 virtual-assistant library version (#1398) --- ansible_ai_connect_chatbot/package-lock.json | 9 ++++----- ansible_ai_connect_chatbot/package.json | 2 +- ansible_ai_connect_chatbot/src/App.test.tsx | 6 +++--- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/ansible_ai_connect_chatbot/package-lock.json b/ansible_ai_connect_chatbot/package-lock.json index 28f076565..9ab3cb020 100644 --- a/ansible_ai_connect_chatbot/package-lock.json +++ b/ansible_ai_connect_chatbot/package-lock.json @@ -8,7 +8,7 @@ "name": "ansible-ai-connect-chatbot", "version": "0.1.0", "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", @@ -1213,10 +1213,9 @@ "license": "MIT" }, "node_modules/@patternfly/virtual-assistant": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@patternfly/virtual-assistant/-/virtual-assistant-2.0.2.tgz", - "integrity": "sha512-2qVQg1cU3Wv+mkFklAYQWyXWICbRlL/vgllSORGmBL0VIYM+Q3ICD3z/CkQrt0K1qdEqXp60dCnu1BKODrptxQ==", - "license": "MIT", + "version": "2.1.0-prerelease.12", + "resolved": "https://registry.npmjs.org/@patternfly/virtual-assistant/-/virtual-assistant-2.1.0-prerelease.12.tgz", + "integrity": "sha512-wlxUOR4lW680XQox51lGDPe67U8YeZ/ed0IElZD1Zy/0644a5PMJK3KjpbMj6HBeVLnqUmbMEJ2EALimpLUiVg==", "dependencies": { "@patternfly/react-code-editor": "^6.0.0", "@patternfly/react-core": "^6.0.0", diff --git a/ansible_ai_connect_chatbot/package.json b/ansible_ai_connect_chatbot/package.json index 82fb115c2..6b53e792e 100644 --- a/ansible_ai_connect_chatbot/package.json +++ b/ansible_ai_connect_chatbot/package.json @@ -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", diff --git a/ansible_ai_connect_chatbot/src/App.test.tsx b/ansible_ai_connect_chatbot/src/App.test.tsx index 32f0b2aa4..5bda1193c 100644 --- a/ansible_ai_connect_chatbot/src/App.test.tsx +++ b/ansible_ai_connect_chatbot/src/App.test.tsx @@ -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( @@ -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; @@ -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;