Skip to content

Commit

Permalink
fix: links, tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarenaldi committed Jul 4, 2024
1 parent 5ffdfae commit 85f5c10
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 22 deletions.
2 changes: 1 addition & 1 deletion e2e/mobile.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ test.describe("Given a mobile browser", async () => {
test("Then it should show in order mobile and web apps options", async ({ textPost }) => {
await textPost.open();

await expect(textPost.options).toHaveText(["Buttrfly", "Hey", "orb", "Soclly"]);
await expect(textPost.options).toHaveText(["Buttrfly", "Hey", "orb", "Pingpad", "Soclly"]);
});
});
});
6 changes: 4 additions & 2 deletions e2e/profiles.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ test.describe("Given a Profile link", async () => {
"Hey",
"orb",
"Orna",
"Pingpad",
"Riff",
"Soclly",
"Tape",
Expand All @@ -29,7 +30,7 @@ test.describe("Given a Profile link posted on a social media website/app", async

expect(await lensProfile.extractOpenGraphProperties()).toMatchObject({
"og:title": `${lensProfile.handle} profile`,
"og:description": "onchain social",
"og:description": "An open social network.",
"og:url": expect.stringContaining(`/u/${lensProfile.handle}`),
"og:site_name": "Lens Share",
"og:type": "profile",
Expand All @@ -43,7 +44,7 @@ test.describe("Given a Profile link posted on a social media website/app", async
"twitter:card": "summary_large_image",
"twitter:site": "LensProtocol",
"twitter:title": `${lensProfile.handle} profile`,
"twitter:description": "onchain social",
"twitter:description": "An open social network.",
"twitter:image": expect.any(String),
"twitter:image:type": "image/png",
});
Expand Down Expand Up @@ -86,6 +87,7 @@ test.describe("Given a Profile link with `by` attribution param", async () => {
"Buttrfly",
"orb",
"Orna",
"Pingpad",
"Riff",
"Soclly",
"Tape",
Expand Down
11 changes: 10 additions & 1 deletion e2e/publications.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@ test.describe("Given a Publication link", async () => {
test("Then it should show relevant app options", async ({ imagePost }) => {
await imagePost.open();

await expect(imagePost.options).toHaveText(["Buttrfly", "Hey", "orb", "Orna", "Soclly"]);
await expect(imagePost.options).toHaveText([
"Buttrfly",
"Hey",
"orb",
"Orna",
"Pingpad",
"Soclly",
]);
});
});
});
Expand Down Expand Up @@ -116,6 +123,7 @@ test.describe("Given a Video Publication link", async () => {
"Hey",
"orb",
"Orna",
"Pingpad",
"Soclly",
"Tape",
]);
Expand All @@ -134,6 +142,7 @@ test.describe("Given a Publication link with `by` attribution param", async () =
"Hey",
"orb",
"Orna",
"Pingpad",
"Soclly",
]);
});
Expand Down
24 changes: 6 additions & 18 deletions src/components/navigation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,33 +28,21 @@ export function Navigation() {

<div className="flex flex-col h-full justify-between items-stretch text-darkForest">
<div className="flex flex-col justify-start gap-6 items-start text-2xl">
<NavLink href="https://www.lens.xyz/community">Community</NavLink>

<NavLink href="https://www.lens.xyz/creators">Creators</NavLink>

<NavLink href="https://www.lens.xyz/build">Devs</NavLink>

<NavLink href="https://www.lens.xyz/social-layer">Web3</NavLink>
<NavLink href="https://www.lens.xyz/docs">Docs</NavLink>
</div>

<NavButton size="lg" variant="dark" href="https://claim.lens.xyz/">
Claim handle
<NavButton size="lg" variant="dark" href="https://www.lens.xyz">
Mint a Handle
</NavButton>
</div>
</section>
</div>

<div className="hidden sm:flex flex-row gap-8 justify-between items-center text-lightForest text-sm">
<NavLink href="https://www.lens.xyz/community">Community</NavLink>

<NavLink href="https://www.lens.xyz/creators">Creators</NavLink>

<NavLink href="https://www.lens.xyz/build">Devs</NavLink>

<NavLink href="https://www.lens.xyz/social-layer">Web3</NavLink>
<NavLink href="https://www.lens.xyz/docs">Docs</NavLink>

<NavButton size="md" variant="light" href="https://claim.lens.xyz/">
Claim handle
<NavButton size="md" variant="light" href="https://www.lens.xyz">
Mint a Handle
</NavButton>
</div>
</div>
Expand Down

0 comments on commit 85f5c10

Please sign in to comment.