Skip to content

Commit

Permalink
test: fix test sanitization (#5515)
Browse files Browse the repository at this point in the history
This was regressed in #5502

Three pause tests are broken: https://devops.aslushnikov.com/flakiness2.html#timestamp=1613756319661
  • Loading branch information
aslushnikov committed Feb 19, 2021
1 parent 18ce956 commit a9c91b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/pause.spec.ts
Expand Up @@ -234,7 +234,7 @@ describe('pause', (suite, { mode }) => {
async function sanitizeLog(recorderPage: Page): Promise<string[]> {
const results = [];
for (const entry of await recorderPage.$$('.call-log-call')) {
const header = await (await (await entry.$('.call-log-call-header')).textContent()).replace(/— \d+(ms|s)/, '- XXms');
const header = await (await (await entry.$('.call-log-call-header')).textContent()).replace(/— \d+(\.\d+)?(ms|s)/, '- XXms');
results.push(header);
results.push(...await entry.$$eval('.call-log-message', ee => ee.map(e => e.textContent)));
const errorElement = await entry.$('.call-log-error');
Expand Down

0 comments on commit a9c91b0

Please sign in to comment.