🎬 Integrate CountryStatsScene and fix test mocks

Replace placeholder with actual CountryStatsScene (Scene 5) in
PortalPresentation, remove unused PlaceholderScene component,
add missing mock for CountryStatsScene in tests, and fix
PortalPresentationMobile tests to mock correct mobile scene
components.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
HolgerHatGarKeineNode
2026-01-24 14:35:03 +01:00
parent 0ba7c5a2ef
commit 584532af6b
3 changed files with 52 additions and 47 deletions

View File

@@ -88,6 +88,12 @@ vi.mock("./scenes/portal/MeetupShowcaseScene", () => ({
)),
}));
vi.mock("./scenes/portal/CountryStatsScene", () => ({
CountryStatsScene: vi.fn(() => (
<div data-testid="country-stats-scene">CountryStatsScene</div>
)),
}));
vi.mock("./scenes/portal/TopMeetupsScene", () => ({
TopMeetupsScene: vi.fn(() => (
<div data-testid="top-meetups-scene">TopMeetupsScene</div>
@@ -210,6 +216,12 @@ describe("PortalPresentation", () => {
expect(scene).toBeInTheDocument();
});
it("renders Scene 5: CountryStatsScene", () => {
const { container } = render(<PortalPresentation />);
const scene = container.querySelector('[data-testid="country-stats-scene"]');
expect(scene).toBeInTheDocument();
});
it("renders Scene 6: TopMeetupsScene", () => {
const { container } = render(<PortalPresentation />);
const scene = container.querySelector('[data-testid="top-meetups-scene"]');