Skip to content

Commit

Permalink
Run flaky spec only on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
kiskoza committed Jul 6, 2024
1 parent ceb97f9 commit 50003de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/text-editor-component-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
Expand All @@ -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 () => {
Expand Down

0 comments on commit 50003de

Please sign in to comment.