Skip to content

help([mat-sidenav-container]): [Autosize is blocking my Protractor tests] #18894

Closed
@manuman94

Description

@manuman94

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:

  1. Use a mat-sidenav-container with autosize attribute
  2. 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

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/sidenavtroubleshootingThis issue is not reporting an issue, but just asking for help

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions