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:
parent
13fe598742
commit
d12cbffda7
5 changed files with 279 additions and 322 deletions
|
|
@ -22,7 +22,9 @@ export const config = {
|
|||
path: '/',
|
||||
|
||||
// ── Specs ──
|
||||
specs: [resolve(__dirname, 'specs/**/*.test.ts')],
|
||||
// Single spec file — Tauri launches one app instance per session,
|
||||
// and tauri-driver can't re-create sessions between spec files.
|
||||
specs: [resolve(__dirname, 'specs/bterminal.test.ts')],
|
||||
|
||||
// ── Capabilities ──
|
||||
capabilities: [{
|
||||
|
|
@ -77,7 +79,7 @@ export const config = {
|
|||
},
|
||||
|
||||
/**
|
||||
* Spawn tauri-driver before each session.
|
||||
* Spawn tauri-driver before the session.
|
||||
* tauri-driver bridges WebDriver protocol to WebKit2GTK's inspector.
|
||||
*/
|
||||
beforeSession() {
|
||||
|
|
@ -105,7 +107,7 @@ export const config = {
|
|||
},
|
||||
|
||||
/**
|
||||
* Kill tauri-driver after each session.
|
||||
* Kill tauri-driver after the test run.
|
||||
*/
|
||||
afterSession() {
|
||||
if (tauriDriver) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue