diff --git a/test/e2e/v2.js b/test/e2e/v2.js index f7f540c1..febe5b84 100644 --- a/test/e2e/v2.js +++ b/test/e2e/v2.js @@ -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() { servers.close(); }); diff --git a/test/specs/v2/petstore.json b/test/specs/v2/petstore.json index dd50c3e9..f733e784 100644 --- a/test/specs/v2/petstore.json +++ b/test/specs/v2/petstore.json @@ -842,7 +842,7 @@ "xml": { "name": "category" }, - "$ref": "Category" + "$ref": "#/definitions/Category" }, "name": { "type": "string", @@ -868,7 +868,7 @@ "wrapped": true }, "items": { - "$ref": "Tag" + "$ref": "#/definitions/Tag" } }, "status": {