add some test
This commit is contained in:
@@ -20,49 +20,49 @@ describe("render store api container", function(){
|
||||
afterEach(function (client, done) {
|
||||
done()
|
||||
})
|
||||
// it("test rendered store container", function(client){
|
||||
// apiWrapper.waitForElementVisible("@storeAPIWrapper", 5000)
|
||||
// .expect.element("@storeAPIWrapper").to.be.visible
|
||||
it("test rendered store container", function(client){
|
||||
apiWrapper.waitForElementVisible("@storeAPIWrapper", 5000)
|
||||
.expect.element("@storeAPIWrapper").to.be.visible
|
||||
|
||||
// client.end()
|
||||
// })
|
||||
// it("callapse store wrapper", function(client){
|
||||
// apiWrapper.waitForElementVisible("@storeAPIWrapper", 5000)
|
||||
// .click("@storeAPIWrapperBar")
|
||||
// .assert.cssClassNotPresent("@storeAPIWrapper", "is-open")
|
||||
client.end()
|
||||
})
|
||||
it("callapse store wrapper", function(client){
|
||||
apiWrapper.waitForElementVisible("@storeAPIWrapper", 5000)
|
||||
.click("@storeAPIWrapperBar")
|
||||
.assert.cssClassNotPresent("@storeAPIWrapper", "is-open")
|
||||
|
||||
// client.end()
|
||||
// })
|
||||
// it("render get /store/inventory api container", function (client) {
|
||||
// apiWrapper.waitForElementVisible("@storeOperationGetContainer", 5000)
|
||||
// .assert.containsText("@storeOperationGetTitle", "/store/inventory")
|
||||
// .click("@storeOperationGetCollpase")
|
||||
// .waitForElementVisible("@storeOperationGetCollapseContainer", 3000)
|
||||
// .click("@storeOperationGetTryBtn")
|
||||
// .waitForElementVisible("@storeOperationGetExecuteBtn", 1000)
|
||||
// .click("@storeOperationGetTryBtn")
|
||||
// .assert.cssClassNotPresent("@storeOperationGetTryBtn", "cancel")
|
||||
client.end()
|
||||
})
|
||||
it("render get /store/inventory api container", function (client) {
|
||||
apiWrapper.waitForElementVisible("@storeOperationGetContainer", 5000)
|
||||
.assert.containsText("@storeOperationGetTitle", "/store/inventory")
|
||||
.click("@storeOperationGetCollpase")
|
||||
.waitForElementVisible("@storeOperationGetCollapseContainer", 3000)
|
||||
.click("@storeOperationGetTryBtn")
|
||||
.waitForElementVisible("@storeOperationGetExecuteBtn", 1000)
|
||||
.click("@storeOperationGetTryBtn")
|
||||
.assert.cssClassNotPresent("@storeOperationGetTryBtn", "cancel")
|
||||
|
||||
// client.end()
|
||||
// })
|
||||
client.end()
|
||||
})
|
||||
|
||||
// it("Testing get /store/inventory api Mock data ", function (client) {
|
||||
// apiWrapper.waitForElementVisible("@storeOperationGetContainer", 5000)
|
||||
// .assert.containsText("@storeOperationGetTitle", "/store/inventory")
|
||||
// .click("@storeOperationGetCollpase")
|
||||
// .waitForElementVisible("@storeOperationGetCollapseContainer", 3000)
|
||||
// .click("@storeOperationGetTryBtn")
|
||||
// .waitForElementVisible("@storeOperationGetExecuteBtn", 1000)
|
||||
// .click("@storeOperationGetExecuteBtn")
|
||||
// .waitForElementVisible("@storeOperationResponseProps1")
|
||||
// .assert.containsText("@storeOperationResponseProps1", "0")
|
||||
// .assert.containsText("@storeOperationResponseProps2", "0")
|
||||
// .assert.containsText("@storeOperationResponseProps3", "0")
|
||||
// .click("@storeOperationGetTryBtn")
|
||||
// .assert.cssClassNotPresent("@storeOperationGetTryBtn", "cancel")
|
||||
it("Testing get /store/inventory api Mock data ", function (client) {
|
||||
apiWrapper.waitForElementVisible("@storeOperationGetContainer", 5000)
|
||||
.assert.containsText("@storeOperationGetTitle", "/store/inventory")
|
||||
.click("@storeOperationGetCollpase")
|
||||
.waitForElementVisible("@storeOperationGetCollapseContainer", 3000)
|
||||
.click("@storeOperationGetTryBtn")
|
||||
.waitForElementVisible("@storeOperationGetExecuteBtn", 1000)
|
||||
.click("@storeOperationGetExecuteBtn")
|
||||
.waitForElementVisible("@storeOperationResponseProps1")
|
||||
.assert.containsText("@storeOperationResponseProps1", "0")
|
||||
.assert.containsText("@storeOperationResponseProps2", "0")
|
||||
.assert.containsText("@storeOperationResponseProps3", "0")
|
||||
.click("@storeOperationGetTryBtn")
|
||||
.assert.cssClassNotPresent("@storeOperationGetTryBtn", "cancel")
|
||||
|
||||
// client.end()
|
||||
// })
|
||||
client.end()
|
||||
})
|
||||
|
||||
it("render post /store/order api container", function (client) {
|
||||
apiWrapper.waitForElementVisible("@storeOperationPostContainer")
|
||||
|
||||
Reference in New Issue
Block a user