housekeeping: npm audit resolutions (via #5457)

* add `security-audit` script

* npm audit fix

* remove nyc

* nightwatch@1

this breaks the test suite, but it appears to have already regressed. leaving it for another day, TODO: open a backlog ticket

* add `security-audit` script

* disable mocha exclusivity

* update package-lock.json

* cypress@3.4.0

* `npm audit fix`

* @release-it/conventional-changelog@1.1.0

* release-it@12
This commit is contained in:
kyle
2019-07-18 22:02:24 -05:00
committed by GitHub
parent d542f98530
commit be5e057bfa
46 changed files with 3154 additions and 5028 deletions

View File

@@ -0,0 +1,2 @@
These tests are currently broken, and need to be either updated or migrated into
`../e2e-cypress`.

View File

@@ -125,6 +125,96 @@
}
],
"status": "available"
},
{
"id": 8,
"category": {
"id": 0,
"name": "string"
},
"name": "doggie",
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
},
{
"id": 9,
"category": {
"id": 0,
"name": "string"
},
"name": "doggie",
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
},
{
"id": 10,
"category": {
"id": 0,
"name": "string"
},
"name": "doggie",
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
},
{
"id": 11,
"category": {
"id": 0,
"name": "string"
},
"name": "doggie",
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
},
{
"id": 12,
"category": {
"id": 0,
"name": "string"
},
"name": "doggie",
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
}
]
}
}

View File

