Created
January 27, 2017 11:40
-
-
Save sawo/b2a1e9de59cbd7db258cd33073e486e4 to your computer and use it in GitHub Desktop.
Protractor test for Hello World Angular app that uses page object
This file contains hidden or 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
// assuming that our page object is saved to a separate file: | |
var page = require('./helloworld.pageobject.js'); | |
describe('angularjs hello world app testing', function() { | |
it('H1 tag should contain: "Hello Wrold!"', function() { | |
page.get(); | |
page.setName('world'); | |
page.titleShouldHaveText('Hello world!'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment