Wait for window resize to take effect in text editor component spec

This commit is contained in:
Max Brunsfeld
2016-01-26 13:26:12 -08:00
parent 9db33e5f8e
commit f4be23049d

View File

@@ -2155,6 +2155,11 @@ describe('TextEditorComponent', function () {
width: windowWidth,
height: windowHeight
})
await conditionPromise(function () {
return window.innerWidth === windowWidth
})
component.measureDimensions()
component.measureWindowSize()
await nextViewUpdatePromise()