microsoft / playwright-dotnet

.NET version of the Playwright testing and automation library.
https://playwright.dev/dotnet/
MIT License
2.47k stars 235 forks source link

[Docs]: How to start application in docker to be open in CI Playwright tests? #2937

Closed michael-freidgeim-webjet closed 5 months ago

michael-freidgeim-webjet commented 5 months ago

Page(s)

https://playwright.dev/dotnet/docs/ci-intro#on-pushpull_request

Description

The page only shows how to Build and run PlayWright project , not how to start the website under the test

I’ve posted a question about the possible workflow https://stackoverflow.com/questions/78498277/how-to-start-asp-net-core-application-in-docker-to-be-open-in-ci-playwright-test It will be good if the recommended approach will be included in your documentation

mxschmitt commented 5 months ago

Folding into https://github.com/microsoft/playwright-dotnet/issues/2369

TL;DR: Nothing available out of the box as of today. We recommend e.g. starting it in the background via & and waiting it to be available via e.g. npx wait-on or starting it inside AssemblyInitialize.

michael-freidgeim-webjet commented 4 months ago

Thanks @mxschmitt , I was able to follow your suggestion to use AssemblyInitialize. I've described main steps in stackoverflow answer