We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42f6a4a commit 7078e65Copy full SHA for 7078e65
src/cdk/testing/protractor/protractor-element.ts
@@ -207,7 +207,11 @@ export class ProtractorElement implements TestElement {
207
async setContenteditableValue(value: string): Promise<void> {
208
const contenteditableAttr = await this.getAttribute('contenteditable');
209
210
- if (contenteditableAttr !== '' && contenteditableAttr !== 'true') {
+ if (
211
+ contenteditableAttr !== '' &&
212
+ contenteditableAttr !== 'true' &&
213
+ contenteditableAttr !== 'plaintext-only'
214
+ ) {
215
throw new Error('setContenteditableValue can only be called on a `contenteditable` element.');
216
}
217
0 commit comments