You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to be able to switch including the legacy repos in review app on and off to give us confidence that we're not breaking things in various states (compability mode, legacy code included) when we make the WGAG 2.1 changes to styles and components. Various people in the team need to be able to test the changes in various states.
This work will also be valuable going forward when testing changes to components. We should ideally look at adding automated visual regression testing soon.
Solution
We discussed toggling the states in three different ways:
UI component toggle
Pro: Not having to know what values/pages are needed for toggling
Con: Can't link to pages, either rely on JS or pass this to backend in form.
Separate page to have values on/off
Pro: Linkable. Would limit to certain number of pages.
Con: Would have to limit number of pages this would work on. Manually having to add this to page templates.
Query string in URL to set eg. /?legacy=on
Pro: Linkable. Easy to use with range of pages.
Con: Having to know what values to use. Not knowing what default is unless you read docs.
We decided to go with 3 as this is the most flexible on. We will allow both legacy code and compatibility mode to be toggled on/off with a query string.
States
There will therefore be four scenarios to test: 1. Compatibility mode on, legacy repos not included
- Use the existing colour palette
- Use the new focus styles
2. Compatibility mode off, legacy repos not included
- Use the new colour palette
- Use the new focus styles
3. Compatibility mode on, legacy repos included
- Use the existing colour palette
- Use the new focus styles
- Optional: Include some components from legacy repos on the page 4. Compatibility mode off, legacy repos included
- Use the new colour palette
- Use the new focus styles
Spiked in #1158
Problem
We want to be able to switch including the legacy repos in review app on and off to give us confidence that we're not breaking things in various states (compability mode, legacy code included) when we make the WGAG 2.1 changes to styles and components. Various people in the team need to be able to test the changes in various states.
This work will also be valuable going forward when testing changes to components. We should ideally look at adding automated visual regression testing soon.
Solution
We discussed toggling the states in three different ways:
/?legacy=on
We decided to go with 3 as this is the most flexible on. We will allow both legacy code and compatibility mode to be toggled on/off with a query string.
States
There will therefore be four scenarios to test:
1. Compatibility mode on, legacy repos not included- Use the existing colour palette
- Use the new focus styles
2. Compatibility mode off, legacy repos not included
- Use the new colour palette
- Use the new focus styles
3. Compatibility mode on, legacy repos included
- Use the existing colour palette
- Use the new focus styles
- Optional: Include some components from legacy repos on the page
4. Compatibility mode off, legacy repos included- Use the new colour palette
- Use the new focus styles
Irrelevant ones
crossed outDefinitions
By compatibility mode we mean this.
By legacy repos we mean:
Checklist
The text was updated successfully, but these errors were encountered: