Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. <div>
  2. <a>
  3. <div>
  4. <div>
  5. <span>
  6. <i><img src="res/someImg.png"></i>
  7. </span>
  8. </div>
  9. <div>
  10. ...
  11. </div>
  12. <div>
  13. ...
  14. </div>
  15. </div>
  16. </a>
  17. </div>
  18.  
  19. it('should render an icon in agent list', function () {
  20. var row = element.all(by.repeater('row in renderedRows')).get(3);
  21. expect(row).not.toEqual(null); //pass
  22. expect(row.element(by.css('img')).getAttribute('src').getText()).toMatch(/someImg.png/);//fail with null
  23. expect(row.element(by.css('span')).outerHTML).toBe('<i><img src="res/someImg.png"></i>'); //fails
  24. expect(row.element(by.css('i')).innerHTML).toBe('<img src="res/someImg.png">'); //fails
  25.  
  26. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement