mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test: fix test sanitization (#5515)
This was regressed in https://github.com/microsoft/playwright/pull/5502 Three pause tests are broken: https://devops.aslushnikov.com/flakiness2.html#timestamp=1613756319661
This commit is contained in:
parent
18ce95632f
commit
a9c91b0703
@ -234,7 +234,7 @@ describe('pause', (suite, { mode }) => {
|
|||||||
async function sanitizeLog(recorderPage: Page): Promise<string[]> {
|
async function sanitizeLog(recorderPage: Page): Promise<string[]> {
|
||||||
const results = [];
|
const results = [];
|
||||||
for (const entry of await recorderPage.$$('.call-log-call')) {
|
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(header);
|
||||||
results.push(...await entry.$$eval('.call-log-message', ee => ee.map(e => e.textContent)));
|
results.push(...await entry.$$eval('.call-log-message', ee => ee.map(e => e.textContent)));
|
||||||
const errorElement = await entry.$('.call-log-error');
|
const errorElement = await entry.$('.call-log-error');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user