chiark / gitweb /
tests: wdt-bundles: Test overlapping occultations
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 13 Jul 2021 15:41:35 +0000 (16:41 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 13 Jul 2021 18:21:16 +0000 (19:21 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
wdriver/wdt-bundles.rs

index 8a297875edf94a8c6fbf77a20b1ba0748e285ff8..0d8997f0fb4502381c6617a970534d643e446eba 100644 (file)
@@ -158,6 +158,11 @@ fn tests(UsualSetup { su, alice, bob, ..}: UsualSetup) {
   });
 
   test!(c, "impossible", {
+    // We want to test that the client can cope with an unpredictable
+    // _impossible_ error, reported via an update.  A way to generate
+    // such a thing is to try to make overlapping occultations, which
+    // the client does not try to prevent.
+
     c.vatikan_with_deck()?;
 
     {
@@ -178,6 +183,14 @@ fn tests(UsualSetup { su, alice, bob, ..}: UsualSetup) {
         .perform()
         .did("move to overlap")?;
       alice.synch()?;
+
+      alice.action_chain()
+        .move_pos(newpos)?
+        .click().release()
+        .send_keys("C")
+        .perform()
+        .did("try to claim when overlapping")?;
+      alice.synch()?;
     }
 
   });