1
0
Fork 0

refactor: replace meet link with write me an email link

I was using Calendly for the meetings, but none ever come through at this time, so I canceled Calendly subscription and switched to email only communications
This commit is contained in:
Vojtěch Mareš 2023-06-06 14:32:59 +02:00
parent 48863a160b
commit 4bb6275001
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
5 changed files with 25 additions and 16 deletions

View file

@ -12,12 +12,25 @@ test("home", () => {
})
).toBeDefined();
const meets = screen.getAllByText(/Domluvme si schůzku/i);
meets.map((m) =>
expect(m.getAttribute("href")).toBe(
"https://calendly.com/vojtechmares/30min"
const writeMe = screen.getAllByText(/Napište mi/i);
writeMe.map((element) => {
// First button (in navbar) is <a><span>...</span></a>, therefore we look for parent (closest) anchor element
if (element instanceof HTMLSpanElement) {
const parent = element.closest("a");
expect(parent?.getAttribute("href")).toBe(
"mailto:iam@vojtechmares.com"
)
return;
}
expect(element.getAttribute("href")).toBe(
"mailto:iam@vojtechmares.com"
)
);
});
expect(writeMe).toHaveLength(6);
// const footer = within(screen.getByRole('contentinfo'))
// const link = within(footer.getByRole('link'))