Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rzmk/tauri-windows-e2e-demo

๐Ÿงช Demonstration of end-to-end testing with a Tauri app on Windows.
https://github.com/rzmk/tauri-windows-e2e-demo

demo e2e e2e-tests end-to-end-testing rust tauri tauri-app testing windows

Last synced: about 1 month ago
JSON representation

๐Ÿงช Demonstration of end-to-end testing with a Tauri app on Windows.

Awesome Lists containing this project

README

        

# tauri-windows-e2e-demo

This is an example of end-to-end testing for a Tauri v2 Beta application on Windows. The test should successfully click the button in the app.

![E2E demo](https://github.com/user-attachments/assets/46e0b4ce-6077-41f4-bb2a-d264f8203b65)

## Prerequisites

0. Make sure you have [Cargo](https://doc.rust-lang.org/cargo/getting-started/installation.html) and [Bun](https://bun.sh) installed.
1. Install [tauri-driver](https://crates.io/crates/tauri-driver) and make it accessible from your PATH (run `cargo install tauri-driver`).
2. Install [msedgedriver.exe](https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/?form=MA13LH#downloads) and make it accessible from your PATH.
3. Build the app first (`bun i && bun tauri build`) before running the end-to-end test (`cd e2e && cargo run`).

The [fantoccini](https://crates.io/crates/fantoccini) and [enigo](https://crates.io/crates/enigo) crates may be useful for further implementation.