Continuation of #6644 

Now chromium browser is used in workspaces tests instead of firefox and
screenshots after each test are properly saved in one folder when run
from IDE and from terminal using `yarn test:e2e` command
This commit is contained in:
BOHEUS
2024-08-27 09:07:10 +00:00
committed by GitHub
parent d622803ac2
commit b1fbf4b683
15 changed files with 316 additions and 46 deletions

View File

@ -1,8 +1,8 @@
# Twenty e2e Testing
## Install
## Prerequisite
Don't forget to install the browsers before launching the tests :
Installing the browsers:
```
yarn playwright install
@ -35,3 +35,10 @@ yarn run test:e2e <filename>
```
yarn run test:e2e:debug
```
## Q&A
#### Why there's `path.resolve()` everywhere?
That's thanks to differences in root directory when running tests using commands and using IDE. When running tests with commands,
the root directory is `twenty/packages/twenty-e2e-testing`, for IDE it depends on how someone sets the configuration. This way, it
ensures that no matter which IDE or OS Shell is used, the result will be the same.