Skip to content

Commit b8a54b4

Browse files
Lightning00BladeDevtools-frontend LUCI CQ
authored andcommitted
Fix flaky test
Don't use Puppeteer click directly Bug: none Change-Id: I9210cc1cbb6e8f44a17d0a3d58e2c94f23c48535 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6263849 Commit-Queue: Nikolay Vitkov <[email protected]> Auto-Submit: Nikolay Vitkov <[email protected]> Commit-Queue: Alina Varkki <[email protected]> Reviewed-by: Alina Varkki <[email protected]>
1 parent 0e666d9 commit b8a54b4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/e2e/performance/landing-page_test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import type * as puppeteer from 'puppeteer-core';
77

88
import {
99
$$,
10+
click,
1011
getBrowserAndPages,
1112
getResourcesPath,
1213
goTo,
@@ -442,11 +443,9 @@ describe('The Performance panel landing page', () => {
442443
await frontend.bringToFront();
443444

444445
const interaction = await waitFor(INTERACTION_SELECTOR);
445-
const interactionSummary = await interaction.$('summary');
446-
await interactionSummary!.click();
446+
await click('summary', {root: interaction});
447447

448-
const logToConsole = await interaction.$('.log-extra-details-button');
449-
await logToConsole!.click();
448+
await click('.log-extra-details-button', {root: interaction});
450449

451450
await tabExistsInDrawer('#tab-console-view');
452451
const messages = await getCurrentConsoleMessages();

0 commit comments

Comments
 (0)