Browse Source

initialize mainPage variable (for linter)

bubble
Kyle Shockey 7 years ago
parent
commit
ed6a4fffb9
No known key found for this signature in database GPG Key ID: DC20D559FFBC0D36
1 changed files with 8 additions and 8 deletions
  1. +8
    -8
      test/e2e/scenarios/models.js

+ 8
- 8
test/e2e/scenarios/models.js View File

@@ -1,5 +1,5 @@
describe("Render Model Wrapper", function () { describe("Render Model Wrapper", function () {
let modelWrapper
let modelWrapper, mainPage


beforeEach(function (client, done) { beforeEach(function (client, done) {
mainPage = client mainPage = client
@@ -37,7 +37,7 @@ describe("Render Model Wrapper", function () {
modelWrapper.waitForElementVisible("@orderModel") modelWrapper.waitForElementVisible("@orderModel")
.click("@orderModelCallapse") .click("@orderModelCallapse")
.assert.cssClassNotPresent("@orderModelCallapse", "callapsed") .assert.cssClassNotPresent("@orderModelCallapse", "callapsed")
client.end() client.end()
}) })


@@ -45,35 +45,35 @@ describe("Render Model Wrapper", function () {
modelWrapper.waitForElementVisible("@categoryModel") modelWrapper.waitForElementVisible("@categoryModel")
.click("@categoryModelCallapse") .click("@categoryModelCallapse")
.assert.cssClassNotPresent("@categoryModelCallapse", "callapsed") .assert.cssClassNotPresent("@categoryModelCallapse", "callapsed")
client.end() client.end()
}) })
it("Testing user model", function(client){ it("Testing user model", function(client){
modelWrapper.waitForElementVisible("@userModel") modelWrapper.waitForElementVisible("@userModel")
.click("@userModelCallapse") .click("@userModelCallapse")
.assert.cssClassNotPresent("@userModelCallapse", "callapsed") .assert.cssClassNotPresent("@userModelCallapse", "callapsed")
client.end() client.end()
}) })
it("Testing tag model", function(client){ it("Testing tag model", function(client){
modelWrapper.waitForElementVisible("@tagModel") modelWrapper.waitForElementVisible("@tagModel")
.click("@tagModelCallapse") .click("@tagModelCallapse")
.assert.cssClassNotPresent("@tagModelCallapse", "callapsed") .assert.cssClassNotPresent("@tagModelCallapse", "callapsed")
client.end() client.end()
}) })
it("Testing pet model", function(client){ it("Testing pet model", function(client){
modelWrapper.waitForElementVisible("@petModel") modelWrapper.waitForElementVisible("@petModel")
.click("@petModelCallapse") .click("@petModelCallapse")
.assert.cssClassNotPresent("@petModelCallapse", "callapsed") .assert.cssClassNotPresent("@petModelCallapse", "callapsed")
client.end() client.end()
}) })
it("Testing apiResponse model", function(client){ it("Testing apiResponse model", function(client){
modelWrapper.waitForElementVisible("@apiResponseModel") modelWrapper.waitForElementVisible("@apiResponseModel")
.click("@apiResponseModelCallapse") .click("@apiResponseModelCallapse")
.assert.cssClassNotPresent("@apiResponseModelCallapse", "callapsed") .assert.cssClassNotPresent("@apiResponseModelCallapse", "callapsed")
client.end() client.end()
}) })
})
})

Loading…
Cancel
Save