allwright 0.0.1

Driverless browser automation engine with a high-level Rust client and optional CLI.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::{android_lib, ios_lib};
use tokio::time::{Duration, sleep};

pub async fn boot() -> String {
    let (_ios, _android) = tokio::join!(ios_lib::boot(), android_lib::boot());
    sleep(Duration::from_millis(25)).await;
    "mobile ready".to_string()
}

#[cfg(test)]
mod tests {
    use super::*;

    #[tokio::test]
    async fn boots_mobile_runtime() {
        assert_eq!(boot().await, "mobile ready");
    }
}