Created
January 4, 2017 02:01
-
-
Save marcelmokos/053cd52d02ccc6484f43a66f1039b9f5 to your computer and use it in GitHub Desktop.
Page object pattern example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Homepage from "./pages/Homepage"; | |
const homepage = new Homepage(); | |
describe("homepage", () => { | |
describe("when on homepage", () => { | |
beforeAll(() => { | |
homepage.get(); | |
}); | |
it("then page should be displayed", () => { | |
expect(homepage.isDisplayed()).toBe(true); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment