Skip to content

Commit 09e7efd

Browse files
authored
fix: flaky settings_spec test (#18979)
1 parent 7abcbc0 commit 09e7efd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

packages/desktop-gui/cypress/integration/settings_spec.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -818,12 +818,10 @@ describe('Settings', () => {
818818
})
819819
})
820820

821-
it('loads preferred editor and available editors', function () {
822-
expect(this.ipc.getUserEditor).to.be.called
823-
})
824-
825-
it('shows spinner', () => {
826-
cy.get('.loading-editors')
821+
it('loads preferred editor, available editors and shows spinner', () => {
822+
cy.get('.loading-editors').then(function () {
823+
expect(this.ipc.getUserEditor).to.be.called
824+
})
827825
})
828826

829827
describe('when editors load with preferred editor', () => {

0 commit comments

Comments
 (0)