Skip to content

Commit 963d50f

Browse files
authored
test: update RTE unit tests to not use Lumo styles (#9009)
1 parent 76a7f05 commit 963d50f

5 files changed

Lines changed: 14 additions & 4 deletions

File tree

‎packages/rich-text-editor/test/attach.test.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { expect } from '@vaadin/chai-plugins';
22
import { fixtureSync, nextRender, nextUpdate } from '@vaadin/testing-helpers';
33
import sinon from 'sinon';
4-
import '../theme/lumo/vaadin-rich-text-editor-styles.js';
54
import '../src/vaadin-rich-text-editor.js';
65

76
describe('attach/detach', () => {

‎packages/rich-text-editor/test/auto-grow.test.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect } from '@vaadin/chai-plugins';
22
import { fixtureSync, nextRender } from '@vaadin/testing-helpers';
3-
import '../theme/lumo/vaadin-rich-text-editor-styles.js';
3+
import './rte-test-styles.js';
44
import '../src/vaadin-rich-text-editor.js';
55

66
describe('rich text editor', () => {

‎packages/rich-text-editor/test/basic.test.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { expect } from '@vaadin/chai-plugins';
22
import { fixtureSync, focusout, nextRender, nextUpdate } from '@vaadin/testing-helpers';
33
import sinon from 'sinon';
4-
import '../theme/lumo/vaadin-rich-text-editor-styles.js';
54
import '../src/vaadin-rich-text-editor.js';
65

76
describe('rich text editor', () => {
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
2+
3+
// TODO: subset of Lumo needed for unit tests to pass.
4+
// These should be eventually covered by base styles.
5+
registerStyles(
6+
'vaadin-rich-text-editor',
7+
css`
8+
:host {
9+
min-height: 18rem;
10+
}
11+
`,
12+
);

‎packages/rich-text-editor/test/toolbar.test.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
outsideClick,
1111
} from '@vaadin/testing-helpers';
1212
import sinon from 'sinon';
13-
import '../theme/lumo/vaadin-rich-text-editor.js';
13+
import '../src/vaadin-rich-text-editor.js';
1414
import { createImage } from './helpers.js';
1515

1616
describe('toolbar controls', () => {

0 commit comments

Comments
 (0)