diff --git a/test/e2e/helpers/lighthouse-helpers.ts b/test/e2e/helpers/lighthouse-helpers.ts index 80a5e0bc77d..9df182e5ba3 100644 --- a/test/e2e/helpers/lighthouse-helpers.ts +++ b/test/e2e/helpers/lighthouse-helpers.ts @@ -27,8 +27,16 @@ export async function navigateToLighthouseTab(path?: string): Promise .lighthouse'); + // TODO(b/388183157): Investigate why a single click doesn't open the tab properly sometimes + const interval = setInterval(() => { + void lighthouseTabButton.click(); + }, 500); + + try { + await waitFor('.view-container > .lighthouse'); + } finally { + clearInterval(interval); + } const {target, frontend} = getBrowserAndPages(); if (path) { diff --git a/test/e2e/lighthouse/navigation_test.ts b/test/e2e/lighthouse/navigation_test.ts index 1cd1c7fdb6f..c0fc91b6c4b 100644 --- a/test/e2e/lighthouse/navigation_test.ts +++ b/test/e2e/lighthouse/navigation_test.ts @@ -66,8 +66,8 @@ describe('Navigation', function() { console.error(consoleLog.join('\n')); } }); - // Flaky - it.skip('[crbug.com/388183157] successfully returns a Lighthouse report', async () => { + + it('successfully returns a Lighthouse report', async () => { await navigateToLighthouseTab('lighthouse/hello.html'); await registerServiceWorker();