Skip to content

Add JS component level tests to editor Duotone hooks #48347

@getdave

Description

@getdave

As seen in #48318 it's easy to introduce regressions into the Duotone support added to blocks.

We should follow the existing tests for other hooks and introduce component level tests for the withDuotoneControls HOC. We should assert on:

  • whether the panel renders based on block supports
  • whether the stored attribute can be converted into the correct UI representation in the panel
  • whether the panel triggers the correct changes to the attribute
  • anything else?

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions