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.

(cherry picked from commit 7078e65)
  • Loading branch information
crisbeto committed Nov 14, 2024
1 parent ef9cff3 commit 86120f1
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 86120f1

Please sign in to comment.