Closed
Description
What are you trying to do?
I'm trying to execute e2e tests with Protractor in a project with a mat-sidenav-container with the autosize
attribute.
What troubleshooting steps have you tried?
The main problem is that waitForAngular() function that Protractor uses frequently does not end until the Angular Zone has ended all tasks. Autosize is making my protractor waitForAngular() function to be waiting until its timeout. When I remove the autosize parameter my tests are working again (and waitForAngular() resolves).
I'm using Angular v8.0.3 and Angular Material v8.0.1, is this solved in a later release?
Reproduction
Steps to reproduce:
- Use a mat-sidenav-container with autosize attribute
- Run a simple Protractor test that use waitForAngular(). Example:
browser.getCurrentUrl().then((url) => {
expect(url).toContain('mydomain.com');
});
This code is waiting for Angular.
Environment
- Angular: 8.0.3
- CDK/Material: 8.0.1
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Ubuntu 18, Windows