e2e test for jsoneditor

This commit is contained in:
laurent lepinay
2015-03-11 05:37:14 -07:00
parent eb390ffca2
commit bfca6020d2
2 changed files with 12 additions and 2 deletions

View File

@@ -111,6 +111,16 @@ describe('swagger 2.0 spec tests', function (done) {
}); });
}); });
["root.id","root.username","root.firstName","root.lastName", "root.email", "root.password", "root.phone", "root.userStatus"]
.forEach(function (id) {
it('should find a jsoneditor for user post with field: ' + id, function (done) {
var locator = webdriver.By.xpath("//*[@id='user_createUser']//*[@data-schemapath='"+id+"']");
driver
.wait(webdriver.until.elementLocated(locator),2000)
.then(function(el) { done(); });
});
});
after(function() { after(function() {
servers.close(); servers.close();
}); });

View File

@@ -842,7 +842,7 @@
"xml": { "xml": {
"name": "category" "name": "category"
}, },
"$ref": "Category" "$ref": "#/definitions/Category"
}, },
"name": { "name": {
"type": "string", "type": "string",
@@ -868,7 +868,7 @@
"wrapped": true "wrapped": true
}, },
"items": { "items": {
"$ref": "Tag" "$ref": "#/definitions/Tag"
} }
}, },
"status": { "status": {