use serial_test::serial; mod common; use crate::common::run_script_against; #[tokio::test] #[serial] async fn locate_text_input_by_preceding_label() { run_script_against( "locate \"test input element\" and type \"Some Text\" and chill \"1\"", "", ) .await; } #[tokio::test] #[serial] async fn locate_text_area_by_preceding_label() { run_script_against( "locate \"test textarea element\" and type \"Some Text\" and chill \"1\"", "", ) .await; } #[tokio::test] #[serial] async fn locate_select_by_preceding_label() { run_script_against( "locate \"test select element\" and select \"Option 2\" and chill \"1\"", "" ).await; } #[tokio::test] #[serial] async fn locate_text_input_by_label_with_for_attribute_to_id() { run_script_against( "locate \"test input element\" and type \"Some Text\" and chill \"1\"", "" ).await; } #[tokio::test] #[serial] async fn locate_text_input_by_label_with_for_attribute_to_name() { run_script_against( "locate \"test input element\" and type \"Some Text\" and chill \"1\"", "" ).await; } #[tokio::test] #[serial] async fn locate_text_input_by_containing_label() { run_script_against( "locate \"test input element\" and type \"Some Text\" and chill \"1\"", "", ) .await; } #[tokio::test] #[serial] async fn locate_text_area_by_containing_label() { run_script_against( "locate \"test textarea element\" and type \"Some Text\" and chill \"1\"", "", ) .await; } #[tokio::test] #[serial] async fn locate_select_by_containing_label() { run_script_against( "locate \"test select element\" and select \"Option 2\" and chill \"1\"", "" ).await; } #[tokio::test] #[serial] async fn locate_text_input_by_nested_label() { run_script_against( "locate \"test input element\" and type \"Some Text\" and chill \"1\"", "
", ) .await; }