Skip to content

Commit 4f62149

Browse files
committed
use playwright for testing
1 parent d69315d commit 4f62149

File tree

9 files changed

+42
-314
lines changed

9 files changed

+42
-314
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
with:
3030
power: true
3131
- uses: taiki-e/install-action@just
32+
- run: just installPlaywrightBundle
3233
- run: just gha
3334
- name: Setup Pages
3435
uses: actions/configure-pages@v4

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ hs_err_pid*
99
.scala-build
1010
bin
1111
linked
12-
out
12+
out
13+
.out

IGNORE/DriverJar.unused

-90
This file was deleted.

IGNORE/DriverJar.unusedJ

-203
This file was deleted.

front/README.md README.md

+14-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ One file static site with laminar and shoelace. No bundler.
44
# Dependancies
55

66
- https://github.com/casey/just
7+
- [playwright](https://playwright.dev/java/) for testing
78
- [scala-cli](https://scala-cli.virtuslab.org)
89

910
# Quickstart
@@ -13,11 +14,21 @@ just
1314
```
1415
If you don't have / want *just*, then you can still easily read the justfile and puzzle it out :-).
1516

16-
This will setup the ide, write out a simple `html.index`, compile and link scalaJs into the `out` directory, and start a server.
17+
```sh
18+
just setupIde
19+
just buildJs
20+
just serve
21+
just installPlaywrightBundle
22+
just test
23+
```
1724

18-
## Development locally
25+
Bonus points
1926

20-
The `just` command puts up a server, which will not reload stuff. Kill it.
27+
```sh
28+
just recordATest
29+
```
30+
31+
## Development locally
2132

2233
```sh
2334
just buildJsW
File renamed without changes.

0 commit comments

Comments
 (0)