13588b4a65
Set up WebDriver-based testing for the Tauri app with two tiers: - Vitest browser-mode tests (*.tauri.test.ts) running inside the Tauri WebView for plugin IPC testing (libsql, smoke tests) - WDIO E2E tests (*.e2e.ts) for UI-level interaction testing Key changes: - Add webdriver Cargo feature gating tauri-plugin-webdriver - Add runtime capability for remote URLs (webdriver builds only) - Add vitest.tauri.config.mts and wdio.conf.ts connecting to embedded WebDriver server on port 4445 - Add shared tauri-invoke helper for IPC from Vitest iframe context - Add testing documentation in docs/testing.md
24 lines
620 B
JSON
24 lines
620 B
JSON
{
|
|
"identifier": "webdriver-testing",
|
|
"description": "Grants plugin permissions to remote URLs for Vitest browser-mode tests. Only loaded at runtime when the webdriver feature is enabled.",
|
|
"remote": {
|
|
"urls": ["http://127.0.0.1:*", "http://localhost:*"]
|
|
},
|
|
"local": false,
|
|
"windows": ["main"],
|
|
"permissions": [
|
|
"core:default",
|
|
"fs:default",
|
|
"os:default",
|
|
"dialog:default",
|
|
"core:window:default",
|
|
"core:path:allow-resolve-directory",
|
|
"log:default",
|
|
"shell:default",
|
|
"process:default",
|
|
"libsql:default",
|
|
"native-tts:default",
|
|
"native-bridge:default"
|
|
]
|
|
}
|