diff --git a/packages/desktop-gui/cypress/integration/settings_spec.js b/packages/desktop-gui/cypress/integration/settings_spec.js index ab427bd5c38..e799e381a6f 100644 --- a/packages/desktop-gui/cypress/integration/settings_spec.js +++ b/packages/desktop-gui/cypress/integration/settings_spec.js @@ -818,12 +818,10 @@ describe('Settings', () => { }) }) - it('loads preferred editor and available editors', function () { - expect(this.ipc.getUserEditor).to.be.called - }) - - it('shows spinner', () => { - cy.get('.loading-editors') + it('loads preferred editor, available editors and shows spinner', () => { + cy.get('.loading-editors').then(function () { + expect(this.ipc.getUserEditor).to.be.called + }) }) describe('when editors load with preferred editor', () => {