diff --git a/server-ce/test/helpers/project.ts b/server-ce/test/helpers/project.ts index 107cca0d95..eb64bf37ce 100644 --- a/server-ce/test/helpers/project.ts +++ b/server-ce/test/helpers/project.ts @@ -210,7 +210,7 @@ export function openFile(fileName: string, waitFor: string) { .click({ force: true }) // wait until we've switched to the selected file - cy.findByText('Loading…').should('not.exist') + cy.findByRole('status').should('not.exist') cy.findByText(waitFor) } @@ -230,7 +230,10 @@ export function createNewFile() { .click({ force: true }) // wait until we've switched to the newly created empty file - cy.findByText('Loading…').should('not.exist') + cy.findByRole('textbox', { name: 'Source Editor editing' }).within(() => { + cy.findByRole('status').should('not.exist') + cy.get('.cm-line').should('have.length', 1) + }) cy.get('.cm-line').should('have.length', 1) return fileName diff --git a/services/web/frontend/js/features/editor-left-menu/components/settings/settings-menu-select.tsx b/services/web/frontend/js/features/editor-left-menu/components/settings/settings-menu-select.tsx index 9bba51e28a..30d15fe1ad 100644 --- a/services/web/frontend/js/features/editor-left-menu/components/settings/settings-menu-select.tsx +++ b/services/web/frontend/js/features/editor-left-menu/components/settings/settings-menu-select.tsx @@ -2,8 +2,8 @@ import OLFormGroup from '@/shared/components/ol/ol-form-group' import OLFormLabel from '@/shared/components/ol/ol-form-label' import OLFormSelect from '@/shared/components/ol/ol-form-select' import { ChangeEventHandler, useCallback, useEffect, useRef } from 'react' -import { Spinner } from 'react-bootstrap' import { useEditorLeftMenuContext } from '@/features/editor-left-menu/components/editor-left-menu-context' +import OLSpinner from '@/shared/components/ol/ol-spinner' type PossibleValue = string | number | boolean @@ -82,14 +82,7 @@ export default function SettingsMenuSelect({ > {label} {loading ? ( -

-

+ ) : ( - {processing && ( -
- {t('layout_processing')} -
- )} +
+ {processing ? t('layout_processing') : ''} +
{processing ? ( -