📦 deps(thirdparty): update snapshots
This commit is contained in:
@@ -1,7 +1,27 @@
|
||||
import { describe, expect, it } from 'vitest';
|
||||
import { describe, expect, it, vi } from 'vitest';
|
||||
import { screen, waitFor } from '@testing-library/react';
|
||||
import { TopicLanding } from '../TopicLanding';
|
||||
import { renderWithRouter } from '../../utils/testUtils';
|
||||
import { createMockSkill } from '../../factories/skill';
|
||||
|
||||
vi.mock('../../context/SkillContext', () => ({
|
||||
useSkills: () => ({
|
||||
skills: [
|
||||
createMockSkill({
|
||||
id: 'antigravity-agent-manager',
|
||||
name: 'Antigravity Agent Manager',
|
||||
description: 'Configure and orchestrate Antigravity agents.',
|
||||
category: 'agent-orchestration',
|
||||
}),
|
||||
createMockSkill({
|
||||
id: 'antigravity-workflows',
|
||||
name: 'Antigravity Workflows',
|
||||
description: 'Run guided Antigravity workflows.',
|
||||
category: 'workflow',
|
||||
}),
|
||||
],
|
||||
}),
|
||||
}));
|
||||
|
||||
describe('TopicLanding', () => {
|
||||
it('renders an SEO topic page and sets metadata', async () => {
|
||||
@@ -14,6 +34,11 @@ describe('TopicLanding', () => {
|
||||
expect(screen.getByRole('heading', { level: 1, name: /Antigravity CLI skills/i })).toBeInTheDocument();
|
||||
expect(screen.getByText(/Search intent covered/i)).toBeInTheDocument();
|
||||
expect(screen.getByText(/Related topic guides/i)).toBeInTheDocument();
|
||||
expect(screen.getByRole('heading', { name: /Recommended skills for this workflow/i })).toBeInTheDocument();
|
||||
expect(screen.getByRole('link', { name: /@Antigravity Agent Manager/i })).toHaveAttribute(
|
||||
'href',
|
||||
'/skill/antigravity-agent-manager',
|
||||
);
|
||||
expect(screen.getByRole('link', { name: /GitHub repository for installable AI agent skills/i })).toHaveAttribute(
|
||||
'href',
|
||||
'/topics/github-ai-skills-repository',
|
||||
|
||||
Reference in New Issue
Block a user