@@ -15,45 +15,17 @@
}
},
"selenium" : {
"start_process" : true,
"server_path" : "node_modules/selenium-server-standalone-jar/jar/selenium-server-standalone-3.12.0.jar",
"log_path" : "",
"host" : "127.0.0.1",
"port" : 4444,
"cli_args" : {
"webdriver.chrome.driver" : "node_modules/chromedriver/bin/chromedriver",
"webdriver.firefox.profile" : "",
"webdriver.ie.driver" : ""
}
"webdriver": {
"start_process": true,
"server_path": "node_modules/.bin/chromedriver",
"port": 9515
},
"test_settings" : {
"default" : {
"launch_url" : "http://localhost",
"selenium_port" : 4444,
"selenium_host" : "localhost",
"silent": true,
"screenshots" : {
"enabled" : false,
"path" : ""
},
"desiredCapabilities": {
"browserName": "chrome",
"marionette": true
}
},
"chrome" : {
"test_settings": {
"default": {
"desiredCapabilities": {
"browserName": "chrome"
}
},
"edge" : {
"desiredCapabilities": {
"browserName": "MicrosoftEdge"
}
}
}
}

View File

@@ -85,13 +85,13 @@ module.exports = {
}
},
apiWrapper: {
selector: "div.swagger-ui > div:nth-child(2) > div:nth-child(5) > section > div",
selector: "div.swagger-ui > div:nth-child(2) > div:nth-child(4) > section > div",
elements: {
petAPIWrapper: {
selector: "div.swagger-ui div:nth-child(5) > section > div > span:nth-child(1) > div"
selector: "div.swagger-ui div:nth-child(4) > section > div > span:nth-child(1) > div"
},
petAPIWrapperBar: {
selector: "div.swagger-ui div:nth-child(5) > section > div > span:nth-child(1) > div .opblock-tag"
selector: "div.swagger-ui div:nth-child(4) > section > div > span:nth-child(1) > div .opblock-tag"
},
/**
@@ -319,10 +319,10 @@ module.exports = {
* ***********Store************
*/
storeAPIWrapper: {
selector: "div.swagger-ui div:nth-child(5) > section > div > span:nth-child(2) > div"
selector: "div.swagger-ui div:nth-child(4) > section > div > span:nth-child(2) > div"
},
storeAPIWrapperBar: {
selector: "div.swagger-ui div:nth-child(5) > section > div > span:nth-child(2) > div .opblock-tag"
selector: "div.swagger-ui div:nth-child(4) > section > div > span:nth-child(2) > div .opblock-tag"
},
/**
* Get /store/inventory
@@ -418,10 +418,10 @@ module.exports = {
* *********User**************
*/
userAPIWrapper: {
selector: "div.swagger-ui div:nth-child(5) > section > div > span:nth-child(3) > div"
selector: "div.swagger-ui div:nth-child(4) > section > div > span:nth-child(3) > div"
},
userAPIWrapperBar: {
selector: "div.swagger-ui div:nth-child(5) > section > div > span:nth-child(3) > div .opblock-tag"
selector: "div.swagger-ui div:nth-child(4) > section > div > span:nth-child(3) > div .opblock-tag"
},
/**
* Put /user/login

View File

@@ -6,11 +6,9 @@ describe("bug #4196: HTTP basic auth credential retention", function () {
.page.main()
client.waitForElementVisible(".download-url-input:not([disabled])", 5000)
.pause(80)
.clearValue(".download-url-input")
.setValue(".download-url-input", "http://localhost:3230/test-specs/bugs/4196.yaml")
.click("button.download-url-button")
.pause(1000)
done()
})
@@ -36,7 +34,7 @@ describe("bug #4196: HTTP basic auth credential retention", function () {
.waitForElementVisible(`section>input[type="password"]`, 5000)
.setValue(`section>input[type="password"]`, "bbb") // Set password
.click(".auth-btn-wrapper button:nth-child(1)") // Click Authorize
.pause(5000)
.pause(1000)
.assert.containsText("div.wrapper:nth-child(4)>code", "bbb")
client.end()

View File

@@ -6,7 +6,6 @@ describe("bug #4374: OAS3 parameters should be visibly validated in Try-It-Out",
.page.main()
client.waitForElementVisible(".download-url-input:not([disabled])", 10000)
.pause(1000)
.clearValue(".download-url-input")
.setValue(".download-url-input", "/test-specs/bugs/4374.yaml")
.click("button.download-url-button")

View File

@@ -6,7 +6,6 @@ describe("bug #4409: operationId normalization and layout tracking", function ()
.page.main()
client.waitForElementVisible(".download-url-input:not([disabled])", 5000)
.pause(5000)
.clearValue(".download-url-input")
.setValue(".download-url-input", "http://localhost:3230/test-specs/bugs/4409.yaml")
.click("button.download-url-button")

View File

@@ -6,7 +6,6 @@ describe("bug #4445: callback-via-$ref rendering", function () {
.page.main()
client.waitForElementVisible(".download-url-input:not([disabled])", 5000)
.pause(5000)
.clearValue(".download-url-input")
.setValue(".download-url-input", "http://localhost:3230/test-specs/bugs/4445.yaml")
.click("button.download-url-button")

View File

@@ -6,7 +6,6 @@ describe("bug #4485: operation metadata storage when referenced via path item $r
.page.main()
client.waitForElementVisible(".download-url-input:not([disabled])", 5000)
.pause(2000)
.clearValue(".download-url-input")
.setValue(".download-url-input", "http://localhost:3230/test-specs/bugs/4485/main.yaml")
.click("button.download-url-button")

View File

@@ -6,7 +6,6 @@ describe("bug #4536: model name consistency", function () {
.page.main()
client.waitForElementVisible(".download-url-input:not([disabled])", 5000)
.pause(2000)
.clearValue(".download-url-input")
.setValue(".download-url-input", "http://localhost:3230/test-specs/bugs/4536.yaml")
.click("button.download-url-button")

View File

@@ -6,7 +6,6 @@ describe("bug #4587: clearing header param values", function () {
.page.main()
client.waitForElementVisible(".download-url-input:not([disabled])", 5000)
.pause(2000)
.clearValue(".download-url-input")
.setValue(".download-url-input", "http://localhost:3230/test-specs/bugs/4587.yaml")
.click("button.download-url-button")

View File

@@ -6,7 +6,6 @@ describe("bug #4756: enum initial values", function () {
.page.main()
client.waitForElementVisible(".download-url-input:not([disabled])", 5000)
.pause(2000)
.clearValue(".download-url-input")
.setValue(".download-url-input", "http://localhost:3230/test-specs/bugs/4756.yaml")
.click("button.download-url-button")

View File

@@ -7,7 +7,6 @@ describe("render informationContainer", function () {
.url("localhost:3230")
.page.main()
client.waitForElementVisible(".download-url-input:not([disabled])", 5000)
.pause(5000)
.clearValue(".download-url-input")
.setValue(".download-url-input", "http://localhost:3230/test-specs/petstore.json")
.click("button.download-url-button")
@@ -45,4 +44,4 @@ describe("render informationContainer", function () {
client.end()
})
})
})

View File

@@ -6,7 +6,6 @@ describe("Render Model Wrapper", function () {
.url("localhost:3230")
.page.main()
client.waitForElementVisible(".download-url-input:not([disabled])", 5000)
.pause(5000)
.clearValue(".download-url-input")
.setValue(".download-url-input", "http://localhost:3230/test-specs/petstore.json")
.click("button.download-url-button")

View File

@@ -7,7 +7,6 @@ describe("render pet api container", function () {
.page.main()
client.waitForElementVisible(".download-url-input:not([disabled])", 5000)
.pause(5000)
.clearValue(".download-url-input")
.setValue(".download-url-input", "http://localhost:3230/test-specs/callbacks.openapi.yaml")
.click("button.download-url-button")

View File

@@ -7,7 +7,6 @@ describe("render pet api container", function () {
.page.main()
client.waitForElementVisible(".download-url-input:not([disabled])", 5000)
.pause(5000)
.clearValue(".download-url-input")
.setValue(".download-url-input", "http://localhost:3230/test-specs/petstore.openapi.yaml")
.click("button.download-url-button")

View File

@@ -7,7 +7,6 @@ describe("render pet api container", function () {
.page.main()
client.waitForElementVisible(".download-url-input:not([disabled])", 5000)
.pause(5000)
.clearValue(".download-url-input")
.setValue(".download-url-input", "http://localhost:3230/test-specs/petstore.json")
.click("button.download-url-button")

View File

@@ -7,7 +7,6 @@ describe("render store api container", function(){
.page.main()
client.waitForElementVisible(".download-url-input:not([disabled])", 5000)
.pause(3000)
.clearValue(".download-url-input")
.setValue(".download-url-input", "http://localhost:3230/test-specs/petstore.json")
.click("button.download-url-button")
@@ -110,4 +109,4 @@ describe("render store api container", function(){
client.end()
})
})
})

View File

@@ -7,7 +7,6 @@ describe("render user api container", function(){
.page.main()
client.waitForElementVisible(".download-url-input:not([disabled])", 5000)
.pause(5000)
.clearValue(".download-url-input")
.setValue(".download-url-input", "http://localhost:3230/test-specs/petstore.json")
.click("button.download-url-button")
@@ -91,4 +90,4 @@ describe("render user api container", function(){
client.end()
})
})
})

View File

@@ -10,7 +10,6 @@ describe("Render scheme", function () {
schemeContainer = mainPage.section.schemeContainer
client.waitForElementVisible(".download-url-input:not([disabled])", 5000)
.pause(5000)
.clearValue(".download-url-input")
.setValue(".download-url-input", "http://localhost:3230/test-specs/petstore.json")
.click("button.download-url-button")
@@ -49,4 +48,4 @@ describe("Render scheme", function () {
client.end()
})
})
})

View File

@@ -24,7 +24,6 @@ describe("initial render", function () {
topbar = mainPage.section.topbar
client.waitForElementVisible(".download-url-input:not([disabled])", 10000)
.pause(5000)
.clearValue(".download-url-input")
.setValue(".download-url-input", "http://localhost:3230/test-specs/petstore.json")
.click("button.download-url-button")