diff --git a/src/cdk/testing/protractor/protractor-element.ts b/src/cdk/testing/protractor/protractor-element.ts index 1f3af90e7519..9caf06699ffe 100644 --- a/src/cdk/testing/protractor/protractor-element.ts +++ b/src/cdk/testing/protractor/protractor-element.ts @@ -207,7 +207,11 @@ export class ProtractorElement implements TestElement { async setContenteditableValue(value: string): Promise { const contenteditableAttr = await this.getAttribute('contenteditable'); - if (contenteditableAttr !== '' && contenteditableAttr !== 'true') { + if ( + contenteditableAttr !== '' && + contenteditableAttr !== 'true' && + contenteditableAttr !== 'plaintext-only' + ) { throw new Error('setContenteditableValue can only be called on a `contenteditable` element.'); }