Skip to content

Commit

Permalink
Added test cases for empty state of Notebooks table
Browse files Browse the repository at this point in the history
Signed-off-by: Pratibha Pandey <pratibha_pandey@persistent.com>
  • Loading branch information
pratibhapandey16 committed Jun 15, 2022
1 parent 6377bd8 commit 7754d66
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ describe('Testing notebooks table', () => {
cy.visit(`${Cypress.env('opensearchDashboards')}/app/observability-dashboards#/notebooks`);
});

it('Notebooks table empty state', () => {
cy.get('#notebookArea').contains('Notebooks (0)').should('exist');
cy.get('.euiTextAlign.euiTextAlign--center').contains('No notebooks');
cy.get('.euiButton__text').eq(2).contains('Create notebook');
cy.get('.euiButton__text').eq(3).contains('Add samples');
});

it('Displays error toast for invalid notebook name', () => {
cy.get('.euiButton__text').contains('Create notebook').click();
cy.wait(delay);
Expand Down

0 comments on commit 7754d66

Please sign in to comment.