End to end testing
End to end testing
While WunderGraph does not provide any end to end testing libraries itself, it does fully support using PlayWright .
Initial setup
Follow the official instructions from PlayWright, which will set up an example test for you.
Configure your PlayWright to start your WunderGraph application by editing playwright.config.ts. Look for webServer and add the following lines:
1
2
3
4
5
6
7
8
Run your tests
First, install PlayWright browser engines with:
1
And finally start your tests by running:
1