Refactor login tests (#2337)

Co-authored-by: Omar López <[email protected]>
This commit is contained in:
Demian CaldelasandOmar López authored and GitHub committed 2022-04-06 08:13:09 -07:00
1 parent 7fd65ceb8a
commit 551892fa30
7 files changed
+128 -61

No files matched your search

+6 -2
View File
@@ -288,7 +288,9 @@ export default function Shell(props: {
</nav>
</div>
<TrialBanner />
<div className="rounded-sm pb-2 pl-3 pt-2 pr-2 hover:bg-gray-100 lg:mx-2 lg:pl-2">
<div
className="rounded-sm pb-2 pl-3 pt-2 pr-2 hover:bg-gray-100 lg:mx-2 lg:pl-2"
data-testid="user-dropdown-trigger">
<span className="hidden lg:inline">
<UserDropdown />
</span>
@@ -299,7 +301,9 @@ export default function Shell(props: {
<small style={{ fontSize: "0.5rem" }} className="mx-3 mt-1 mb-2 hidden opacity-50 lg:block">
&copy; {new Date().getFullYear()} Cal.com, Inc. v.{pkg.version + "-"}
{process.env.NEXT_PUBLIC_WEBSITE_URL === "https://cal.com" ? "h" : "sh"}
<span className="lowercase">-{user && user.plan}</span>
<span className="lowercase" data-testid={`plan-${user?.plan.toLowerCase()}`}>
-{user && user.plan}
</span>
</small>
</div>
</div>