fixes in etapi tests

This commit is contained in:
zadam
2023-07-10 19:10:07 +02:00
parent b7f0fd2db3
commit ac9a4b3afc
5 changed files with 251 additions and 319 deletions

View File

@@ -106,11 +106,11 @@ function hasAttribute(list, attributeId) {
return false;
}
client.log(JSON.stringify(response.body.attributes));
client.assert(response.status === 200);
client.assert(response.body.noteId == client.global.get("childNoteId"));
client.assert(response.body.attributes.length == 2);
client.assert(hasAttribute(response.body.attributes,
client.global.get("parentAttributeId")));
client.assert(hasAttribute(response.body.attributes,
client.global.get("childAttributeId")));
client.assert(hasAttribute(response.body.attributes, client.global.get("parentAttributeId")));
client.assert(hasAttribute(response.body.attributes, client.global.get("childAttributeId")));
%}