app icon indicating copy to clipboard operation
app copied to clipboard

Playwright: global.setup is NOT run by Testomat.io

Open SuperJessiK opened this issue 9 months ago • 2 comments

Describe the bug In Playwright there is a concept of global.setup and teardown to run before and after all the projects: https://playwright.dev/docs/test-global-setup-teardown Issue: Playwright run is expected to 1st run global.setup file. It works fine when running from VS code, but from Testomat.io global.setup file is NOT run

To Reproduce Steps to reproduce the behavior:

  1. Create your playwright tests
  2. Create a global-setup file
  3. In Playwright.config file add the following row: globalSetup: require.resolve('./infra/setup/global.setup.ts')

Expected behavior global.setup file is expected to run before all the other projects

SuperJessiK avatar Mar 30 '25 12:03 SuperJessiK

@SuperJessiK please describe how/where do you run the tests

olexandr13 avatar Mar 31 '25 10:03 olexandr13

Hi @olexandr13, i run the tests from Testomat.io from the Tests tab. See the attached picture:

Image

SuperJessiK avatar Mar 31 '25 10:03 SuperJessiK