Skip to content

Commit 791ca5f

Browse files
committed
fix behat tests for redmine 5.0 and 4.2
1 parent d10cd98 commit 791ca5f

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

tests/Behat/features/tracker.feature

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,21 @@ Feature: Interacting with the REST API for trackers
3131
And the returned data "trackers" property is an array
3232
And the returned data "trackers" property contains "2" items
3333
And the returned data "trackers.0" property is an array
34-
And the returned data "trackers.0" property has only the following properties
34+
And the returned data "trackers.0" property has only the following properties with Redmine version ">= 5.0.0"
3535
"""
3636
id
3737
name
3838
default_status
3939
description
4040
enabled_standard_fields
4141
"""
42+
But the returned data "trackers.0" property has only the following properties with Redmine version "< 5.0.0"
43+
"""
44+
id
45+
name
46+
default_status
47+
description
48+
"""
4249
And the returned data "trackers.0" property contains the following data
4350
| property | value |
4451
| id | 1 |
@@ -48,7 +55,7 @@ Feature: Interacting with the REST API for trackers
4855
| property | value |
4956
| id | 1 |
5057
| name | New |
51-
And the returned data "trackers.0.enabled_standard_fields" property contains the following data
58+
And the returned data "trackers.0.enabled_standard_fields" property contains the following data with Redmine version ">= 5.1.0"
5259
| property | value |
5360
| 0 | assigned_to_id |
5461
| 1 | category_id |
@@ -60,3 +67,14 @@ Feature: Interacting with the REST API for trackers
6067
| 7 | done_ratio |
6168
| 8 | description |
6269
| 9 | priority_id |
70+
But the returned data "trackers.0.enabled_standard_fields" property contains the following data with Redmine version ">= 5.0.0"
71+
| property | value |
72+
| 0 | assigned_to_id |
73+
| 1 | category_id |
74+
| 2 | fixed_version_id |
75+
| 3 | parent_issue_id |
76+
| 4 | start_date |
77+
| 5 | due_date |
78+
| 6 | estimated_hours |
79+
| 7 | done_ratio |
80+
| 8 | description |

0 commit comments

Comments
 (0)