Last active
April 28, 2017 21:40
-
-
Save cnishina/aeba4c496fa6ca76c930777cae2f0f2e to your computer and use it in GitHub Desktop.
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
fit('with filter: should find existing contact "Craig Service"', () => { | |
let tbody = element(by.tagName('tbody')); | |
let trs = tbody.all(by.tagName('tr')); | |
let craigService = trs.filter((elem, index) => { | |
return elem.all(by.tagName('td')).get(1).getText().then(text => { | |
return text === 'Craig Service'; | |
}); | |
}); | |
expect(craigService.count()).toBeGreaterThan(0); | |
expect(craigService.all(by.tagName('td')).get(2).getText()).toBe('[email protected]'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment