Browse Source

1.json -> petstore.json

bubble
Kyle Shockey 7 years ago
parent
commit
49bb139736
No known key found for this signature in database GPG Key ID: DC20D559FFBC0D36
9 changed files with 27 additions and 9 deletions
  1. +18
    -0
      test/e2e/db.json
  2. +3
    -3
      test/e2e/scenarios/informationContainer.js
  3. +1
    -1
      test/e2e/scenarios/models.js
  4. +1
    -1
      test/e2e/scenarios/operations/pet.js
  5. +1
    -1
      test/e2e/scenarios/operations/store.js
  6. +1
    -1
      test/e2e/scenarios/operations/user.js
  7. +1
    -1
      test/e2e/scenarios/schemeContainer.js
  8. +1
    -1
      test/e2e/scenarios/topbar.js
  9. +0
    -0
      test/e2e/specs/petstore.json

+ 18
- 0
test/e2e/db.json View File

@@ -107,6 +107,24 @@
}
],
"status": "available"
},
{
"id": 7,
"category": {
"id": 0,
"name": "string"
},
"name": "doggie",
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
}
]
}

+ 3
- 3
test/e2e/scenarios/informationContainer.js View File

@@ -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/")


+ 1
- 1
test/e2e/scenarios/models.js View File

@@ -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)



+ 1
- 1
test/e2e/scenarios/operations/pet.js View File

@@ -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)



+ 1
- 1
test/e2e/scenarios/operations/store.js View File

@@ -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)



+ 1
- 1
test/e2e/scenarios/operations/user.js View File

@@ -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)



+ 1
- 1
test/e2e/scenarios/schemeContainer.js View File

@@ -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)



+ 1
- 1
test/e2e/scenarios/topbar.js View File

@@ -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)



test/e2e/specs/1.json → test/e2e/specs/petstore.json View File


Loading…
Cancel
Save