Skip to content

Commit c7db943

Browse files
Adam RaineDevtools-frontend LUCI CQ
authored andcommitted
[RPP Observations] Fix flaky e2e test
Bug: None Change-Id: I5a92ee8f94cb6e1ed81a8bf0d39c157c073c1b16 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6300606 Commit-Queue: Adriana Ixba <[email protected]> Reviewed-by: Adriana Ixba <[email protected]> Auto-Submit: Adam Raine <[email protected]> Commit-Queue: Adam Raine <[email protected]>
1 parent 058fe61 commit c7db943

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test/e2e/performance/landing-page_test.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -449,12 +449,11 @@ describe('The Performance panel landing page', () => {
449449

450450
await tabExistsInDrawer('#tab-console-view');
451451
const messages = await getCurrentConsoleMessages();
452-
assert.deepEqual(messages, [
453-
'[DevTools] Long animation frames for 504ms pointer interaction',
454-
'Scripts:',
455-
'Array(3)',
456-
'Intersecting long animation frame events: [{…}]',
457-
]);
452+
assert.lengthOf(messages, 4);
453+
assert.match(messages[0], /^\[DevTools\] Long animation frames for \d+ms pointer interaction$/);
454+
assert.strictEqual(messages[1], 'Scripts:');
455+
assert.strictEqual(messages[2], 'Array(3)');
456+
assert.strictEqual(messages[3], 'Intersecting long animation frame events: [{…}]');
458457
} finally {
459458
await targetSession.detach();
460459
}

0 commit comments

Comments
 (0)