Ghost/ghost/admin/tests/acceptance/editor/lexical-test.js
Kevin Ansfield fa0b1c607b
Deleted all Admin code relating to the old editor (#18580)
no issue

- removed labs flag
- removed main editor component and all associated components
- switched usage of `<KoenigBasicHtmlInput>` and `<KoenigBasicHtmlTextarea>` over to use plain `textarea`, the only uses were in settings modals that have been replaced in AdminX
- cleaned up unused editor CSS
2023-10-12 13:17:39 +01:00

27 lines
887 B
JavaScript

import loginAsRole from '../../helpers/login-as-role';
import {currentURL} from '@ember/test-helpers';
import {expect} from 'chai';
import {setupApplicationTest} from 'ember-mocha';
import {setupMirage} from 'ember-cli-mirage/test-support';
import {visit} from '../../helpers/visit';
describe('Acceptance: Lexical editor', function () {
let hooks = setupApplicationTest();
setupMirage(hooks);
beforeEach(async function () {
this.server.loadFixtures();
});
it('redirects to signin when not authenticated', async function () {
await visit('/editor/post/');
expect(currentURL(), 'currentURL').to.equal('/signin');
});
it('loads editor', async function () {
await loginAsRole('Administrator', this.server);
await visit('/editor/post/');
expect(currentURL(), 'currentURL').to.equal('/editor/post/');
});
});