Skip to content

Instantly share code, notes, and snippets.

@sawo
Created January 27, 2017 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sawo/b2a1e9de59cbd7db258cd33073e486e4 to your computer and use it in GitHub Desktop.
Save sawo/b2a1e9de59cbd7db258cd33073e486e4 to your computer and use it in GitHub Desktop.
Protractor test for Hello World Angular app that uses page object
// 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