Skip to content

Commit

Permalink
fix cypress test
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <[email protected]>
  • Loading branch information
derek-ho committed Dec 7, 2022
1 parent ddfb8aa commit 3dc8296
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe('Adding sample data and visualization', () => {
.should('exist');
cy.wait(100);
cy.get('.euiButton__text').contains('Yes').trigger('mouseover').click();
cy.wait(100 * 5);
cy.wait(100);
cy.route2('POST', '/addSamplePanels').as('addSamples');
cy.wait('@addSamples').then(() => {
cy.get('.euiTableCellContent').contains(SAMPLE_PANEL).should('exist');
Expand All @@ -75,12 +75,7 @@ describe('Testing notebooks table', () => {
it('Displays error toast for invalid notebook name', () => {
cy.get('.euiButton__text').contains('Create notebook').click();
cy.wait(delay);
cy.get('.euiButton__text')
.contains(/^Create$/)
.click();
cy.wait(delay);

cy.get('.euiToastHeader__title').contains('Invalid notebook name').should('exist');
cy.get('[data-test-subj="createButton"]').should('be.disabled')
});

it('Creates a notebook and redirects to the notebook', () => {
Expand Down

0 comments on commit 3dc8296

Please sign in to comment.