Skip to content

Commit 7078e65

Browse files
authored
refactor(cdk/testing): fix out of sync file (angular#30021)
Fixes a file that isn't in sync with the internal codebase.
1 parent 42f6a4a commit 7078e65

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/cdk/testing/protractor/protractor-element.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,11 @@ export class ProtractorElement implements TestElement {
207207
async setContenteditableValue(value: string): Promise<void> {
208208
const contenteditableAttr = await this.getAttribute('contenteditable');
209209

210-
if (contenteditableAttr !== '' && contenteditableAttr !== 'true') {
210+
if (
211+
contenteditableAttr !== '' &&
212+
contenteditableAttr !== 'true' &&
213+
contenteditableAttr !== 'plaintext-only'
214+
) {
211215
throw new Error('setContenteditableValue can only be called on a `contenteditable` element.');
212216
}
213217

0 commit comments

Comments
 (0)