Created
January 27, 2017 11:20
-
-
Save sawo/15a4d7e7ef889f8c443442fe4be09c84 to your computer and use it in GitHub Desktop.
Angular 1 hello world protractor test
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
describe('angularjs hello world app testing', function() { | |
it('H1 tag should contain: "Hello Wrold!"', function() { | |
browser.get('http://localhost:8080/index.html'); | |
element(by.model('name')).sendKeys('world'); | |
var headerElement = element(by.id('title')); | |
headerElement.getText().then(function(text) { | |
expect(text).toEqual('Hello world!'); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment