Add data-testid to buttons used by e2e tests

This commit is contained in:
Marcus Eide
2020-03-27 13:42:27 +01:00
parent 3d1d34bf96
commit a17f237b75
5 changed files with 35 additions and 10 deletions
@@ -26,7 +26,12 @@ const ErrorButton: FC<{}> = () => {
};
return (
<Button variant="contained" color="primary" onClick={handleClick}>
<Button
data-testid="error-button"
variant="contained"
color="primary"
onClick={handleClick}
>
Trigger an error!
</Button>
);