Hi @lxy2222 ,
I looked into your codebase and figured out below
In globalSetup, you are doing browser.launch hence you wont be using service browser hence as per above error, you need to install browsers. installing browsers should unblock you.
since you only open single browser in global setup, its ok to use local browser.
However, you could migrate to new way of global setup which uses project dependencies and that will use service browser automatically.
Minor thing, I noticed in your global setup, you are only stopping tracing in exception case, you should stop it even in success case as well or put it inside finally.
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Expected behavior The browser can launch, and the test can work
Screenshots If applicable, add screenshots to help explain your problem. the pipeline link https://office.visualstudio.com/OC/_build/results?buildId=24007594&view=logs&j=275f1d19-1bd8-5591-b06b-07d489ea915a&t=5fd232ee-0bcd-5c4f-9e6b-7e96853085e6 Also, the config file is: https://office.visualstudio.com/OC/_git/Forms-Automation?path=/playwright.service.config.new.ts
Setup information (please complete the following information):
Additional context Add any other context about the problem here.
AB#1912711