fa0b1c607b
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
27 lines
887 B
JavaScript
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/');
|
|
});
|
|
});
|