You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Integrates playwright into CI.
- CI: Changed cache paths
- CI: removes old partioning scripts (playwright natively supports
shards)
- CI: updates artifact paths
- config: I changed the config to start with CI-like/headless defaults,
these then get overridden in the project `playwright.config.ts` - I'd
like to keep things super clear and use "top-level" conditionals rather
than embedded deeper down in config where possible.
- config: I found a better way to pass through a baseURL from the
playwright config.
- config: I added a simple vite-base feature-file file watcher for
running locally
The only thing I'm unsure of here is the CI caching - I'm not totally
sure if thats kicking in properly 👀
---------
Signed-off-by: John Cowen <john.cowen@konghq.com>
Copy file name to clipboardExpand all lines: packages/kuma-gui/Makefile
+11-8Lines changed: 11 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,17 @@ test/unit: .test/unit ## Dev: run unit tests and exit
51
51
test/unit/watch: .test/unit/watch ## Dev: run unit tests but watch for changes
52
52
53
53
.PHONY: test/e2e
54
-
test/e2e: .test/e2e ## Run browser-based e2e tests against a running GUI, you may want to set KUMA_BASE_URL=http://localhost:8080/gui and KUMA_TEST_BROWSER=chrome
54
+
test/e2e: ## Run browser-based e2e tests against a running GUI, you may want to set KUMA_TEST_BROWSER=chrome
55
+
ifndefKUMA_TEST_BROWSER
56
+
@while ! nc -z localhost 5681; do sleep 1; done;
57
+
@$(MAKE) \
58
+
-f $(MK)/playwright.mk \
59
+
test
60
+
else
61
+
@$(MAKE) \
62
+
-f $(MK)/playwright.mk \
63
+
test PLAYWRIGHT_FLAGS="--ui"
64
+
endif
55
65
56
66
.PHONY: build
57
67
build: .build ## Dev: build a production artifact in `./dist`
0 commit comments