microsoft / playwright-testing-service

MIT License
83 stars 13 forks source link

[BUG]:Failed to launch browser playwright service without installing chromium locally #68

Closed lxy2222 closed 10 months ago

lxy2222 commented 11 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Setup pipeline running playwright on ADO
  2. Execute the command "npx playwright test _Test_CASE_Folder --config=playwright.service.config.new.ts
  3. See errors

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 image

Setup information (please complete the following information):

Additional context Add any other context about the problem here.

AB#1912711

puagarwa commented 10 months ago

Hi @lxy2222 , I looked into your codebase and figured out below

lxy2222 commented 10 months ago

Thanks @puagarwa for detailed clarification. We replaced the browser.launch with browser.connect when enabling service. And it works