Skip to content

Commit 6222804

Browse files
authored
Update unit-test-element.ts
1 parent 468897a commit 6222804

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdk/testing/testbed/unit-test-element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export class UnitTestElement implements TestElement {
196196
async setContenteditableValue(value: string): Promise<void> {
197197
const contenteditableAttr = await this.getAttribute('contenteditable');
198198

199-
if (contenteditableAttr !== '' && contenteditableAttr !== 'true') {
199+
if (contenteditableAttr !== '' && contenteditableAttr !== 'true' && contenteditableAttr !== 'plaintext-only') {
200200
throw new Error('setContenteditableValue can only be called on a `contenteditable` element.');
201201
}
202202

0 commit comments

Comments
 (0)