mi6 / ic-ui-kit

Intelligence Community UI Kit (based on StencilJS)
MIT License
19 stars 22 forks source link

High contrast cypress tests #2057

Open GCHQ-Developer-530 opened 5 days ago

GCHQ-Developer-530 commented 5 days ago

Summary

At the moment, the following components have high contrast cypress tests:

💬 Description

The rest of the components need high contrast mode adding into the cypress tests.

Should be as simple as adding a new describe block with

before(() => {
    cy.enableForcedColors();
  });

  after(() => {
    cy.disableForcedColors();
  });

💰 Use value

Keeps all tests consistent and makes us more confident in our components in high contrast mode.

MI6-255 commented 4 days ago

Make sure to test the focus state