Skip to content

Commit

Permalink
Added Flow Framework Dashboards integ tests fix flakiness
Browse files Browse the repository at this point in the history
Signed-off-by: saimedhi <[email protected]>
  • Loading branch information
saimedhi committed Oct 18, 2024
1 parent 45349fd commit eab102d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('Creating Workflows Using Various Methods', () => {
});

it('create workflow using import', () => {
cy.getElementByDataTestId('importWorkflowButton')
cy.getElementByDataTestId('importWorkflowButton', { timeout: FF_TIMEOUT })
.should('be.visible')
.click();
cy.contains('Import a workflow (JSON/YAML)').should('be.visible');
Expand All @@ -49,9 +49,11 @@ describe('Creating Workflows Using Various Methods', () => {
'semantic_search/import_workflow.json';
cy.get('input[type=file]').selectFile(filePath);
cy.getElementByDataTestId('importJSONButton').should('be.visible').click();
cy.contains('Manage workflows').should('be.visible');
cy.get('.euiFieldSearch').focus();
cy.get('.euiFieldSearch').type('semantic_search_1{enter}');
cy.get('.euiFieldSearch').should('be.visible').focus();
cy.wait(1000);
cy.get('.euiFieldSearch')
.should('be.visible')
.type('semantic_search_1{enter}');
cy.contains('semantic_search_1');
cy.get('.euiTableRow').should('have.length.greaterThan', 0);
cy.get('.euiTableRow').first().find('button.euiButtonIcon--danger').click();
Expand All @@ -60,6 +62,7 @@ describe('Creating Workflows Using Various Methods', () => {
.should('be.visible')
.click();
});

it('Workflow Creation with Improper Import File', () => {
cy.getElementByDataTestId('importWorkflowButton')
.should('be.visible')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ export const SEARCH_NODE_API_PATH =

export const FF_FIXTURE_BASE_PATH = 'plugins/dashboards-flow-framework/';

export const FF_TIMEOUT = 60000;
export const FF_TIMEOUT = 100000;

0 comments on commit eab102d

Please sign in to comment.