Skip to content

Commit

Permalink
feat: optimize cases
Browse files Browse the repository at this point in the history
Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
  • Loading branch information
SuZhou-Joe committed Feb 2, 2024
1 parent ee3742a commit 0331fc6
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,12 @@ if (Cypress.env('DASHBOARDS_ASSISTANT_ENABLED')) {
// Click regenerate button
cy.get(`button[title="regenerate message"]`).click();

// The previous message should be gone
// The previous message and the regenerate button should be gone
cy.get(`button[title="regenerate message"]`).should('be.length', 0);

// suggestions should be gone
cy.get(`[aria-label="chat suggestions"]`).should('be.length', 0);

// wait for 1 second
cy.wait(1000);

// The regenrate message should be there
cy.contains(
'The indices in your cluster are the names listed in the response obtained from using a tool to get information about the OpenSearch indices.'
Expand Down

0 comments on commit 0331fc6

Please sign in to comment.