Skip to content

Commit

Permalink
Edited waiting times in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edro15 committed Feb 21, 2024
1 parent 33e878f commit 85451ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions test/cypress/e2e/graph_analysis.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ describe('Graph Analysis', {
);

// Buttons
cy.wait(5000).get('#cidds').should('exist').and('be.visible').and('not.be.disabled');
cy.wait(5000).get('#bitcoin').should('exist').and('be.visible').and('not.be.disabled');
cy.wait(5000).get('#internal').should('exist').and('be.visible').and('not.be.disabled');
cy.get('#cidds', { timeout: 10000 }).should('exist').and('be.visible').and('not.be.disabled');
cy.get('#bitcoin', { timeout: 10000 }).should('exist').and('be.visible').and('not.be.disabled');
cy.get('#internal', { timeout: 10000 }).should('exist').and('be.visible').and('not.be.disabled');

// Search bar
cy.wait(5000).get('#mysearchbar1').should('exist').and('be.visible');
Expand All @@ -31,7 +31,7 @@ describe('Graph Analysis', {
}
);

cy.wait(5000).get('#internal').click();
cy.get('#internal', { timeout: 10000 }).click();
// Table with search results shown
cy.get('.splunk-table').should('exist');
// Dropdown buttons to select fields shown
Expand Down
8 changes: 4 additions & 4 deletions test/cypress/e2e/graph_examples.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('Graph Examples', {
);

// Check there's no error
cy.wait(5000).get('.dashboard-header-title').should('have.text', 'Graph Analysis Example for Bitcoin Transactions');
cy.get('.dashboard-header-title', { timeout: 10000 }).should('have.text', 'Graph Analysis Example for Bitcoin Transactions');
cy.get('div.alert.alert-error').should('not.exist');
});
});
Expand All @@ -33,7 +33,7 @@ describe('Graph Examples', {
}
);

cy.wait(5000).get('.dashboard-header-title').should('have.text', 'Graph Analysis Example for Network Traffic');
cy.get('.dashboard-header-title', { timeout: 10000 }).should('have.text', 'Graph Analysis Example for Network Traffic');
cy.get('div.alert.alert-error').should('not.exist');
});
});
Expand All @@ -51,7 +51,7 @@ describe('Graph Examples', {
);

// Check there's no error
cy.wait(5000).get('.dashboard-header-title').should('have.text', 'Graph Analysis Example: Connected Components');
cy.get('.dashboard-header-title', { timeout: 10000 }).should('have.text', 'Graph Analysis Example: Connected Components');
cy.get('div.alert.alert-error').should('not.exist');
});
});
Expand All @@ -69,7 +69,7 @@ describe('Graph Examples', {
);

// Check there's no error
cy.wait(5000).get('.dashboard-header-title').should('have.text', 'Graph Analysis Example: Label Propagation');
cy.get('.dashboard-header-title', { timeout: 10000 }).should('have.text', 'Graph Analysis Example: Label Propagation');
cy.get('div.alert.alert-error').should('not.exist');
});
});
Expand Down

0 comments on commit 85451ef

Please sign in to comment.