test(tutorial-e2e): seed tutorial presents — RegisterViewer no longer auto-seeds

This commit is contained in:
gamer147
2026-06-08 20:51:42 -04:00
parent 83e89455e2
commit feee6e7c09

View File

@@ -20,7 +20,11 @@ public class TutorialFlowEndToEndTests
await factory.SeedGlobalsAsync();
// Fresh viewer at PRE_TUTORIAL_STEP (the real prod default after Task 1).
// SeedViewerAsync goes through RegisterViewer (admin/social path) which does NOT
// auto-seed tutorial presents — only the prod /tool/signup -> RegisterAnonymousViewer
// flow does. The end-to-end simulation here needs the inbox populated explicitly.
long viewerId = await factory.SeedViewerAsync(tutorialState: 0);
await factory.SeedTutorialPresentsAsync(viewerId);
// Pack 99047 (starter legendary) has base_pack_id=90001. Seed the card set used by
// the tutorial pack pool resolver — mirrors the pattern in PackControllerTests.