@luomus/laji-form 15.1.7 → 15.1.9
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 +15 -11
- package/dist/laji-form.js +1 -1
- package/lib/components/fields/LocationChooserField.js +1 -1
- package/package.json +10 -6
- package/test.Dockerfile +11 -0
- package/migrate.sh +0 -32
package/README.md
CHANGED
|
@@ -159,22 +159,26 @@ http://localhost:8083?id=MHL.1&localFormData=true Line transect form with local
|
|
|
159
159
|
|
|
160
160
|
## Tests
|
|
161
161
|
|
|
162
|
-
You need to
|
|
162
|
+
You might need to install playwright dependencies to run the tests:
|
|
163
163
|
|
|
164
164
|
```
|
|
165
|
-
|
|
165
|
+
npx playwright install
|
|
166
166
|
```
|
|
167
167
|
|
|
168
|
-
The playground server
|
|
168
|
+
The playground server can be running or or not. If it's not running, it will be automatically started.
|
|
169
169
|
|
|
170
|
-
Run the tests
|
|
170
|
+
Run the tests:
|
|
171
171
|
|
|
172
|
-
|
|
172
|
+
```
|
|
173
|
+
npm test
|
|
174
|
+
```
|
|
173
175
|
|
|
174
|
-
|
|
176
|
+
If you run into issues with browser dependencies etc, there's also a dockerized runner:
|
|
175
177
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
178
|
+
```
|
|
179
|
+
# Run all tests (builds docker image & runs it)
|
|
180
|
+
npm run test:docker
|
|
181
|
+
|
|
182
|
+
# Or if you want to give playwright params, run certain tests etc:
|
|
183
|
+
npm run test:docker -- test/mobile-form.spec.ts --project chromium
|
|
184
|
+
```
|