chiark / gitweb /
wdt-hand: Fix new test to actually fail
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 4 Apr 2021 23:15:09 +0000 (00:15 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 5 Apr 2021 00:47:52 +0000 (01:47 +0100)
Well.  It seems that if you have done click_and_hold in one window,
you can't do click in another.  OK fine whatever.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
wdriver/wdt-hand.rs

index abeb47d6ca5bf5ed36a8d751fe35d48a18e841a7..6616d037e1c44d51efccea928c492ae09d269999 100644 (file)
@@ -148,8 +148,13 @@ impl Ctx {
 
       w.action_chain()
         .move_pc(&w, P_ALICE)?
+        .click()
+        .release()
+
         .click_and_hold()
         .move_w(&w, DEST)?
+        .release()
+
         .perform()
         .did("alice, drag pawn over target")?;
       w.synch()?;
@@ -172,6 +177,8 @@ impl Ctx {
       let mut w = su.w(&self.alice)?;
 
       w.action_chain()
+        .move_pc(&w, P_ALICE)?
+        .click()
         .release()
         .perform()
         .did("alice, drop pawn on target")?;