Skip to content

Commit

Permalink
update snapshots
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 b88e4d3 commit c65d9e4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ describe('Testing service view', () => {
});

it('Renders spans data grid, flyout, filters', () => {
// cy.get("[data-test-subj='spanId-link']").contains(SERVICE_SPAN_ID).trigger('mouseover', { force: true });
cy.get("[data-test-subj='spanId-link']").contains("e275ac9d21929e9b").trigger('mouseover', { force: true });
cy.get("[data-test-subj='spanId-link']").contains(SERVICE_SPAN_ID).trigger('mouseover', { force: true });

Check warning on line 128 in .cypress/integration/trace_analytics_test/trace_analytics_services.spec.js

View workflow job for this annotation

GitHub Actions / Lint

Do not use force on click and type calls
cy.get('button[data-datagrid-interactable="true"]').eq(0).click({ force: true });

Check warning on line 129 in .cypress/integration/trace_analytics_test/trace_analytics_services.spec.js

View workflow job for this annotation

GitHub Actions / Lint

Do not use force on click and type calls
cy.contains('Span detail').should('exist');
cy.contains('Span attributes').should('exist');
Expand Down Expand Up @@ -223,7 +222,6 @@ 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').click();
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 @@ -269,7 +267,6 @@ describe('Testing traces Spans table and verify columns functionality', () => {
});

it('Renders the spans table and click on first span to verify details', () => {
// cy.get('.euiLink.euiLink--primary').contains('authentication').should('exist').click();
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();
Expand All @@ -287,6 +284,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');
count_table_row(8);
});

Expand Down
2 changes: 1 addition & 1 deletion .cypress/utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const DATASOURCES_PATH = {
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 = 'e275ac9d21929e9b';
export const AUTH_SERVICE_SPAN_ID = '277a5934acf55dcf';

export const testDataSet = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ exports[`Filter popover component renders filter popover 1`] = `
<EuiCompressedComboBox
async={false}
compressed={true}
data-test-subj="field-selector-filter-panel"
fullWidth={false}
id="random_html_id"
isClearable={false}
Expand Down Expand Up @@ -129,6 +130,7 @@ exports[`Filter popover component renders filter popover 1`] = `
aria-expanded={false}
aria-haspopup="listbox"
className="euiComboBox euiComboBox--compressed"
data-test-subj="field-selector-filter-panel"
onKeyDown={[Function]}
role="combobox"
>
Expand Down Expand Up @@ -371,6 +373,7 @@ exports[`Filter popover component renders filter popover 1`] = `
<EuiCompressedComboBox
async={false}
compressed={true}
data-test-subj="operator-selector-filter-panel"
fullWidth={false}
id="random_html_id"
isClearable={false}
Expand All @@ -392,6 +395,7 @@ exports[`Filter popover component renders filter popover 1`] = `
aria-expanded={false}
aria-haspopup="listbox"
className="euiComboBox euiComboBox--compressed euiComboBox-isDisabled"
data-test-subj="operator-selector-filter-panel"
onKeyDown={[Function]}
role="combobox"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,42 +109,34 @@ export const getOperatorOptions = (field: string) => {
long: [
{
label: 'is between',
'data-test-subj': 'is-between-operator',
},
{
label: 'is not between',
'data-test-subj': 'is-not-between-operator',
},
],
date_nanos: [
{
label: 'is between',
'data-test-subj': 'is-between-operator',
},
{
label: 'is not between',
'data-test-subj': 'is-not-between-operator',
},
],
keyword: [],
default_first: [
{
label: 'is',
'data-test-subj': 'is-operator',
},
{
label: 'is not',
'data-test-subj': 'is-not-operator',
},
],
default_last: [
{
label: 'exists',
'data-test-subj': 'exists-operator',
},
{
label: 'does not exist',
'data-test-subj': 'does-not-exist-operator',
},
],
};
Expand Down

0 comments on commit c65d9e4

Please sign in to comment.