While browsing through Stack Overflow, I stumbled upon this response in a discussion about Protractor tests and asynchronous solutions:
'AFAIK expect waits internally for the related promises.'
I have tried looking through the official Protractor documentation to confirm this information, but haven't had much success. Can anyone guide me to the specific section in the documentation where this is mentioned?
If this statement holds true, it could greatly simplify my workload! With over two hundred tests on hand, I am currently modifying such calls as:
expect(parentDialog.getAttribute('class')).toContain('k-window-maximized');
To follow this pattern instead:
parentDialog.getAttribute('class').then(function(cls) {
expect(cls).toContain('k-window-maximized');
});