From 86120f154c0ef1e345eedbb7baaa0450c1934f6c Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Thu, 14 Nov 2024 19:15:46 +0100 Subject: [PATCH] refactor(cdk/testing): fix out of sync file (#30021) Fixes a file that isn't in sync with the internal codebase. (cherry picked from commit 7078e653268f70ab373a0be6d51a17274a4369e6) --- 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 85cd25f942c9..3d6b02a810ac 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.'); }