From 2409c87aa91368961a8965887420045d307caade Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 5 Apr 2021 00:15:09 +0100 Subject: [PATCH] wdt-hand: Fix new test to actually fail 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 --- wdriver/wdt-hand.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wdriver/wdt-hand.rs b/wdriver/wdt-hand.rs index abeb47d6..6616d037 100644 --- a/wdriver/wdt-hand.rs +++ b/wdriver/wdt-hand.rs @@ -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")?; -- 2.30.2