Skip to content

Commit

Permalink
Temporarily suppress logged out hero
Browse files Browse the repository at this point in the history
  • Loading branch information
jonallured committed May 12, 2022
1 parent c151990 commit 0190c30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cypress/integration/home.spec.ts
@@ -1,7 +1,8 @@
import { visitWithStatusRetries } from "../helpers/visitWithStatusRetries"

describe("Home", () => {
it("/", () => {
// add this back in once we revert the suppression
it.skip("/", () => {
visitWithStatusRetries("/")
cy.get("h1").should("contain", "Collect art by the world’s leading artists")
})
Expand Down
4 changes: 4 additions & 0 deletions src/v2/Apps/Home/Components/HomeHeroUnits/HomeHeroUnits.tsx
Expand Up @@ -16,6 +16,8 @@ interface HomeHeroUnitsProps {
}

const HomeHeroUnits: React.FC<HomeHeroUnitsProps> = ({ homePage }) => {
// TODO: Remove after SSS sale ends
const skipHomeHero = true
const { isLoggedIn } = useSystemContext()

const heroUnits = [
Expand All @@ -29,6 +31,8 @@ const HomeHeroUnits: React.FC<HomeHeroUnitsProps> = ({ homePage }) => {
// If logged out, the first hero unit is static and
// needs to be rendered without the fragment container
if (!isLoggedIn && i === 0) {
if (skipHomeHero) return

return (
<HomeHeroUnit
key={i}
Expand Down

0 comments on commit 0190c30

Please sign in to comment.