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