Skip to content

Commit

Permalink
wait for page to load before checking rows
Browse files Browse the repository at this point in the history
Signed-off-by: Ritvi Bhatt <[email protected]>
  • Loading branch information
Ritvi Bhatt committed Nov 8, 2024
1 parent c65d9e4 commit e6d4a94
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ describe('Testing traces Spans table verify table headers functionality', () =>
});

it('Render Spans table and change data table Density', () => {
cy.get('.euiLink.euiLink--primary').contains('authentication').should('exist');
cy.get('*[data-test-subj^="service-flyout-action-btntrace_service"]').eq(1).click();
cy.get('[data-test-subj="ActionContextMenu"]').click();
cy.get('[data-test-subj="viewServiceButton"]').click();
Expand Down Expand Up @@ -284,7 +285,7 @@ describe('Testing traces Spans table and verify columns functionality', () => {
cy.get('.euiBadge__content .euiBadge__text').contains('spanId: 277a5934acf55dcf').should('exist');
count_table_row(1);
cy.get('[aria-label="remove current filter"]').click();
cy.get('[aria-label="remove current filter"]').should('not.exist');
cy.get('.panel-title-count').contains('8').should('exist');
count_table_row(8);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ describe('Testing traces table', () => {
win.sessionStorage.clear();
},
});
cy.get("[data-test-subj='indexPattern-switch-link']").click();
cy.get("[data-test-subj='data_prepper-mode']").click();
setTimeFilter();
});

Expand Down Expand Up @@ -66,6 +68,8 @@ describe('Testing trace view', () => {
win.sessionStorage.clear();
},
});
cy.get("[data-test-subj='indexPattern-switch-link']").click();
cy.get("[data-test-subj='data_prepper-mode']").click();
setTimeFilter();
cy.get('input[type="search"]').focus().type(`${TRACE_ID}`);
cy.get('[data-test-subj="superDatePickerApplyTimeButton"]').click();
Expand All @@ -86,7 +90,6 @@ describe('Testing trace view', () => {

it('Has working breadcrumbs', () => {
cy.get('.euiBreadcrumb').contains(TRACE_ID).click();
// cy.get('h1.overview-content').contains(TRACE_ID).should('exist');
cy.get('.euiBreadcrumb').contains('Traces').click();
cy.get('.euiBreadcrumb').contains('Trace analytics').click();
cy.get('.euiBreadcrumb').contains('Observability').click();
Expand Down Expand Up @@ -118,11 +121,12 @@ describe('Testing traces table', () => {
win.sessionStorage.clear();
},
});
cy.get("[data-test-subj='indexPattern-switch-link']").click();
cy.get("[data-test-subj='data_prepper-mode']").click();
setTimeFilter();
});

it('Renders the traces table and verify Table Column, Pagination and Rows Data ', () => {
cy.contains(' (108)').should('exist');
cy.get('.euiTableCellContent__text').contains('Trace ID').should('exist');
cy.get('.euiTableCellContent__text').contains('Trace group').should('exist');
cy.get('.euiTableCellContent__text').contains('Duration (ms)').should('exist');
Expand Down

0 comments on commit e6d4a94

Please sign in to comment.