From 3e212655ae0c41c89588778918985bac20611b3c Mon Sep 17 00:00:00 2001 From: Kenny Date: Tue, 1 Aug 2017 09:33:17 -0700 Subject: [PATCH] add some test --- .../initial-render/operations/store.js | 76 +++++++++---------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/test/e2e/scenarios/initial-render/operations/store.js b/test/e2e/scenarios/initial-render/operations/store.js index 691d2bf2..10dce20a 100644 --- a/test/e2e/scenarios/initial-render/operations/store.js +++ b/test/e2e/scenarios/initial-render/operations/store.js @@ -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")