add some test

This commit is contained in:
Kenny
2017-08-01 09:33:17 -07:00
parent 144c8b2eee
commit 3e212655ae

View File

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