From: Ian Jackson Date: Tue, 13 Jul 2021 15:41:35 +0000 (+0100) Subject: tests: wdt-bundles: Test overlapping occultations X-Git-Tag: otter-0.7.2~99 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=2fd7c8e0cc306b1bf083c640790572b15affcfb3;p=otter.git tests: wdt-bundles: Test overlapping occultations Signed-off-by: Ian Jackson --- 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()?; } });