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 @@ -193,7 +193,11 @@ export class UnitTestElement implements TestElement {
193193 async setContenteditableValue ( value : string ) : Promise < void > {
194194 const contenteditableAttr = await this . getAttribute ( 'contenteditable' ) ;
195195
196- if ( contenteditableAttr !== '' && contenteditableAttr !== 'true' ) {
196+ if (
197+ contenteditableAttr !== '' &&
198+ contenteditableAttr !== 'true' &&
199+ contenteditableAttr !== 'plaintext-only'
200+ ) {
197201 throw new Error ( 'setContenteditableValue can only be called on a `contenteditable` element.' ) ;
198202 }
199203
You can’t perform that action at this time.
0 commit comments