Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ services:
command: sleep infinity
depends_on:
- nextcloud
extra_hosts:
- "${NEXTCLOUD_HOST:-${COMPOSE_PROJECT_NAME}.localhost}:host-gateway"
restart: unless-stopped
networks:
- default
Expand Down
9 changes: 9 additions & 0 deletions tests/worker/contract.bats
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,12 @@ setup() {
[[ "$output" == *"VIRTUAL_HOST: example.test"* ]]
}



@test "Playwright resolves the public Nextcloud hostname through the Docker host" {
run env DB_TYPE=sqlite COMPOSE_PROFILES=playwright sh "$WORKER" playwright-route config
[ "$status" -eq 0 ]
[[ "$output" == *"PLAYWRIGHT_BASE_URL: https://ncdev-playwright-route.localhost"* ]]
[[ "$output" == *"ncdev-playwright-route.localhost"* ]]
[[ "$output" == *"host-gateway"* ]]
}
Loading