SIM001 › Games › Recreation
A game of tag › Tag, then get tagged passed
As a pilot, I want to chase other planes, and get away from them, so that I can practise to fly near other planes.
The test behind the tutorial A game of tag: every step it takes, what it checks and what it saw.
Start
From the setup of Recreation.
Everything it starts with
Given the throttle is 0 % And the pitch stick is centred And the roll stick is centred And the wings are level And the flight controller is missing And the flight mode is MANUAL And the rates are high And differential thrust is on And the view is line of sight And auto-zoom is on And the help screen is hidden And the sim is running And the battery is at least 99 % And the game is free flight And the game clock is off And the plane is in hand

- Every arranged state read back as arranged (16)
1 When the pilot starts a game of tag
When the pilot starts a game of tag Then the chaser is you
Expected behaviour: T starts a game of tag.

- the opponents are in hand · T starts a game of tag
- the chaser is you · T starts a game of tag
- the game is tag · T starts a game of tag
- the game clock is waiting for takeoff · T starts a game of tag
- the plane is in hand · T starts a game of tag
2 When the throttle is 80 %
When the throttle is 80 % Then the game clock is counting down And the plane is flying
Expected behaviour: Throttle up throws the plane, The game waits for you to take off.

- the plane is flying · Throttle up throws the plane
- the game clock is counting down · The game waits for you to take off
3 When the countdown ends
When the countdown ends Then the opponents are flying
Expected behaviour: At GO the computer pilots throw their planes.

- the opponents are flying · At GO the computer pilots throw their planes
- the game clock is running · At GO the computer pilots throw their planes
4 When the pilot tags an opponent
When the pilot tags an opponent Then the chaser is an opponent
Expected behaviour: A touch passes it on.

- the chaser is an opponent · A touch passes it on
5 When the chaser tags the plane
When the chaser tags the plane Then the chaser is you
Expected behaviour: The chaser comes after you.

- the chaser is you · The chaser comes after you