Avoid test failure due to timing

Signed-off-by: Antonio Scandurra <as-cii@github.com>
Signed-off-by: Max Brunsfeld <maxbrunsfeld@github.com>
This commit is contained in:
Nathan Sobo
2016-07-28 17:34:57 -06:00
committed by Max Brunsfeld
parent b256a1450a
commit 43caead392

View File

@@ -1262,6 +1262,7 @@ describe('TextEditorComponent', function () {
it('positions cursors correctly after character widths are changed via a stylesheet change', async function () {
component.setFontFamily('sans-serif')
await nextViewUpdatePromise()
editor.setCursorScreenPosition([0, 16])
await nextViewUpdatePromise()