From 50003deca1217267cfee77e4c425355f2ec871c1 Mon Sep 17 00:00:00 2001 From: Koza Date: Sun, 16 Jun 2024 17:18:59 +0200 Subject: [PATCH] Run flaky spec only on linux --- spec/text-editor-component-spec.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spec/text-editor-component-spec.js b/spec/text-editor-component-spec.js index 41191b88c8..7d5353f0f9 100644 --- a/spec/text-editor-component-spec.js +++ b/spec/text-editor-component-spec.js @@ -5624,7 +5624,9 @@ describe('TextEditorComponent', () => { expect(component.getScrollTopRow()).toBe(4); }); - it('gracefully handles the editor being hidden after a styling change', async () => { + it('gracefully handles the editor being hidden after a styling change', async (done) => { + jasmine.filterByPlatform({only: ['linux']}, done); + const { component, element } = buildComponent({ autoHeight: false }); @@ -5633,6 +5635,8 @@ describe('TextEditorComponent', () => { TextEditor.didUpdateStyles(); element.style.display = 'none'; await component.getNextUpdatePromise(); + + done(); }); it('does not throw an exception when the editor is soft-wrapped and changing the font size changes also the longest screen line', async () => {