Skip to content

Add basic e2e test for the most ContrastChecker simple cases #68853

@afercia

Description

@afercia

Description

After #68799 it would be nice to add at least one e2e test to make sure the ContrastChecker detects and checks colors reliably for the most simple case:

  • Add a paragraph with some content.
  • Set both background and text colors to black.
  • Test that the ContrastChecker notice appears in the block settings panel immediately as soon as the low-contrast color pair is applied.

For the future, it would be nice to expand the ContrastChecker tests when other pending issues will ne solved, they are tracked at #60824

Step-by-step reproduction instructions

N/A

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions