Add admin FAQ help article
This commit is contained in:
@@ -15,7 +15,7 @@ import { useBackNavigation } from './hooks/useBackNavigation';
|
||||
import { adminPath, ADMIN_PROFILE_PATH } from '../constants';
|
||||
import { fetchHelpCenterArticles, type HelpCenterArticleSummary } from '../api';
|
||||
|
||||
const FAQ_SLUGS = new Set(['admin-issue-resolution']);
|
||||
const FAQ_SLUGS = new Set(['faq-admin']);
|
||||
|
||||
function isFaqArticle(article: HelpCenterArticleSummary): boolean {
|
||||
const title = article.title?.toLowerCase() ?? '';
|
||||
|
||||
@@ -3,7 +3,7 @@ import { describe, expect, it, vi } from 'vitest';
|
||||
import { render, screen } from '@testing-library/react';
|
||||
|
||||
const articles = [
|
||||
{ slug: 'admin-issue-resolution', title: 'FAQ & Troubleshooting', summary: 'Common issues.' },
|
||||
{ slug: 'faq-admin', title: 'FAQ: Event Admin', summary: 'Common issues.' },
|
||||
{ slug: 'tenant-dashboard-overview', title: 'Dashboard overview', summary: 'Learn the dashboard.' },
|
||||
];
|
||||
|
||||
@@ -89,7 +89,7 @@ describe('MobileHelpCenterPage', () => {
|
||||
it('renders FAQ and guide articles', async () => {
|
||||
render(<MobileHelpCenterPage />);
|
||||
|
||||
expect(screen.getByText('FAQ & Troubleshooting')).toBeInTheDocument();
|
||||
expect(screen.getByText('FAQ: Event Admin')).toBeInTheDocument();
|
||||
expect(screen.getByText('Dashboard overview')).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user