generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchallenging-timer.feature
42 lines (34 loc) · 1.3 KB
/
challenging-timer.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Feature: Challenging timer
Use the challenging timer to practice TDD baby-steps,
challenging yourself to make small changes that keep your tests green after each period
Background:
Given the default parameters
Scenario: I challenge myself with the default 3:00 timer
Then the timer has periods of 3:00
And the timer is green
When I simple-click the timer
Then the timer switch to red at the end of the period
Scenario: I pause and resume the timer
Given a started timer
When I simple-click the timer
Then the timer is paused
And the timer is yellow
When I simple-click the timer
Then the timer is resumed
And the timer is green
Scenario: I restart the timer with a double click
Given a started timer
When I double-click the timer
Then the timer is restarted
Scenario: I restart the timer with a simple click when it is finished
Given a finished timer
When I simple-click the timer
Then the timer is restarted
Scenario: I parametrize the timer to 2:30
When I change the parameter to 2:30
Then the timer has periods of 2:30
Scenario: The timer is reset if I change the parameters
Given a started timer
When I change the parameter to 2:30
Then the timer is reset and paused with the new period
And the timer is green