-
-
-
-
-
-
-
- Welcome to Copilot in CosmosDB
-
-
-
-
-
-
-
-
-
-
- Let copilot do the work for you
-
-
-
-
-
-
- Ask Copilot to generate a query by describing the query in your words.
-
-
- Learn more
-
-
-
-
-
-
-
-
-
-
-
-
-
- Use your judgement
-
-
-
-
-
-
- AI-generated content can have mistakes. Make sure it’s accurate and appropriate before using it.
-
-
- Read preview terms
-
-
-
-
-
-
-
-
-
-
-
-
-
- Copilot currently works only a sample database
-
-
-
-
-
-
- Copilot is setup on a sample database we have configured for you at no cost
-
-
- Learn more
-
-
-
-
-
-
-
-
-
- Get Started
-
-
-
-
-
-`;
+exports[`Welcome Sidebar Modal snapshot test should close on button click 1`] = `""`;
+
+exports[`Welcome Sidebar Modal snapshot test should not reneder with local storage key 1`] = `""`;
diff --git a/src/Explorer/QueryCopilot/V2/Sidebar/QueryCopilotSidebar.test.tsx b/src/Explorer/QueryCopilot/V2/Sidebar/QueryCopilotSidebar.test.tsx
index f1635c144..9906ce836 100644
--- a/src/Explorer/QueryCopilot/V2/Sidebar/QueryCopilotSidebar.test.tsx
+++ b/src/Explorer/QueryCopilot/V2/Sidebar/QueryCopilotSidebar.test.tsx
@@ -1,10 +1,54 @@
+import { Stack } from "@fluentui/react";
+import { SampleBubble } from "Explorer/QueryCopilot/V2/Bubbles/Sample/SampleBubble";
import { shallow } from "enzyme";
+import { useQueryCopilot } from "hooks/useQueryCopilot";
+import { withHooks } from "jest-react-hooks-shallow";
import React from "react";
import { QueryCopilotSidebar } from "./QueryCopilotSidebar";
-describe("QueryCopilotSidebar snapshot test", () => {
- it("should render ", () => {
+describe("Query Copilot Sidebar snapshot test", () => {
+ const initialState = useQueryCopilot.getState();
+
+ beforeEach(() => {
+ useQueryCopilot.setState(initialState, true);
+ });
+
+ it("should render and set copilot used flag ", () => {
+ withHooks(() => {
+ useQueryCopilot.getState().setShowCopilotSidebar(true);
+ const wrapper = shallow(