macro_rules! e2e_test {
($name:ident, |$client:ident : &mut VictauriClient| async move $body:block) => { ... };
($name:ident, |$client:ident| async move $body:block) => { ... };
}Expand description
Declare an E2E test that auto-skips when VICTAURI_E2E is not set
and auto-connects to the running server.
§Example
ⓘ
use victauri_test::{e2e_test, VictauriClient};
e2e_test!(greet_flow, |client: &mut VictauriClient| async move {
client.fill_by_id("name-input", "World").await.unwrap();
client.click_by_id("greet-btn").await.unwrap();
client.expect_text("Hello, World!").await.unwrap();
});