@saucebase/laravel-playwright 2.1.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -105,7 +105,7 @@ This writes a copy of your `.env` with its own server and database. Laravel load
|
|
|
105
105
|
APP_ENV=e2e
|
|
106
106
|
APP_URL=http://localhost:8100
|
|
107
107
|
DB_CONNECTION=sqlite
|
|
108
|
-
DB_URL=
|
|
108
|
+
DB_URL="sqlite:///database/e2e.sqlite?transaction_mode=IMMEDIATE&busy_timeout=10000"
|
|
109
109
|
DB_DATABASE=database/e2e.sqlite
|
|
110
110
|
SESSION_DRIVER=file
|
|
111
111
|
CACHE_STORE=file
|
|
@@ -114,6 +114,8 @@ MAIL_MAILER=log
|
|
|
114
114
|
REDIS_PREFIX=<your prefix>e2e_
|
|
115
115
|
```
|
|
116
116
|
|
|
117
|
+
`DB_URL` carries the SQLite settings that let parallel workers wait for each other. `transaction_mode=IMMEDIATE` needs PHP 8.4 or later; older versions ignore it, so read-then-write transactions can still hit `database is locked`. `busy_timeout` applies on every version.
|
|
118
|
+
|
|
117
119
|
Options: `php artisan playwright:env <environment> --url=http://localhost:9000 --force`. Edit the file afterwards for anything else the suite needs. Keep `.env.e2e` out of git like `.env`, and in CI, run the command after creating `.env`.
|
|
118
120
|
|
|
119
121
|
**2. Let Playwright start the server:**
|
package/package.json
CHANGED