test(32-01): add failing tests for form extension placement and save

- TestFormExtensionPlacement, TestFormExtensionBootErrors,
  TestFormExtensionTwoPluginsSameAnchor, TestFormExtensionOnePluginTwoControllers,
  TestFormExtensionUnextendedSchemaUnchanged, TestFormExtensionWidgetsAndPartials
- TestFormExtensionSave (Postgres): rollback, 422 lines, notices,
  invisible extensions, locale maps, hidden owner fields
- checkFormExtensionTabLabels declared (no-op) so the tests compile
This commit is contained in:
2026-10-26 21:51:35 +01:00
parent 0819442634
commit 4bb22a85dd
3 changed files with 745 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ import (
"git.golem15.com/golem15/summercms/modules/pact"
"git.golem15.com/golem15/summercms/modules/party"
"git.golem15.com/golem15/summercms/modules/phrasebook"
"github.com/goccy/go-yaml/ast"
"github.com/goccy/go-yaml/parser"
"gorm.io/gorm"
@@ -606,3 +607,9 @@ func recordIDText(model any) string {
}
return fmt.Sprint(value)
}
// checkFormExtensionTabLabels refuses two tab keys of an extended form whose
// labels translate to the same text in a locale the phrasebook loads.
func checkFormExtensionTabLabels(reg *Registry, tr *phrasebook.Translator) error {
return nil
}