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