priority tests and mocks

pull/2493/head
Mihail Maxacov 10 years ago
parent 1d0bb4a3ab
commit d27fd90c2f
  1. 86
      frontend/tests/integration/mocks/work-packages/819_form.json
  2. 86
      frontend/tests/integration/mocks/work-packages/820_form.json
  3. 86
      frontend/tests/integration/mocks/work-packages/821_form.json
  4. 3
      frontend/tests/integration/work-package-details-spec.js

@ -26,6 +26,9 @@
}, },
"version": { "version": {
"href": "/api/v3/versions/1" "href": "/api/v3/versions/1"
},
"priority": {
"href": "/api/v3/priorities/3"
} }
}, },
"lockVersion": 119, "lockVersion": 119,
@ -286,6 +289,89 @@
"updatedAt": "01/21/2015/ 09:30 AM" "updatedAt": "01/21/2015/ 09:30 AM"
}] }]
} }
},
"priority":{
"_links":{
"allowedValues":[
{
"href":"/api/v3/priorities/1",
"title":"Low"
},
{
"href":"/api/v3/priorities/2",
"title":"Normal"
},
{
"href":"/api/v3/priorities/3",
"title":"High"
},
{
"href":"/api/v3/priorities/4",
"title":"Immediate"
}
]
},
"type":"Priority",
"_embedded":{
"allowedValues":[
{
"_type":"Priority",
"_links":{
"self":{
"href":"/api/v3/priorities/1",
"title":"Low"
}
},
"id":1,
"name":"Low",
"position":1,
"isDefault":false,
"isActive":true
},
{
"_type":"Priority",
"_links":{
"self":{
"href":"/api/v3/priorities/2",
"title":"Normal"
}
},
"id":2,
"name":"Normal",
"position":2,
"isDefault":true,
"isActive":true
},
{
"_type":"Priority",
"_links":{
"self":{
"href":"/api/v3/priorities/3",
"title":"High"
}
},
"id":3,
"name":"High",
"position":3,
"isDefault":false,
"isActive":true
},
{
"_type":"Priority",
"_links":{
"self":{
"href":"/api/v3/priorities/4",
"title":"Immediate"
}
},
"id":4,
"name":"Immediate",
"position":5,
"isDefault":false,
"isActive":true
}
]
}
} }
}, },
"validationErrors": {} "validationErrors": {}

@ -26,6 +26,9 @@
}, },
"version": { "version": {
"href": "/api/v3/versions/1" "href": "/api/v3/versions/1"
},
"priority": {
"href": "/api/v3/priorities/3"
} }
}, },
"lockVersion": 119, "lockVersion": 119,
@ -286,6 +289,89 @@
"updatedAt": "01/21/2015/ 09:30 AM" "updatedAt": "01/21/2015/ 09:30 AM"
}] }]
} }
},
"priority":{
"_links":{
"allowedValues":[
{
"href":"/api/v3/priorities/1",
"title":"Low"
},
{
"href":"/api/v3/priorities/2",
"title":"Normal"
},
{
"href":"/api/v3/priorities/3",
"title":"High"
},
{
"href":"/api/v3/priorities/4",
"title":"Immediate"
}
]
},
"type":"Priority",
"_embedded":{
"allowedValues":[
{
"_type":"Priority",
"_links":{
"self":{
"href":"/api/v3/priorities/1",
"title":"Low"
}
},
"id":1,
"name":"Low",
"position":1,
"isDefault":false,
"isActive":true
},
{
"_type":"Priority",
"_links":{
"self":{
"href":"/api/v3/priorities/2",
"title":"Normal"
}
},
"id":2,
"name":"Normal",
"position":2,
"isDefault":true,
"isActive":true
},
{
"_type":"Priority",
"_links":{
"self":{
"href":"/api/v3/priorities/3",
"title":"High"
}
},
"id":3,
"name":"High",
"position":3,
"isDefault":false,
"isActive":true
},
{
"_type":"Priority",
"_links":{
"self":{
"href":"/api/v3/priorities/4",
"title":"Immediate"
}
},
"id":4,
"name":"Immediate",
"position":5,
"isDefault":false,
"isActive":true
}
]
}
} }
}, },
"validationErrors": {} "validationErrors": {}

@ -26,6 +26,9 @@
}, },
"version": { "version": {
"href": "/api/v3/versions/1" "href": "/api/v3/versions/1"
},
"priority": {
"href": "/api/v3/priorities/3"
} }
}, },
"lockVersion": 119, "lockVersion": 119,
@ -286,6 +289,89 @@
"updatedAt": "01/21/2015/ 09:30 AM" "updatedAt": "01/21/2015/ 09:30 AM"
}] }]
} }
},
"priority":{
"_links":{
"allowedValues":[
{
"href":"/api/v3/priorities/1",
"title":"Low"
},
{
"href":"/api/v3/priorities/2",
"title":"Normal"
},
{
"href":"/api/v3/priorities/3",
"title":"High"
},
{
"href":"/api/v3/priorities/4",
"title":"Immediate"
}
]
},
"type":"Priority",
"_embedded":{
"allowedValues":[
{
"_type":"Priority",
"_links":{
"self":{
"href":"/api/v3/priorities/1",
"title":"Low"
}
},
"id":1,
"name":"Low",
"position":1,
"isDefault":false,
"isActive":true
},
{
"_type":"Priority",
"_links":{
"self":{
"href":"/api/v3/priorities/2",
"title":"Normal"
}
},
"id":2,
"name":"Normal",
"position":2,
"isDefault":true,
"isActive":true
},
{
"_type":"Priority",
"_links":{
"self":{
"href":"/api/v3/priorities/3",
"title":"High"
}
},
"id":3,
"name":"High",
"position":3,
"isDefault":false,
"isActive":true
},
{
"_type":"Priority",
"_links":{
"self":{
"href":"/api/v3/priorities/4",
"title":"Immediate"
}
},
"id":4,
"name":"Immediate",
"position":5,
"isDefault":false,
"isActive":true
}
]
}
} }
}, },
"validationErrors": {} "validationErrors": {}

@ -191,6 +191,9 @@ describe('OpenProject', function() {
describe('status', function() { describe('status', function() {
behaveLikeEmbeddedDropdown('status.name', 'specified'); behaveLikeEmbeddedDropdown('status.name', 'specified');
}); });
describe('priority', function() {
behaveLikeEmbeddedDropdown('priority.name', 'high');
});
describe('version', function() { describe('version', function() {
var name = 'version.name'; var name = 'version.name';
var editor = $('[ined-attribute=\'' + name + '\'] .inplace-editor'); var editor = $('[ined-attribute=\'' + name + '\'] .inplace-editor');

Loading…
Cancel
Save