Fix linux-e2e: WebKitWebDriver PATH and tauri-driver GTK initialization #1806
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the linux-e2e test failure in the desktop_cd.yaml pipeline with a two-part solution addressing sequential issues discovered during debugging.
Root causes:
webkit2gtk-driverpackage installsWebKitWebDriverto a versioned library directory (e.g.,/usr/lib/x86_64-linux-gnu/webkit2gtk-4.1/) that's not on PATH by default, causing tauri-driver to fail withcan not find binary WebKitWebDriver in the PATH.onPreparebefore xvfb is initialized, resulting inFailed to initialize gtk backenderror.Solutions:
Part 1 - WebKitWebDriver PATH (
scripts/setup-desktop-e2e.sh):webkit2gtk-driverpackage (as before)WebKitWebDriveris actually callable from PATHdpkg -Land create a symlink to/usr/local/bin/WebKitWebDriverPart 2 - GTK Initialization (
apps/desktop-e2e/wdio.conf.js):tauri-driverwithxvfb-runwhen running in CI (detected viaCIenv var)Review & Testing Checklist for Human
Test Plan
ECONNREFUSEDor GTK initialization errorsNotes
ln -sffor force symlink)/usr/bin/), the script will skip the symlink creationprocess.env.CIcheck)