twenty/packages/twenty-e2e-testing
Nabhag Motivaras 197bca57ba
feat(e2e): twenty-e2e-testing with playwright (#6539)
## ISSUE (e2e) - Introduces e2e for twenty

 - Closes #6360
 
##  Description

- [x] Create Package. 
- [x] Setup environments such as baseUrl.
- [x] ignore CI configuration for now.
- [x] write a simple test to check if table is visible in companies tab.

### Running test with UI

```
yarn run test:e2e:ui
```

https://github.com/user-attachments/assets/a7b7ae35-8898-461e-8c7c-d3e4e9515aeb

### Running all test and seeing report

```
yarn run test:e2e
yarn run test:e2e:report
```



https://github.com/user-attachments/assets/2558a1f9-97cc-4f06-86f0-806f207eac5a

---------

Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
2024-08-14 17:23:32 +02:00
..
e2e feat(e2e): twenty-e2e-testing with playwright (#6539) 2024-08-14 17:23:32 +02:00
.env.example feat(e2e): twenty-e2e-testing with playwright (#6539) 2024-08-14 17:23:32 +02:00
.gitignore feat(e2e): twenty-e2e-testing with playwright (#6539) 2024-08-14 17:23:32 +02:00
package.json feat(e2e): twenty-e2e-testing with playwright (#6539) 2024-08-14 17:23:32 +02:00
playwright.config.ts feat(e2e): twenty-e2e-testing with playwright (#6539) 2024-08-14 17:23:32 +02:00
README.md feat(e2e): twenty-e2e-testing with playwright (#6539) 2024-08-14 17:23:32 +02:00

Twenty e2e Testing

Install

Don't forget to install the browsers before launching the tests :

yarn playwright install 

Run end-to-end tests

yarn run test:e2e

Start the interactive UI mode

yarn run test:e2e:ui

Run test only on Desktop Chrome

yarn run test:e2e:chrome

Run test in specific file

yarn run test:e2e <filename>

Runs the tests in debug mode.

yarn run test:e2e:debug