Gregor Vostrak fc524625c2 playwright (#3)
* add playwright setup and tests for auth, profile and organization settings

* add playwright github action

* add sqlite database

* fix playwright base url

* add mailpit and parallelization

* remove additional waitForUrl in fixture

* fix tests

* remove waitforurl in tests

* change playwright github action to only one worker

* try promiso all to avoid loading errors

* change environment to include http protocol

* convert back to simpler structure

* add caching of playwright browser binaries

* test if playwright in ci works faster with multiple workers

* change back to one worker

* remove browser binary caching

* try using playwright container to speedup browser setup

* rollback image changes

* add playwright gitignore changes

---------

Co-authored-by: Gregor Vostrak <gregorvostrak@Gregors-MacBook-Pro.local>
2024-01-23 17:13:25 +01:00
2024-01-23 17:13:25 +01:00
2024-01-23 17:13:25 +01:00
2024-01-23 17:13:25 +01:00
2024-01-23 17:13:25 +01:00
2024-01-23 17:13:25 +01:00
2024-01-21 18:35:29 +01:00
2024-01-23 17:13:25 +01:00
2024-01-23 17:13:25 +01:00
2024-01-23 17:13:25 +01:00
2024-01-23 17:13:25 +01:00
2024-01-16 22:49:01 +01:00
2024-01-23 17:13:25 +01:00
2024-01-23 17:13:25 +01:00

Time-tracking project

Setup the Project

System Requirements:

  • Docker
  • PHP 8.2
  • Composer
composer install

cp .env.example .env

./vendor/bin/sail up -d

./vendor/bin/sail artisan key:generate

./vendor/bin/sail artisan migrate:fresh --seed

./vendor/bin/sail npm install

./vendor/bin/sail npm run build

Make sure to set the APP_PORT and VITE_PORT inside your .env file to a port that is not already used by your system.

Setup with Reverse Proxy

Additional System Requirements:

Add the following entry to your /etc/hosts

127.0.0.1 timetracker.test
127.0.0.1 playwright.timetracker.test

Running E2E Tests

./vendor/bin/sail up -d will automatically start a Playwright UI server that you can access at https://playwright.timetracker.test. Make sure that you use HTTPS otherwise the resources will not be loaded correctly.

Recording E2E Tests

To record E2E tests, you need to install and execute playwright locally using:

npx playwright install
npx playwright codegen timetracker.test

Contributing

This project is in a very early stage. The structure and APIs are still subject to change and not stable. Therefore we do not currently accept any contributions, unless you are a member of the team.

As soon as we feel comfortable enough that the application structure is stable enough, we will open up the project for contributions.

Languages
PHP 47.5%
Vue 25.2%
TypeScript 24.7%
Blade 1.2%
JavaScript 0.8%
Other 0.5%