I am working on testing e2e. I have a pop confirmation that does not exist on the page until I click the button. After creating a confirmation popup, I get the text from the item.
After that, I click the "OK" button, which causes the confirmation to be removed from the DOM, as well as adding a new element to the DOM with the value that I received earlier.
the problem is that getText () returns a promise, by the time I do the comparison, the first element is missing from the screen and the test fails.
if I expect that during the confirmation pop-up on the screen, I can see the text of the confirmation pop-up element.
How does Jasmine expect () to resolve a promise?
early
source share