chiark / gitweb /
tests: wdt-bundles: Prepare for overlap (impossible) test
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 13 Jul 2021 15:33:13 +0000 (16:33 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 13 Jul 2021 16:48:26 +0000 (17:48 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
wdriver/wdt-bundles.rs

index fc92e44faa9c5e5321d8b1eb53f0042c7ed49d9b..448713c8d0620b422fb86ceea3f81cdd27b2784d 100644 (file)
@@ -157,6 +157,30 @@ fn tests(UsualSetup { su, alice, bob, ..}: UsualSetup) {
 
   });
 
+  test!(c, "impossible", {
+    c.vatikan_with_deck()?;
+
+    {
+      let mut alice = c.su.w(&c.alice)?;
+
+      let handp  = alice.posg2posw(VATIKAN_HAND)?;
+      let newpos = alice.posg2posw((VATIKAN_HAND + Pos::new(50, 0))?)?;
+
+      alice.action_chain()
+        .send_keys("W")
+        .move_pos(handp)?
+        .click()
+        .release()
+        .click_and_hold()
+        .move_pos(newpos)?
+        .send_keys("W")
+        .perform()
+        .did("move to overlap")?;
+      alice.synch()?;
+    }
+
+  });
+
   debug!("finishing");
 }