fix protractor tests

pull/2493/head
Mihail Maxacov 10 years ago
parent d27fd90c2f
commit 380c98b457
  1. 3
      frontend/app/ui_components/inplace-editor-dispatcher.js
  2. 2
      frontend/tests/integration/mocks/work-packages/819.json
  3. 86
      frontend/tests/integration/mocks/work-packages/822_form.json
  4. 2
      frontend/tests/integration/work-package-details-spec.js

@ -210,8 +210,9 @@ module.exports = function($sce, $http, $timeout, AutoCompleteHelper, TextileServ
}
},
setWriteValue: function($scope) {
var link = $scope.entity.form.embedded.payload.links[getAttribute($scope)];
$scope.dataObject = {
value: $scope.entity.form.embedded.payload.links[getAttribute($scope)].href
value: link ? link.href : null
};
}
}

@ -136,7 +136,7 @@
"isClosed": false
},
"priority": {
"name": "high"
"name": "High"
},
"author": {
"_type": "User",

@ -32,6 +32,9 @@
},
"version": {
"href": "/api/v3/versions/1"
},
"priority": {
"href": null
}
},
"lockVersion": 145,
@ -298,6 +301,89 @@
"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": {}

@ -192,7 +192,7 @@ describe('OpenProject', function() {
behaveLikeEmbeddedDropdown('status.name', 'specified');
});
describe('priority', function() {
behaveLikeEmbeddedDropdown('priority.name', 'high');
behaveLikeEmbeddedDropdown('priority.name', 'High');
});
describe('version', function() {
var name = 'version.name';

Loading…
Cancel
Save