From: Ian Jackson Date: Wed, 21 Jul 2021 18:20:52 +0000 (+0100) Subject: autolower: Test that it works when claiming a hand X-Git-Tag: otter-0.7.2~11 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f123d45950a47bffb6d72035eace8e07fb349215;p=otter.git autolower: Test that it works when claiming a hand Signed-off-by: Ian Jackson --- diff --git a/wdriver/wdt-hand.rs b/wdriver/wdt-hand.rs index 631d8f72..0ebd10ae 100644 --- a/wdriver/wdt-hand.rs +++ b/wdriver/wdt-hand.rs @@ -78,6 +78,12 @@ impl Ctx { .did("claim hand")?; w.synch()?; + let top = w.execute_script(&format!(r##" + return pieces_marker.nextElementSibling.dataset.piece; + "##))?; + assert_eq!( top.value().as_str().unwrap(), + hand_pieceid ); + w.action_chain() .click() .perform()