From 2fd7c8e0cc306b1bf083c640790572b15affcfb3 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 13 Jul 2021 16:41:35 +0100 Subject: [PATCH] tests: wdt-bundles: Test overlapping occultations Signed-off-by: Ian Jackson --- wdriver/wdt-bundles.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/wdriver/wdt-bundles.rs b/wdriver/wdt-bundles.rs index 8a297875..0d8997f0 100644 --- a/wdriver/wdt-bundles.rs +++ b/wdriver/wdt-bundles.rs @@ -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()?; } }); -- 2.30.2