Last active
June 30, 2024 14:38
-
-
Save trikitrok/619f079b2487487c8e30 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
it("removes a landing", function () { | |
element.all(by.css('.delete')).first().click(); | |
ptor.driver.switchTo().alert().then( // <- this fixes the problem | |
function (alert) { | |
alert.accept(); | |
}, | |
function (error) { | |
} | |
); | |
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