test: fix console-api tests when tracing was enabled (#10782)
test: fix console-api tests when tracing was enabled (#10782)


microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright,microsoft/playwright