Change className for require-auth test div

This commit is contained in:
kitajchuk committed 2022-10-03 08:30:30 -07:00
1 parent 875cfb6b25
commit 882a1bcf52
1 file changed
+3 -3
+3 -3
View File
@@ -11,7 +11,7 @@ const RequireAuthTestWrapper = (props: Partial<AuthStateContext>) => {
return (
<TestProvider {...(props as AuthStateContext)}>
<RequireAuth>
<div className="acl-div">
<div className="auth-div">
<H1>Protected Route</H1>
</div>
</RequireAuth>
@@ -27,12 +27,12 @@ describe("<RequireAuth>", () => {
it("is not authorized", () => {
cy.mount(<RequireAuthTestWrapper />);
cy.get(".acl-div").should("not.exist");
cy.get(".auth-div").should("not.exist");
});
it("is authorized", () => {
cy.mount(<RequireAuthTestWrapper authorized />);
cy.get(".acl-div").should("exist");
cy.get(".auth-div").should("exist");
});
});