Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add regenerate cases #1027

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,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
Loading