Skip to content

Instantly share code, notes, and snippets.

@trikitrok
Created June 9, 2014 11:23
Show Gist options
  • Save trikitrok/93b30984200bb8fc0c52 to your computer and use it in GitHub Desktop.
Save trikitrok/93b30984200bb8fc0c52 to your computer and use it in GitHub Desktop.
it("removes a landing", function () {
element.all(by.css('.delete')).first().click();
TestTools.switchToAlertAndAccept(ptor); // <- the fix is now in a helper function
expect(
element.all(
by.repeater('landing in project.landings')).count()
).toBe(5);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment