From d3823d17fa2fdece294bb0901e91c3c98b201f2d Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Thu, 14 Nov 2024 19:03:21 +0100 Subject: [PATCH] refactor(cdk/testing): fix out of sync file Fixes a file that isn't in sync with the internal codebase. --- src/cdk/testing/protractor/protractor-element.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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.'); }