Skip to content

Commit

Permalink
Adding Flow Framework Dashboards integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: saimedhi <saimedhi@amazon.com>
  • Loading branch information
saimedhi committed Oct 22, 2024
1 parent 749bc4b commit f19de7b
Showing 1 changed file with 16 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,8 @@ describe('Creating Workflows Using Various Methods', () => {
cy.visit(FF_URL.WORKFLOWS, { timeout: FF_TIMEOUT });
});

it('Workflow Creation with Improper Import File', () => {
cy.getElementByDataTestId('importWorkflowButton', { timeout: FF_TIMEOUT })
.should('be.visible')
.click();
cy.contains('Import a workflow (JSON/YAML)').should('be.visible');
const filePath =
'cypress/fixtures/' +
FF_FIXTURE_BASE_PATH +
'semantic_search/search_query.json';
cy.get('input[type=file]').selectFile(filePath);
cy.contains('The uploaded file is not a valid workflow').should(
'be.visible'
);
});

it('create workflow using import', () => {
cy.visit(FF_URL.WORKFLOWS, { timeout: FF_TIMEOUT });
cy.getElementByDataTestId('importWorkflowButton', { timeout: FF_TIMEOUT })
.should('be.visible')
.click();
Expand All @@ -76,6 +62,21 @@ describe('Creating Workflows Using Various Methods', () => {
.click();
});

it('Workflow Creation with Improper Import File', () => {
cy.getElementByDataTestId('importWorkflowButton', { timeout: FF_TIMEOUT })
.should('be.visible')
.click();
cy.contains('Import a workflow (JSON/YAML)').should('be.visible');
const filePath =
'cypress/fixtures/' +
FF_FIXTURE_BASE_PATH +
'semantic_search/search_query.json';
cy.get('input[type=file]').selectFile(filePath);
cy.contains('The uploaded file is not a valid workflow').should(
'be.visible'
);
});

it('create workflow using Semantic Search template', () => {
cy.getElementByDataTestId('createWorkflowButton', { timeout: FF_TIMEOUT })
.should('be.visible')
Expand Down

0 comments on commit f19de7b

Please sign in to comment.