-
-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathissue-207-change-hour-format.feature
46 lines (40 loc) · 1.52 KB
/
issue-207-change-hour-format.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
43
44
45
46
Feature: The clock convention can be changed from the 24 hour format to the 12 hour format.
Scenario Outline: I view the calendar in the 24h format - this is the default.
Given we add the calendar "one-event"
And we set the "tab" parameter to "<tab>"
When we look at 2024-01-18
Then we can see the text "00:00"
And we can see the text "12:00"
And we can see the text "23:00"
And we cannot see the text "pm"
And we cannot see the text "PM"
Examples:
| tab |
| day |
| week |
Scenario Outline: I view the calendar in the 24h format with no 0 at the start.
Given we add the calendar "one-event"
And we set the "tab" parameter to "<tab>"
And we set the "hour_format" parameter to "%G:%i"
When we look at 2024-01-18
Then we can see the text "0:00"
And we can see the text "12:00"
And we can see the text "23:00"
And we cannot see the text "00:00"
Examples:
| tab |
| day |
| week |
Scenario Outline: I view the calendar in the 12h format.
Given we add the calendar "one-event"
And we set the "tab" parameter to "<tab>"
And we set the "hour_format" parameter to "%g:%i %a"
When we look at 2024-01-18
Then we can see the text "12:00 am"
And we can see the text "12:00 pm"
And we can see the text "11:00 pm"
And we cannot see the text "13:00"
Examples:
| tab |
| day |
| week |