cypress best practices updated

This commit is contained in:
Owen Rees
2023-06-20 08:42:03 +02:00
parent ffbc8db21d
commit f1ef7cd3f2
13 changed files with 60 additions and 91 deletions
+10 -2
View File
@@ -20,11 +20,19 @@ const ThemeSwitcher = () => {
return (
<div>
{colorTheme === "light" ? (
<div className="toggle-dark" onClick={() => setTheme("light")}>
<div
className="toggle-dark"
data-cy="toggle-dark"
onClick={() => setTheme("light")}
>
<MdBrightness2 className="theme-icon-dark" />
</div>
) : (
<div className="toggle" onClick={() => setTheme("dark")}>
<div
className="toggle"
data-cy="toggle"
onClick={() => setTheme("dark")}
>
<MdCircle className="theme-icon" />
</div>
)}