Skip to content

Commit fa907b6

Browse files
committed
Tooling: Fix Linux E2E test env
1 parent ba4812d commit fa907b6

4 files changed

Lines changed: 12 additions & 32 deletions

File tree

apps/desktop/src-tauri/src/lib.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,19 @@ pub fn run() {
108108
#[cfg(debug_assertions)]
109109
let builder = builder.plugin(tauri_plugin_mcp_bridge::init());
110110

111+
// Skip updater plugin in CI to avoid network dependency and latency during E2E tests
112+
let builder = if std::env::var("CI").is_ok() {
113+
builder
114+
} else {
115+
builder.plugin(tauri_plugin_updater::Builder::new().build())
116+
};
117+
111118
builder
112119
.plugin(tauri_plugin_store::Builder::new().build())
113120
.plugin(tauri_plugin_opener::init())
114121
.plugin(tauri_plugin_clipboard_manager::init())
115122
.plugin(tauri_plugin_drag::init())
116123
.plugin(tauri_plugin_fs::init())
117-
.plugin(tauri_plugin_updater::Builder::new().build())
118124
.plugin(tauri_plugin_process::init())
119125
.plugin(tauri_plugin_dialog::init())
120126
.setup(|app| {

apps/desktop/test/e2e-linux/docker/entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ export XDG_RUNTIME_DIR=/tmp/runtime-root
2525
mkdir -p "$XDG_RUNTIME_DIR"
2626
chmod 700 "$XDG_RUNTIME_DIR"
2727

28+
# Create test fixture directories so navigation tests have something to work with
29+
mkdir -p /root/test-dir/sub-dir
30+
echo "test content" > /root/test-dir/test-file.txt
31+
2832
# Verify environment
2933
echo "Environment:"
3034
echo " DISPLAY=$DISPLAY"

apps/desktop/test/e2e-linux/settings.spec.ts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -251,33 +251,3 @@ describe('Settings window', () => {
251251
await browser.switchToWindow(originalWindow)
252252
})
253253
})
254-
255-
/**
256-
* Fallback tests that work without multi-window support.
257-
* These navigate directly to the /settings route.
258-
*/
259-
describe('Settings page (direct navigation)', () => {
260-
it('renders settings page when navigated to directly', async () => {
261-
// Navigate to settings route
262-
await browser.url('/settings')
263-
await browser.pause(1000)
264-
265-
// Check for settings window class
266-
const settingsWindow = browser.$('.settings-window')
267-
268-
if (await settingsWindow.isExisting()) {
269-
expect(await settingsWindow.isDisplayed()).toBe(true)
270-
271-
// Verify sidebar exists
272-
const sidebar = browser.$('.settings-sidebar')
273-
expect(await sidebar.isExisting()).toBe(true)
274-
275-
// Verify content wrapper exists
276-
const content = browser.$('.settings-content-wrapper')
277-
expect(await content.isExisting()).toBe(true)
278-
} else {
279-
// The route might not work in this test context
280-
console.log('Settings page not rendered - may require app context')
281-
}
282-
})
283-
})

apps/desktop/test/e2e-linux/wdio.conf.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const config: Options.Testrunner & { capabilities: Capabilities.Testrunne
9494
stdio: ['ignore', 'pipe', 'pipe'],
9595
env: {
9696
...process.env,
97-
RUST_LOG: 'debug', // Enable debug logging
97+
RUST_LOG: process.env.CI ? 'warn' : 'debug',
9898
},
9999
})
100100

0 commit comments

Comments
 (0)