Skip to content

Commit 1d54d0a

Browse files
OrKoNDevtools-frontend LUCI CQ
authored andcommitted
Remove flaky test
There is little value in checking performance difference on the DevTools level. Fixed: 349787448 Change-Id: I065e908714f727aafa56a3ee4f5aed56d43bd04c Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6616820 Commit-Queue: Alex Rudenko <[email protected]> Reviewed-by: Simon Zünd <[email protected]> Commit-Queue: Simon Zünd <[email protected]> Auto-Submit: Alex Rudenko <[email protected]>
1 parent 98c325a commit 1d54d0a

File tree

2 files changed

+1
-50
lines changed

2 files changed

+1
-50
lines changed

test/e2e/helpers/performance-helpers.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
click,
1212
waitFor,
1313
waitForAria,
14-
waitForElementWithTextContent,
1514
waitForFunction,
1615
waitForMany,
1716
} from '../../shared/helper.js';
@@ -357,28 +356,6 @@ export async function enableCSSSelectorStats(devToolsPage: DevToolsPage = getBro
357356
devToolsPage);
358357
}
359358

360-
export async function disableCSSSelectorStats() {
361-
const timelineSettingsPane = await waitFor(TIMELINE_SETTINGS_PANE);
362-
if (await timelineSettingsPane.isHidden()) {
363-
await openCaptureSettings(TIMELINE_SETTINGS_PANE);
364-
}
365-
366-
// Wait for the checkbox to load
367-
const toggle =
368-
await waitForElementWithTextContent(CSS_SELECTOR_STATS_TITLE) as puppeteer.ElementHandle<HTMLInputElement>;
369-
await waitForFunction(() => toggle.evaluate((e: HTMLInputElement) => {
370-
if (e.disabled) {
371-
return false;
372-
}
373-
if (e.checked) {
374-
e.click();
375-
}
376-
return true;
377-
}));
378-
await expectVeEvents(
379-
[veChange('Panel: timeline > Pane: timeline-settings-pane > Toggle: timeline-capture-selector-stats')]);
380-
}
381-
382359
export function veImpressionForPerformancePanel() {
383360
return veImpression('Panel', 'timeline', [
384361
veImpression(

test/e2e/performance/selector-stats-tracing_test.ts

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,17 @@
55
import {assert} from 'chai';
66

77
import {getBrowserAndPages, step} from '../../shared/helper.js';
8-
import {reloadDevTools} from '../helpers/cross-tool-helper.js';
98
import {getDataGridRows} from '../helpers/datagrid-helpers.js';
109
import {
11-
disableCSSSelectorStats,
1210
enableCSSSelectorStats,
13-
getRenderingTimeFromSummary,
1411
navigateToPerformanceTab,
1512
navigateToSelectorStatsTab,
16-
reloadAndRecord,
1713
selectRecalculateStylesEvent,
1814
startRecording,
1915
stopRecording,
2016
} from '../helpers/performance-helpers.js';
2117

22-
// Flaky
23-
describe.skip('[crbug.com/414579835] The Performance panel', function() {
18+
describe('The Performance panel', function() {
2419
// These tests move between panels, which takes time.
2520
if (this.timeout() !== 0) {
2621
this.timeout(30000);
@@ -53,25 +48,4 @@ describe.skip('[crbug.com/414579835] The Performance panel', function() {
5348
assert.isAtLeast(rows.length, 1, 'Selector stats table should contain at least one row');
5449
});
5550
});
56-
57-
// Flaking on multiple bots on CQ.
58-
it.skip('[crbug.com/349787448] CSS selector stats performance test', async () => {
59-
// set a tentative threshold of 50%
60-
const timeDiffPercentageMax = 0.5;
61-
62-
await navigateToPerformanceTab('selectorStats/page-with-style-perf-test');
63-
await disableCSSSelectorStats();
64-
await reloadAndRecord();
65-
const [recordingTimeWithSelectorStatsDisabled, chartName] = await getRenderingTimeFromSummary();
66-
assert.strictEqual(chartName, 'Rendering');
67-
68-
await reloadDevTools({selectedPanel: {name: 'timeline'}});
69-
await enableCSSSelectorStats();
70-
await reloadAndRecord();
71-
const [recordingTimeWithSelectorStatsEnabled] = await getRenderingTimeFromSummary();
72-
73-
const timeDiffPercentage = (recordingTimeWithSelectorStatsEnabled - recordingTimeWithSelectorStatsDisabled) /
74-
recordingTimeWithSelectorStatsDisabled;
75-
assert.isAtMost(timeDiffPercentage, timeDiffPercentageMax);
76-
});
7751
});

0 commit comments

Comments
 (0)