1 2 3 4 5 6 7 8 9 10 11 12 13
/// A simple macro for listening for a checkpoint in a test.
#[macro_export]
macro_rules! wait_for_checkpoint {
($checkpoint:literal, $count:literal, $client:expr) => {
$client
.wait()
.for_element(::fantoccini::Locator::Id(&format!(
"__perseus_checkpoint-{}-{}",
$checkpoint, $count
)))
.await?;
};
}