alphagov / govuk-frontend

GOV.UK Frontend contains the code you need to start building a user interface for government platforms and services.
https://frontend.design-system.service.gov.uk/
MIT License
1.18k stars 324 forks source link

[SPIKE] Decide approach to enabling review app to include legacy apps code for testing purposes #1158

Closed hannalaakso closed 5 years ago

hannalaakso commented 5 years ago

What

We need to be able to run the review app to run with two different scenarios/settings:

Scenario 1

What we have right now: Include GOV.UK Frontend assets, with compatibility flags off

Scenario 2

Include GOV.UK Frontend and the stylesheets/JS from legacy repos Elements, Frontend Toolkit and GOV.UK Template, with compatibility flags on

We're going to need to decide how the app should run the two scenarios to make it easy for us to find any potential differences resulting from the inclusion of the legacy stuff.

Why

We need to ensure that including the legacy code doesn't interfere with GOV.UK Frontend styles and components. We can use our existing tests and manually check for visual differences (ideally we'd implement visual regression testing to handle this at a later point).

Doing this would be super helpful in making sure that the upcoming changes we're having to make to meet WCAG 2.1. and which will affect the styles of the legacy stuff can be gradually migrated to by service teams 😎

Done when:

NickColley commented 5 years ago

Oops sorry

hannalaakso commented 5 years ago

We discussed with devs and decided the following:

It would be awesome to implement some visual regression testing to test the above but we probably don't have the capability to do this right now.

Created https://github.com/alphagov/govuk-frontend/issues/1262 for the work