Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion frontend/src/components/HomeComponents/FAQ/FAQ.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { FAQItem } from './FAQItem';
import { FAQList } from './faq-utils';
import { BlueHeading } from '@/lib/utils';
import { HighlightLink } from '@/components/ui/link-highlight';
import { url } from '@/components/utils/URLs';

export const FAQ = () => {
return (
Expand All @@ -25,7 +26,7 @@ export const FAQ = () => {

<h3 className="font-medium mt-4">
Still have questions?{' '}
<HighlightLink rel="noreferrer noopener" href={'#contact'}>
<HighlightLink rel="noreferrer noopener" href={url.zulipURL}>
Contact us
</HighlightLink>
</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import { render, screen } from '@testing-library/react';
import { FAQ } from '../FAQ';
import { FAQList } from '../faq-utils';
import { url } from '@/components/utils/URLs';

jest.mock('../faq-utils', () => ({
FAQList: [
Expand Down Expand Up @@ -57,7 +58,7 @@ describe('FAQ component', () => {
render(<FAQ />);
const contactLink = screen.getByText(/Contact us/i);
expect(contactLink).toBeInTheDocument();
expect(contactLink).toHaveAttribute('href', '#contact');
expect(contactLink).toHaveAttribute('href', url.zulipURL);
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ exports[`FAQ component using snapshot renders correctly 1`] = `
Still have questions?
<a
class="opacity-60 hover:opacity-100 relative inline-block"
href="#contact"
href="https://ccextractor.org/public/general/support/"
Comment thread
its-me-abhishek marked this conversation as resolved.
rel="noreferrer noopener"
>
Contact us
Expand Down
Loading