fix(e2e): consolidate specs into single file and fix WebDriver click issues

Tauri creates one app session per spec file; multiple files caused
invalid session id on subsequent specs. WebDriver clicks on Svelte 5
components inside scrollable panels dont trigger onclick handlers
via WebKit2GTK/tauri-driver - use browser.execute() JS clicks.
Also removed tauri-plugin-log (redundant with telemetry::init()).
This commit is contained in:
Hibryda 2026-03-08 21:58:23 +01:00
parent 13fe598742
commit d12cbffda7
5 changed files with 279 additions and 322 deletions

View file

@ -621,14 +621,10 @@ pub fn run() {
.plugin(tauri_plugin_updater::Builder::new().build())
.plugin(tauri_plugin_dialog::init())
.setup(move |app| {
if cfg!(debug_assertions) {
// Ignore error if logger already initialized (telemetry::init sets up tracing-subscriber)
let _ = app.handle().plugin(
tauri_plugin_log::Builder::default()
.level(log::LevelFilter::Info)
.build(),
);
}
// Note: tauri-plugin-log is NOT initialized here because telemetry::init()
// already sets up tracing-subscriber (which bridges the `log` crate via
// tracing's compatibility layer). Adding plugin-log would panic with
// "attempted to set a logger after the logging system was already initialized".
// Create TauriEventSink for core managers
let sink: Arc<dyn bterminal_core::event::EventSink> =