Created
January 4, 2017 02:01
-
-
Save marcelmokos/ef516615163a9a9e0d2e8edc131c0844 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