Commit 18f759c
Fix linux-e2e: WebKitWebDriver PATH and tauri-driver GTK initialization (#1806)
* Fix linux-e2e: ensure WebKitWebDriver is in PATH
The webkit2gtk-driver package on Ubuntu 24.04 may install WebKitWebDriver
to a versioned library directory that's not on PATH by default. This causes
tauri-driver to fail with 'can not find binary WebKitWebDriver in the PATH'.
This fix:
- Checks if webkit2gtk-driver package is installed
- Verifies WebKitWebDriver is callable from PATH
- If not, locates the binary using dpkg -L and creates a symlink to /usr/local/bin
- Validates the symlink works before proceeding
This ensures tauri-driver can find WebKitWebDriver regardless of where
the package installs it.
Co-Authored-By: yujonglee <[email protected]>
* Fix tauri-driver GTK initialization by wrapping with xvfb-run in CI
The previous fix ensured WebKitWebDriver was in PATH, which worked.
However, tauri-driver itself needs GTK/X11 to initialize its event loop.
In CI, tauri-driver was starting in onPrepare before xvfb was initialized,
causing GTK initialization to fail with 'Failed to initialize gtk backend'.
This fix wraps tauri-driver with xvfb-run when running in CI (detected via
CI env var), providing a virtual display before tauri-driver starts.
Local development is unaffected (no xvfb-run wrapper).
Co-Authored-By: yujonglee <[email protected]>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: yujonglee <[email protected]>1 parent af3ba9c commit 18f759c
2 files changed
+38
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
31 | 56 | | |
32 | 57 | | |
33 | 58 | | |
0 commit comments