mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-01-29 08:53:18 +00:00
🎬 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:
@@ -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"]');
|
||||
|
||||
Reference in New Issue
Block a user