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:
1 parent
158b15c1d8
commit
eda79a1f92
1 file changed
+1
-1
@@ -209,7 +209,7 @@ func (s *DashboardIntegrationTestSuite) TestRestoreSystemCollection_Unauthorized
|
||||
func (s *DashboardIntegrationTestSuite) TestRestoreSystemCollection_ValidNames() {
|
||||
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 {
|
||||
s.T().Run(collName, func(t *testing.T) {
|
||||
|
||||
Reference in new issue
Block a user