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 <[email protected]>
  • Loading branch information
saimedhi committed Oct 17, 2024
1 parent 95c2221 commit e20c133
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ 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.wait(5000);
cy.url().should('include', 'getLastPathSegment(FF_URL.WORKFLOWS_LIST)');
cy.get('.euiFieldSearch').focus();
cy.get('.euiFieldSearch').type('semantic_search_1{enter}');
cy.contains('semantic_search_1');
Expand All @@ -76,7 +76,7 @@ describe('Creating Workflows Using Various Methods', () => {
});

it('create workflow using Semantic Search template', () => {
cy.contains('h2', 'Semantic Search', { timeout: FF_TIMEOUT })
cy.contains('h3', 'Semantic Search', { timeout: FF_TIMEOUT })
.should('be.visible')
.parents('.euiCard')
.within(() => {
Expand Down Expand Up @@ -116,7 +116,7 @@ describe('Creating Workflows Using Various Methods', () => {
.click();
});
// Checking Run ingestion response
cy.sa_getElementByText('button.euiTab', 'Run ingestion')
cy.sa_getElementByText('button.euiTab', 'Ingest response')
.should('be.visible')
.click();
cy.fixture(FF_FIXTURE_BASE_PATH + 'semantic_search/ingest_response').then(
Expand Down Expand Up @@ -165,7 +165,7 @@ describe('Creating Workflows Using Various Methods', () => {
cy.getElementByDataTestId('runQueryButton').should('be.visible').click();
});
// Checking Run query response
cy.sa_getElementByText('button.euiTab', 'Run query')
cy.sa_getElementByText('button.euiTab', 'Search response')
.should('be.visible')
.click();

Expand All @@ -185,7 +185,7 @@ describe('Creating Workflows Using Various Methods', () => {
});

it('create workflow using Sentiment Analysis template', () => {
cy.contains('h2', 'Sentiment Analysis', { timeout: FF_TIMEOUT })
cy.contains('h3', 'Sentiment Analysis', { timeout: FF_TIMEOUT })
.should('be.visible')
.parents('.euiCard')
.within(() => {
Expand All @@ -198,7 +198,7 @@ describe('Creating Workflows Using Various Methods', () => {
});

it('create workflow using Hybrid Search template', () => {
cy.contains('h2', 'Hybrid Search', { timeout: FF_TIMEOUT })
cy.contains('h3', 'Hybrid Search', { timeout: FF_TIMEOUT })
.should('be.visible')
.parents('.euiCard')
.within(() => {
Expand All @@ -211,7 +211,7 @@ describe('Creating Workflows Using Various Methods', () => {
});

it('create workflow using Multimodal Search template', () => {
cy.contains('h2', 'Multimodal Search', { timeout: FF_TIMEOUT })
cy.contains('h3', 'Multimodal Search', { timeout: FF_TIMEOUT })
.should('be.visible')
.parents('.euiCard')
.within(() => {
Expand All @@ -224,7 +224,7 @@ describe('Creating Workflows Using Various Methods', () => {
});

it('create workflow using Retrieval-Augmented Generation (RAG) template', () => {
cy.contains('h2', 'Retrieval-Augmented Generation (RAG)', {
cy.contains('h3', 'Retrieval-Augmented Generation (RAG)', {
timeout: FF_TIMEOUT,
})
.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 = 20000;
export const FF_TIMEOUT = 60000;

0 comments on commit e20c133

Please sign in to comment.