mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
feat: update to Angular 4.3 (#6483)
* feat: update to Angular 4.3 * Bumps the Angular requirement to 4.3. This is also a prerequisite to the Angular 5 update since we encountered the same errors there. * Refactors the sidenav not to use a `Promise.resolve` for toggling the initial animation, because it was making it impossible to flush the animations in unit tests. The new simplified approach uses a property to pass the animation state. * Fixes the nested menu test failures. * Fixes a "changed after checked" error in the autocomplete demo app. Relates to #6454. * fix: e2e failures
This commit is contained in:
committed by
Andrew Seguin
parent
1807c5b8f7
commit
66da5973db
@@ -76,7 +76,8 @@ describe('menu', () => {
|
||||
|
||||
it('should mirror classes on host to menu template in overlay', () => {
|
||||
page.trigger().click();
|
||||
expect(page.menu().getAttribute('class')).toContain('mat-menu-panel custom');
|
||||
expect(page.menu().getAttribute('class')).toContain('mat-menu-panel');
|
||||
expect(page.menu().getAttribute('class')).toContain('custom');
|
||||
});
|
||||
|
||||
describe('keyboard events', () => {
|
||||
|
||||
@@ -20,7 +20,9 @@ describe('sidenav', () => {
|
||||
|
||||
it('should close again', () => {
|
||||
element(by.buttonText('Open sidenav')).click();
|
||||
browser.sleep(50);
|
||||
element(by.buttonText('Open sidenav')).click();
|
||||
|
||||
expect(sidenav.isDisplayed()).toBeFalsy();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user