Fix tests that check call tab contents
This commit is contained in:
parent
d022d7727e
commit
2b24d05abd
|
|
@ -241,6 +241,7 @@ test('should show params and return value', async ({ showTraceViewer }) => {
|
|||
await expect(traceViewer.callLines).toHaveText([
|
||||
/page.evaluate/,
|
||||
/wall time:[0-9/:,APM ]+/,
|
||||
/start:[\d\.]+m?s/,
|
||||
/duration:[\d]+ms/,
|
||||
/expression:"\({↵ a↵ }\) => {↵ console\.log\(\'Info\'\);↵ console\.warn\(\'Warning\'\);↵ console/,
|
||||
'isFunction:true',
|
||||
|
|
@ -252,6 +253,7 @@ test('should show params and return value', async ({ showTraceViewer }) => {
|
|||
await expect(traceViewer.callLines).toContainText([
|
||||
/expect.toHaveText/,
|
||||
/wall time:[0-9/:,APM ]+/,
|
||||
/start:[\d\.]+m?s/,
|
||||
/duration:[\d]+ms/,
|
||||
/locator:locator\('button'\)/,
|
||||
/expression:"to.have.text"/,
|
||||
|
|
@ -267,6 +269,7 @@ test('should show null as a param', async ({ showTraceViewer, browserName }) =>
|
|||
await expect(traceViewer.callLines).toHaveText([
|
||||
/page.evaluate/,
|
||||
/wall time:[0-9/:,APM ]+/,
|
||||
/start:[\d\.]+m?s/,
|
||||
/duration:[\d]+ms/,
|
||||
'expression:"() => 1 + 1"',
|
||||
'isFunction:true',
|
||||
|
|
|
|||
Loading…
Reference in a new issue