Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix dashboards-observability 2.3 tests #1726

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ describe('Testing traces table', () => {
it('Searches correctly', () => {
cy.get('input[type="search"]').focus().type(`${TRACE_ID}{enter}`);
cy.get('.euiButton__text').contains('Refresh').click();
cy.intercept('POST', '/_dashboards/api/observability/trace_analytics/query').as('queryResult');
cy.wait('@queryResult');
cy.contains(' (1)').should('exist');
cy.get('.euiTableCellContent')
.eq(11)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ describe('Creating visualizations', () => {
.type(PPL_VISUALIZATIONS_NAMES[0], {
delay: 50,
});
cy.intercept('POST', '/_dashboards/api/observability/event_analytics/saved_objects/vis').as('savedVisFetch');
cy.get('[data-test-subj="eventExplorer__querySaveConfirm"]')
.trigger('mouseover')
.click();
cy.wait('@savedVisFetch');
cy.wait(delay);
cy.get('.euiToastHeader__title').contains('successfully').should('exist');
});
Expand Down Expand Up @@ -133,10 +135,12 @@ describe('Testing panels table', () => {
.trigger('mouseover')
.click();
cy.wait(delay);
cy.intercept('POST', '/_dashboards/api/observability/operational_panels/panels/clone').as('clonePanel');
cy.get('.euiButton__text')
.contains('Duplicate')
.trigger('mouseover')
.click();
cy.wait('@clonePanel');
cy.wait(delay);

cy.get('.euiCheckbox__input[title="Select this row"]')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const delayTime = 1500;
export const TRACE_ID = '8832ed6abbb2a83516461960c89af49d';
export const SPAN_ID = 'a673bc074b438374';
export const SERVICE_NAME = 'frontend-client';
export const SERVICE_SPAN_ID = '7df5609a6d104736';
export const SERVICE_SPAN_ID = 'a43d5066600179db';

export const testIndexDataSet = [
{
Expand Down
Loading