Skip to content

Commit

Permalink
run only history list toogle for test
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 b1a5605 commit fb7f775
Showing 1 changed file with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,19 @@ if (Cypress.env('DASHBOARDS_ASSISTANT_ENABLED')) {
}
});

beforeEach(() => {
// Open Chat assistant flyout
cy.get('img[aria-label="toggle chat flyout icon"]').click();
});
// beforeEach(() => {
// // Open Chat assistant flyout
// cy.get('img[aria-label="toggle chat flyout icon"]').click();
// });

afterEach(() => {
// Close Chat assistant flyout
cy.get('img[aria-label="toggle chat flyout icon"]').click();
});
// afterEach(() => {
// // Close Chat assistant flyout
// cy.get('img[aria-label="toggle chat flyout icon"]').click();
// });

describe('panel operations', () => {
it('should toggle history list', () => {
it.only('should toggle history list', () => {
cy.get('img[aria-label="toggle chat flyout icon"]').click();
cy.get('.llm-chat-flyout button[aria-label="history"]').click();
cy.get('.llm-chat-flyout-body')
.contains('Conversations')
Expand All @@ -69,6 +70,7 @@ 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();
});

it('should back to chat panel', () => {
Expand Down Expand Up @@ -98,7 +100,7 @@ if (Cypress.env('DASHBOARDS_ASSISTANT_ENABLED')) {
cy.get('.llm-chat-flyout button[aria-label="history"]').click();
});
});
describe('history item operations', () => {
describe.skip('history item operations', () => {
const conversations = [];

before(() => {
Expand Down

0 comments on commit fb7f775

Please sign in to comment.