Skip to content
This repository has been archived by the owner on Jan 7, 2022. It is now read-only.

Commit

Permalink
Add failing test for #57
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Smyth committed Jan 26, 2017
1 parent eb09bf1 commit 375e1e6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/protractor/Popup.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,11 @@ describe('On Popup Page: ', () => {
page.showPopup();
expect(page.getPopups().count()).toBe(1);
});

it('closes popup when comment is moused out', () => {
page.showPopup();
expect(page.getPopups().count()).toBe(1);
page.hidePopup();
expect(page.getPopups().count()).toBe(0);
});
});
4 changes: 4 additions & 0 deletions test/protractor/popup-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ class PopupPage {
browser.actions().mouseMove($('span[popover]'), { x: 5, y: 5 }).perform();
}

hidePopup() {
browser.actions().mouseMove($('span[popover]'), { x: -50, y: -50 }).perform();
}

getComments() {
return element.all(by.css('span[popover]'));
}
Expand Down

0 comments on commit 375e1e6

Please sign in to comment.