diff --git a/test/e2e/db.json b/test/e2e/db.json index 3ea5905d..e33ceaad 100644 --- a/test/e2e/db.json +++ b/test/e2e/db.json @@ -107,6 +107,24 @@ } ], "status": "available" + }, + { + "id": 7, + "category": { + "id": 0, + "name": "string" + }, + "name": "doggie", + "photoUrls": [ + "string" + ], + "tags": [ + { + "id": 0, + "name": "string" + } + ], + "status": "available" } ] } \ No newline at end of file diff --git a/test/e2e/scenarios/informationContainer.js b/test/e2e/scenarios/informationContainer.js index f7fce886..c5af4148 100644 --- a/test/e2e/scenarios/informationContainer.js +++ b/test/e2e/scenarios/informationContainer.js @@ -9,7 +9,7 @@ describe("render informationContainer", function () { client.waitForElementVisible(".download-url-input", 5000) .pause(5000) .clearValue(".download-url-input") - .setValue(".download-url-input", "http://localhost:3200/test-specs/1.json") + .setValue(".download-url-input", "http://localhost:3200/test-specs/petstore.json") .click("button.download-url-button") .pause(1000) @@ -29,8 +29,8 @@ describe("render informationContainer", function () { .assert.containsText("@title", "Swagger Petstore") .assert.containsText("@version", "1.0.0") .assert.containsText("@baseUrl", "[ Base URL: localhost:3204/ ]") - .assert.attributeEquals("@mainUrl", "href", "http://localhost:3200/test-specs/1.json") - .assert.containsText("@mainUrlContent", "http://localhost:3200/test-specs/1.json") + .assert.attributeEquals("@mainUrl", "href", "http://localhost:3200/test-specs/petstore.json") + .assert.containsText("@mainUrlContent", "http://localhost:3200/test-specs/petstore.json") .assert.containsText("@description", "This is a sample server Petstore server. You can find out more about Swagger at http://swagger.io or on irc.freenode.net, #swagger. For this sample, you can use the api key special-key to test the authorization filters.") .assert.attributeEquals("@swaggerUrl", "href", "http://swagger.io/") .assert.attributeEquals("@swaggerircUrl", "href", "http://swagger.io/irc/") diff --git a/test/e2e/scenarios/models.js b/test/e2e/scenarios/models.js index e5c93b7f..8f9e72f8 100644 --- a/test/e2e/scenarios/models.js +++ b/test/e2e/scenarios/models.js @@ -8,7 +8,7 @@ describe("Render Model Wrapper", function () { client.waitForElementVisible(".download-url-input", 5000) .pause(5000) .clearValue(".download-url-input") - .setValue(".download-url-input", "http://localhost:3200/test-specs/1.json") + .setValue(".download-url-input", "http://localhost:3200/test-specs/petstore.json") .click("button.download-url-button") .pause(1000) diff --git a/test/e2e/scenarios/operations/pet.js b/test/e2e/scenarios/operations/pet.js index 9ac397b6..441004c5 100644 --- a/test/e2e/scenarios/operations/pet.js +++ b/test/e2e/scenarios/operations/pet.js @@ -9,7 +9,7 @@ describe("render pet api container", function () { client.waitForElementVisible(".download-url-input", 5000) .pause(5000) .clearValue(".download-url-input") - .setValue(".download-url-input", "http://localhost:3200/test-specs/1.json") + .setValue(".download-url-input", "http://localhost:3200/test-specs/petstore.json") .click("button.download-url-button") .pause(1000) diff --git a/test/e2e/scenarios/operations/store.js b/test/e2e/scenarios/operations/store.js index 44a50ee3..7dbcbc24 100644 --- a/test/e2e/scenarios/operations/store.js +++ b/test/e2e/scenarios/operations/store.js @@ -9,7 +9,7 @@ describe("render store api container", function(){ client.waitForElementVisible(".download-url-input", 5000) .pause(3000) .clearValue(".download-url-input") - .setValue(".download-url-input", "http://localhost:3200/test-specs/1.json") + .setValue(".download-url-input", "http://localhost:3200/test-specs/petstore.json") .click("button.download-url-button") .pause(1000) diff --git a/test/e2e/scenarios/operations/user.js b/test/e2e/scenarios/operations/user.js index 8dfd106f..e84984b7 100644 --- a/test/e2e/scenarios/operations/user.js +++ b/test/e2e/scenarios/operations/user.js @@ -9,7 +9,7 @@ describe("render user api container", function(){ client.waitForElementVisible(".download-url-input", 5000) .pause(5000) .clearValue(".download-url-input") - .setValue(".download-url-input", "http://localhost:3200/test-specs/1.json") + .setValue(".download-url-input", "http://localhost:3200/test-specs/petstore.json") .click("button.download-url-button") .pause(1000) diff --git a/test/e2e/scenarios/schemeContainer.js b/test/e2e/scenarios/schemeContainer.js index 3edafc6e..51a309b1 100644 --- a/test/e2e/scenarios/schemeContainer.js +++ b/test/e2e/scenarios/schemeContainer.js @@ -12,7 +12,7 @@ describe("Render scheme", function () { client.waitForElementVisible(".download-url-input", 5000) .pause(5000) .clearValue(".download-url-input") - .setValue(".download-url-input", "http://localhost:3200/test-specs/1.json") + .setValue(".download-url-input", "http://localhost:3200/test-specs/petstore.json") .click("button.download-url-button") .pause(1000) diff --git a/test/e2e/scenarios/topbar.js b/test/e2e/scenarios/topbar.js index 52bda97d..d7a17efe 100644 --- a/test/e2e/scenarios/topbar.js +++ b/test/e2e/scenarios/topbar.js @@ -26,7 +26,7 @@ describe("initial render", function () { client.waitForElementVisible(".download-url-input", 10000) .pause(5000) .clearValue(".download-url-input") - .setValue(".download-url-input", "http://localhost:3200/test-specs/1.json") + .setValue(".download-url-input", "http://localhost:3200/test-specs/petstore.json") .click("button.download-url-button") .pause(1000) diff --git a/test/e2e/specs/1.json b/test/e2e/specs/petstore.json similarity index 100% rename from test/e2e/specs/1.json rename to test/e2e/specs/petstore.json