File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,11 @@ export class SeleniumWebDriverElement implements TestElement {
161161 async setContenteditableValue ( value : string ) : Promise < void > {
162162 const contenteditableAttr = await this . getAttribute ( 'contenteditable' ) ;
163163
164- if ( contenteditableAttr !== '' && contenteditableAttr !== 'true' ) {
164+ if (
165+ contenteditableAttr !== '' &&
166+ contenteditableAttr !== 'true' &&
167+ contenteditableAttr !== 'plaintext-only'
168+ ) {
165169 throw new Error ( 'setContenteditableValue can only be called on a `contenteditable` element.' ) ;
166170 }
167171
Original file line number Diff line number Diff line change @@ -196,7 +196,11 @@ 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 (
200+ contenteditableAttr !== '' &&
201+ contenteditableAttr !== 'true' &&
202+ contenteditableAttr !== 'plaintext-only'
203+ ) {
200204 throw new Error ( 'setContenteditableValue can only be called on a `contenteditable` element.' ) ;
201205 }
202206
You can’t perform that action at this time.
0 commit comments