make test-webkit runs the drag specs in WebKit against the test stack

WebKit takes *.localhost to loopback through GLib and ignores /etc/hosts, so
the container shares Traefik's network namespace. The webkit project only
exists with PLAYWRIGHT_WEBKIT=1, so test-frontend stays Chromium only.
This commit is contained in:
2026-10-15 16:15:39 +02:00
parent fbd886f7a7
commit 146ab72c17
3 changed files with 32 additions and 12 deletions
+16 -8
View File
@@ -81,14 +81,22 @@ export default defineConfig({
// dependencies: ['setup'],
// },
// {
// name: 'webkit',
// use: {
// ...devices['Desktop Safari'],
// storageState: 'playwright/.auth/user.json',
// },
// dependencies: ['setup'],
// },
/* The drag specs in WebKit, where the engines differ. Opt-in, because
WebKit only reaches a *.localhost stack from inside Traefik's network
namespace, which is what `make test-webkit` runs in. */
...(process.env.PLAYWRIGHT_WEBKIT
? [
{
name: 'webkit',
use: {
...devices['Desktop Safari'],
storageState: 'playwright/.auth/user.json',
},
testMatch: /-drag\.spec\.ts/,
dependencies: ['setup'],
},
]
: []),
// {
// name: 'Mobile Safari',