diff --git a/x-pack/plugins/observability_solution/profiling/e2e/cypress/e2e/profiling_views/differential_functions.cy.ts b/x-pack/plugins/observability_solution/profiling/e2e/cypress/e2e/profiling_views/differential_functions.cy.ts index 187a9a09d49c7..52b539286471b 100644 --- a/x-pack/plugins/observability_solution/profiling/e2e/cypress/e2e/profiling_views/differential_functions.cy.ts +++ b/x-pack/plugins/observability_solution/profiling/e2e/cypress/e2e/profiling_views/differential_functions.cy.ts @@ -31,9 +31,9 @@ describe('Differential Functions page', () => { cy.wait('@getTopNFunctions'); [ { id: 'overallPerformance', value: '0%' }, - { id: 'annualizedCo2', value: '74.49 lbs / 33.79 kg' }, - { id: 'annualizedCost', value: '$318.32' }, - { id: 'totalNumberOfSamples', value: '513' }, + { id: 'annualizedCo2', value: '79.81 lbs / 36.2 kg' }, + { id: 'annualizedCost', value: '$341.05' }, + { id: 'totalNumberOfSamples', value: '17,186' }, ].forEach((item) => { cy.get(`[data-test-subj="${item.id}_value"]`).contains(item.value); cy.get(`[data-test-subj="${item.id}_comparison_value"]`).should('not.exist'); @@ -50,9 +50,9 @@ describe('Differential Functions page', () => { cy.wait('@getTopNFunctions'); [ { id: 'overallPerformance', value: '0%' }, - { id: 'annualizedCo2', value: '0 lbs / 0 kg', comparisonValue: '74.49 lbs / 33.79 kg' }, - { id: 'annualizedCost', value: '$0', comparisonValue: '$318.32' }, - { id: 'totalNumberOfSamples', value: '0', comparisonValue: '15,390' }, + { id: 'annualizedCo2', value: '0 lbs / 0 kg', comparisonValue: '79.81 lbs / 36.2 kg' }, + { id: 'annualizedCost', value: '$0', comparisonValue: '$341.05' }, + { id: 'totalNumberOfSamples', value: '0', comparisonValue: '515,580' }, ].forEach((item) => { cy.get(`[data-test-subj="${item.id}_value"]`).contains(item.value); if (item.comparisonValue) { @@ -73,23 +73,23 @@ describe('Differential Functions page', () => { cy.wait('@getTopNFunctions'); cy.wait('@getTopNFunctions'); [ - { id: 'overallPerformance', value: '65.89%', icon: 'sortUp_success' }, + { id: 'overallPerformance', value: '78.01%', icon: 'sortUp_success' }, { id: 'annualizedCo2', - value: '74.49 lbs / 33.79 kg', - comparisonValue: '25.41 lbs / 11.53 kg (65.89%)', + value: '9.81 lbs / 36.2 kg', + comparisonValue: '28.23 lbs / 12.81 kg (64.62%)', icon: 'comparison_sortUp_success', }, { id: 'annualizedCost', - value: '$318.32', - comparisonValue: '$108.59 (65.89%)', + value: '$341.05', + comparisonValue: '$120.65 (64.62%)', icon: 'comparison_sortUp_success', }, { id: 'totalNumberOfSamples', - value: '513', - comparisonValue: '175 (65.89%)', + value: '17,186', + comparisonValue: '3,780 (78.01%)', icon: 'comparison_sortUp_success', }, ].forEach((item) => { @@ -113,23 +113,23 @@ describe('Differential Functions page', () => { cy.wait('@getTopNFunctions'); cy.wait('@getTopNFunctions'); [ - { id: 'overallPerformance', value: '193.14%', icon: 'sortDown_danger' }, + { id: 'overallPerformance', value: '354.66%', icon: 'sortDown_danger' }, { id: 'annualizedCo2', - value: '25.41 lbs / 11.53 kg', - comparisonValue: '74.49 lbs / 33.79 kg (193.14%)', + value: '28.23 lbs / 12.81 kg', + comparisonValue: '79.81 lbs / 36.2 kg (182.67%)', icon: 'comparison_sortDown_danger', }, { id: 'annualizedCost', - value: '$108.59', - comparisonValue: '$318.32 (193.14%)', + value: '$120.65', + comparisonValue: '$341.05 (182.67%)', icon: 'comparison_sortDown_danger', }, { id: 'totalNumberOfSamples', - value: '175', - comparisonValue: '513 (193.14%)', + value: '3,780', + comparisonValue: '17,186 (354.66%)', icon: 'comparison_sortDown_danger', }, ].forEach((item) => { diff --git a/x-pack/plugins/observability_solution/profiling/e2e/cypress/e2e/profiling_views/functions.cy.ts b/x-pack/plugins/observability_solution/profiling/e2e/cypress/e2e/profiling_views/functions.cy.ts index 6daa414df36e7..bd2822d300240 100644 --- a/x-pack/plugins/observability_solution/profiling/e2e/cypress/e2e/profiling_views/functions.cy.ts +++ b/x-pack/plugins/observability_solution/profiling/e2e/cypress/e2e/profiling_views/functions.cy.ts @@ -36,10 +36,10 @@ describe('Functions page', () => { const firstRowSelector = '[data-grid-row-index="0"] [data-test-subj="dataGridRowCell"]'; cy.get(firstRowSelector).eq(1).contains('1'); cy.get(firstRowSelector).eq(2).contains('vmlinux'); - cy.get(firstRowSelector).eq(3).contains('5.46%'); - cy.get(firstRowSelector).eq(4).contains('5.46%'); - cy.get(firstRowSelector).eq(5).contains('4.07 lbs / 1.84 kg'); - cy.get(firstRowSelector).eq(6).contains('$17.37'); + cy.get(firstRowSelector).eq(3).contains('0.16%'); + cy.get(firstRowSelector).eq(4).contains('0.16%'); + cy.get(firstRowSelector).eq(5).contains('4.41 lbs / 2 kg'); + cy.get(firstRowSelector).eq(6).contains('$18.61'); cy.get(firstRowSelector).eq(7).contains('28'); }); @@ -56,8 +56,8 @@ describe('Functions page', () => { { parentKey: 'informationRows', key: 'executable', value: 'vmlinux' }, { parentKey: 'informationRows', key: 'function', value: 'N/A' }, { parentKey: 'informationRows', key: 'sourceFile', value: 'N/A' }, - { parentKey: 'impactEstimates', key: 'totalCPU', value: '5.46%' }, - { parentKey: 'impactEstimates', key: 'selfCPU', value: '5.46%' }, + { parentKey: 'impactEstimates', key: 'totalCPU', value: '0.16%' }, + { parentKey: 'impactEstimates', key: 'selfCPU', value: '0.16%' }, { parentKey: 'impactEstimates', key: 'samples', value: '28' }, { parentKey: 'impactEstimates', key: 'selfSamples', value: '28' }, { parentKey: 'impactEstimates', key: 'coreSeconds', value: '1.4 seconds' }, @@ -66,16 +66,16 @@ describe('Functions page', () => { { parentKey: 'impactEstimates', key: 'annualizedSelfCoreSeconds', value: '17.03 days' }, { parentKey: 'impactEstimates', key: 'co2Emission', value: '~0.00 lbs / ~0.00 kg' }, { parentKey: 'impactEstimates', key: 'selfCo2Emission', value: '~0.00 lbs / ~0.00 kg' }, - { parentKey: 'impactEstimates', key: 'annualizedCo2Emission', value: '4.07 lbs / 1.84 kg' }, + { parentKey: 'impactEstimates', key: 'annualizedCo2Emission', value: '4.41 lbs / 2 kg' }, { parentKey: 'impactEstimates', key: 'annualizedSelfCo2Emission', - value: '4.07 lbs / 1.84 kg', + value: '4.41 lbs / 2 kg', }, { parentKey: 'impactEstimates', key: 'dollarCost', value: '$~0.00' }, { parentKey: 'impactEstimates', key: 'selfDollarCost', value: '$~0.00' }, - { parentKey: 'impactEstimates', key: 'annualizedDollarCost', value: '$17.37' }, - { parentKey: 'impactEstimates', key: 'annualizedSelfDollarCost', value: '$17.37' }, + { parentKey: 'impactEstimates', key: 'annualizedDollarCost', value: '$18.61' }, + { parentKey: 'impactEstimates', key: 'annualizedSelfDollarCost', value: '$18.61' }, ].forEach(({ parentKey, key, value }) => { cy.get(`[data-test-subj="${parentKey}_${key}"]`).contains(value); }); @@ -118,32 +118,32 @@ describe('Functions page', () => { columnIndex: 3, highRank: 1, lowRank: 389, - highValue: '5.46%', + highValue: '0.16%', lowValue: '0.00%', }, { columnKey: 'totalCPU', columnIndex: 4, - highRank: 3623, + highRank: 693, lowRank: 44, - highValue: '60.43%', - lowValue: '0.19%', + highValue: '1.80%', + lowValue: '0.01%', }, { columnKey: 'annualizedCo2', columnIndex: 5, - highRank: 1, + highRank: 693, lowRank: 44, - highValue: '45.01 lbs / 20.42 kg', - lowValue: '0.15 lbs / 0.07 kg', + highValue: '48.28 lbs / 21.9 kg', + lowValue: '0 lbs / 0 kg', }, { columnKey: 'annualizedDollarCost', columnIndex: 6, - highRank: 1, + highRank: 693, lowRank: 44, - highValue: '$192.36', - lowValue: '$0.62', + highValue: '$206.09', + lowValue: '$0.66', }, ].forEach(({ columnKey, columnIndex, highRank, highValue, lowRank, lowValue }) => { cy.get(`[data-test-subj="dataGridHeaderCell-${columnKey}"]`).click(); @@ -170,7 +170,7 @@ describe('Functions page', () => { cy.get('[data-test-subj="dataGridHeaderCell-frame"]').click(); cy.contains('Sort A-Z').click(); - cy.get(firstRowSelector).eq(1).contains('371'); + cy.get(firstRowSelector).eq(1).contains('88'); cy.get(firstRowSelector).eq(2).contains('/'); }); @@ -189,7 +189,7 @@ describe('Functions page', () => { const firstRowSelector = '[data-grid-row-index="0"] [data-test-subj="dataGridRowCell"]'; cy.get(firstRowSelector).eq(1).contains('1'); cy.get(firstRowSelector).eq(2).contains('vmlinux'); - cy.get(firstRowSelector).eq(5).contains('4.07 lbs / 1.84 kg'); + cy.get(firstRowSelector).eq(5).contains('4.41 lbs / 2 kg'); cy.contains('Settings').click(); cy.contains('Advanced Settings'); cy.get(`[data-test-subj="management-settings-editField-${profilingCo2PerKWH}"]`) @@ -208,7 +208,7 @@ describe('Functions page', () => { }); cy.go('back'); cy.wait('@getTopNFunctions'); - cy.get(firstRowSelector).eq(5).contains('1.87k lbs / 847.83 kg'); + cy.get(firstRowSelector).eq(5).contains('2k lbs / 908.4 kg'); const firstRowSelectorActionButton = '[data-grid-row-index="0"] [data-test-subj="dataGridRowCell"] .euiButtonIcon'; cy.get(firstRowSelectorActionButton).click(); @@ -218,12 +218,12 @@ describe('Functions page', () => { { parentKey: 'impactEstimates', key: 'annualizedCo2Emission', - value: '1.87k lbs / 847.83 kg', + value: '2k lbs / 908.4 kg', }, { parentKey: 'impactEstimates', key: 'annualizedSelfCo2Emission', - value: '1.87k lbs / 847.83 kg', + value: '2k lbs / 908.4 kg', }, ].forEach(({ parentKey, key, value }) => { cy.get(`[data-test-subj="${parentKey}_${key}"]`).contains(value);