Fix dashboard integration test: use title case collection names

Update TestRestoreSystemCollection_ValidNames to use the correct
title case format for system collection names.

The API handler validates these specific collection names:
- "Continue Reading"
- "Recently Added"
- "Recently Read"
- "Not Started"

The test was previously using kebab-case names (e.g., "continue-reading")
which were being rejected by the validation logic with 400 Bad Request.

This aligns the test with the updated collection name format used
throughout the application.
This commit is contained in:
2026-03-30 21:22:44 -04:00
parent 158b15c1d8
commit eda79a1f92
@@ -209,7 +209,7 @@ func (s *DashboardIntegrationTestSuite) TestRestoreSystemCollection_Unauthorized
func (s *DashboardIntegrationTestSuite) TestRestoreSystemCollection_ValidNames() { func (s *DashboardIntegrationTestSuite) TestRestoreSystemCollection_ValidNames() {
token := s.setup.Token token := s.setup.Token
validCollections := []string{"continue-reading", "recently-added", "recently-read", "not-started"} validCollections := []string{"Continue Reading", "Recently Added", "Recently Read", "Not Started"}
for _, collName := range validCollections { for _, collName := range validCollections {
s.T().Run(collName, func(t *testing.T) { s.T().Run(collName, func(t *testing.T) {