chromedp completely fails to reliably click on links when running in non-headless mode on Windows. About 50% of the time it just hangs thinking it clicked when it didn't. So, on Windows need headless only, and then design tests on Linux where it (maybe) works.
This commit is contained in:
parent
bac4472c3a
commit
fecfc8ee84
3 changed files with 83 additions and 61 deletions
11
Makefile
11
Makefile
|
@ -1,3 +1,10 @@
|
|||
GO_IS_STUPID_EXE=
|
||||
|
||||
ifeq '$(OS)' 'Windows_NT'
|
||||
GO_IS_STUPID_EXE=.exe
|
||||
endif
|
||||
|
||||
|
||||
build:
|
||||
go build .
|
||||
|
||||
|
@ -11,8 +18,8 @@ docs:
|
|||
go tool pkgsite --open
|
||||
|
||||
test:
|
||||
go test zedshaw.games/webapp/tests -c -o runtests
|
||||
./runtests
|
||||
go test zedshaw.games/webapp/tests -c -o runtests$(GO_IS_STUPID_EXE)
|
||||
./runtests$(GO_IS_STUPID_EXE)
|
||||
|
||||
dev:
|
||||
go tool air -build.stop_on_error "true"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue