From 19e1c930ad7faacbd15c3aa050ac00f560ad05ed Mon Sep 17 00:00:00 2001 From: DilanRamirez Date: Wed, 13 Oct 2021 13:13:07 -0600 Subject: [PATCH] hsitory chat height fixed --- client/src/components/chat/chat.tsx | 8 ++--- client/src/styles/history-chat-responsive.css | 31 +++++++++++++++++++ cypress/cypress/integration/history.spec.ts | 1 + 3 files changed, 36 insertions(+), 4 deletions(-) diff --git a/client/src/components/chat/chat.tsx b/client/src/components/chat/chat.tsx index 4392c721..994519c5 100644 --- a/client/src/components/chat/chat.tsx +++ b/client/src/components/chat/chat.tsx @@ -65,12 +65,12 @@ const useStyles = makeStyles((theme) => ({ const MENTOR_COLORS = ["#eaeaea", "#d4e8d9", "#ffebcf", "#f5cccd"]; export function Chat(args: { - height: number; + height?: number; windowHeight?: number; width?: string; bubbleColor?: string; }): JSX.Element { - const { height, windowHeight, width, bubbleColor } = args; + const { width, bubbleColor } = args; const styles = useStyles(); const { mentorType, @@ -162,10 +162,10 @@ export function Chat(args: { > { it("displays questions that have been asked via input", () => { visitAsGuestWithDefaultSetup(cy, "/"); + cy.get("[data-cy=header]").should("have.attr", "data-mentor", "clint"); cy.get("[data-cy=history-tab]").trigger("mouseover").click(); cy.get("[data-cy=input-field]").type("Hello");