Skip to content

Commit 1d423a5

Browse files
committed
fix(e2e): use http scheme on Windows (matches Tauri 2 default)
1 parent 68447ed commit 1d423a5

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

e2e-webview/support/app.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
// Tauri 2 serves the embedded frontend over a custom scheme. Windows/WebView2
2-
// requires an https origin; macOS/Linux use a custom protocol scheme.
1+
// Tauri 2 serves the embedded frontend over a custom scheme. On Windows the
2+
// default is http://tauri.localhost (https only when app.windows.useHttpsScheme
3+
// is set in tauri.conf.json — we don't); macOS/Linux use tauri://localhost.
4+
// Hitting https://tauri.localhost on Windows yields ERR_CONNECTION_REFUSED.
35
export function appUrl(): string {
4-
return process.platform === 'win32' ? 'https://tauri.localhost' : 'tauri://localhost';
6+
return process.platform === 'win32' ? 'http://tauri.localhost' : 'tauri://localhost';
57
}
68

79
export async function openApp(browser: WebdriverIO.Browser): Promise<void> {

0 commit comments

Comments
 (0)