Skip to content

Commit

Permalink
fix AI assistant chat and e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
cstuncsik committed Nov 18, 2024
1 parent 68f5b57 commit a0544ae
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions cypress/e2e/45-ai-assistant.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,8 @@ describe('General help', () => {
}).as('chatRequest');

aiAssistant.getters.askAssistantFloatingButton().click();
wf.getters.zoomToFitButton().click();

aiAssistant.actions.sendMessage('What is wrong with this workflow?');
cy.wait('@chatRequest');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,8 @@ async function onCopyButtonClick(content: string, e: MouseEvent) {
.container {
height: 100%;
position: relative;
display: grid;
grid-template-rows: auto 1fr auto;
}
p {
Expand Down Expand Up @@ -373,10 +375,6 @@ p {
background-color: var(--color-background-light);
border: var(--border-base);
border-top: 0;
height: 100%;
overflow-x: hidden;
overflow-y: auto;
padding-bottom: 250px; // make scrollable at the end
position: relative;
pre,
Expand All @@ -390,7 +388,13 @@ p {
}
.messages {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
padding: var(--spacing-xs);
overflow-y: auto;
& + & {
padding-top: 0;
Expand Down Expand Up @@ -533,13 +537,12 @@ code[class^='language-'] {
}
.inputWrapper {
position: absolute;
display: flex;
bottom: 0;
background-color: var(--color-foreground-xlight);
border: var(--border-base);
width: 100%;
padding-top: 1px;
overflow: hidden;
textarea {
border: none;
Expand Down

0 comments on commit a0544ae

Please sign in to comment.