Skip to content

Commit

Permalink
add guard for flyout open
Browse files Browse the repository at this point in the history
Signed-off-by: Lin Wang <[email protected]>
  • Loading branch information
wanglam committed Jan 26, 2024
1 parent fb7f775 commit 9bb8fe4
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ if (Cypress.env('DASHBOARDS_ASSISTANT_ENABLED')) {

describe('panel operations', () => {
it.only('should toggle history list', () => {
cy.get('img[aria-label="toggle chat flyout icon"]').click();
cy.get('img[aria-label="toggle chat flyout icon"]')
.should('be.visible')
.click();

cy.get('.llm-chat-flyout button[aria-label="history"]').click();
cy.get('.llm-chat-flyout-body')
.contains('Conversations')
Expand All @@ -70,7 +73,10 @@ if (Cypress.env('DASHBOARDS_ASSISTANT_ENABLED')) {
cy.get('.llm-chat-flyout-body')
.contains('Conversations')
.should('not.be.visible');
cy.get('img[aria-label="toggle chat flyout icon"]').click();

cy.get('img[aria-label="toggle chat flyout icon"]')
.should('be.visible')
.click();
});

it('should back to chat panel', () => {
Expand Down

0 comments on commit 9bb8fe4

Please sign in to comment.