mirror of
https://github.com/atom/atom.git
synced 2026-02-02 18:55:17 -05:00
Wait for window resize to take effect in text editor component spec
This commit is contained in:
@@ -2155,6 +2155,11 @@ describe('TextEditorComponent', function () {
|
||||
width: windowWidth,
|
||||
height: windowHeight
|
||||
})
|
||||
|
||||
await conditionPromise(function () {
|
||||
return window.innerWidth === windowWidth
|
||||
})
|
||||
|
||||
component.measureDimensions()
|
||||
component.measureWindowSize()
|
||||
await nextViewUpdatePromise()
|
||||
|
||||
Reference in New Issue
Block a user