marian51 / poc-playwright-typescript-gui-api

A repository containing a sample project based on Playwright, written using Typescript, showing testing of the GUI and API of given application.
2 stars 0 forks source link

Create setup for API tests #73

Open 2pavel opened 2 weeks ago

2pavel commented 2 weeks ago

It would be convenient to have a mechanism which sets all useful values (mostly IDs) in .env before all tests (including GUI). Currently, IDs are handled by ApiUtils which are called by hooks - we can refactor it so it can be run only once before all tests if values do not exist yet.

2pavel commented 2 weeks ago

For now, no such mechanism is going to be created. We will work with predefined dotenv values.