Skip to content

Commit

Permalink
refactor(cdk/testing): fix out of sync file (#30021)
Browse files Browse the repository at this point in the history
Fixes a file that isn't in sync with the internal codebase.
  • Loading branch information
crisbeto authored Nov 14, 2024
1 parent 42f6a4a commit 7078e65
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cdk/testing/protractor/protractor-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,11 @@ export class ProtractorElement implements TestElement {
async setContenteditableValue(value: string): Promise<void> {
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.');
}

Expand Down

0 comments on commit 7078e65

Please sign in to comment.