Skip to content

Commit

Permalink
feat: add regenerate cases (opensearch-project#1027) (opensearch-proj…
Browse files Browse the repository at this point in the history
…ect#1047)

* feat: add regenerate cases

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>

* feat: optimize cases

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>

---------

Signed-off-by: SuZhou-Joe <suzhou@amazon.com>
(cherry picked from commit ad6faec)

Co-authored-by: SuZhou-Joe <suzhou@amazon.com>
  • Loading branch information
opensearch-trigger-bot[bot] and SuZhou-Joe authored Feb 2, 2024
1 parent 831e5be commit 07e25c4
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,23 @@ if (Cypress.env('DASHBOARDS_ASSISTANT_ENABLED')) {

// should have a suggestion section
cy.get(`[aria-label="chat suggestions"]`).should('be.length', 1);

// Click regenerate button
cy.get(`button[title="regenerate message"]`).click();

// 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);

// 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.'
);

// should have a suggestion section
cy.get(`[aria-label="chat suggestions"]`).should('be.length', 1);
});
});
});
Expand Down

0 comments on commit 07e25c4

Please sign in to comment.