diff --git a/test/e2e/v2.js b/test/e2e/v2.js index 985d5f23..863d35bb 100644 --- a/test/e2e/v2.js +++ b/test/e2e/v2.js @@ -105,6 +105,14 @@ describe('swagger 2.0 spec tests', function (done) { }); }); + it('should find the pet resource description', function(done){ + var locator = webdriver.By.xpath("//div[contains(., 'Everything about your Pets')]"); + driver.findElements(locator).then(function (elements) { + expect(elements.length).to.not.equal(0); + done(); + }); + }); + it('should find the user link', function(done){ var locator = webdriver.By.xpath("//*[@data-id='user']"); driver.isElementPresent(locator).then(function (isPresent) { diff --git a/test/specs/v2/petstore.json b/test/specs/v2/petstore.json index 94d78fd3..dd50c3e9 100644 --- a/test/specs/v2/petstore.json +++ b/test/specs/v2/petstore.json @@ -20,6 +20,28 @@ "schemes": [ "http" ], + "tags": [ + { + "name": "user", + "description": "Operations about user" + }, + { + "name": "store", + "description": "Access to Petstore orders", + "externalDocs": { + "description": "Find out more", + "url": "http://swagger.io" + } + }, + { + "name": "pet", + "description": "Everything about your Pets", + "externalDocs": { + "description": "Find out more", + "url": "http://swagger.io" + } + } + ], "paths": { "/pet": { "post": {