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:
parent
48863a160b
commit
4bb6275001
5 changed files with 25 additions and 16 deletions
|
|
@ -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'))
|
||||
|
|
|
|||
Reference in a new issue