3 ms·
the funny bit is the entire app is in React, and the attribute was leaking to the DOM, so to keep the unit tests and e2e tests work, I made the attribute go to
by maury91 7y ago
the funny bit is the entire app is in React, and the attribute was leaking to the DOM, so to keep the unit tests and e2e tests work, I made the attribute go to the DOM as `data-role`. The attribute of the React component is still `role` so we can avoid a major refactoring.