feat: SEO field types and the complete SEO tab
This commit is contained in:
@@ -25,11 +25,11 @@ func tabsOf(fields []schemaField) []string {
|
||||
// General and Indexing, their values in golem15_seo_type_settings with the
|
||||
// D-21 defaults, template checks, and the inject switch hiding the SEO tab.
|
||||
func TestSettingsTypeTabs(t *testing.T) {
|
||||
t.Run("two content types", func(t *testing.T) {
|
||||
t.Run("three content types", func(t *testing.T) {
|
||||
env := bootEnv(t)
|
||||
token := env.admin(t, true)
|
||||
fields := env.formSchema(t, token, "golem15/seo/settings")
|
||||
if got, want := strings.Join(tabsOf(fields), " | "), "General | Page | Tags | Indexing | Addresses | Verification"; got != want {
|
||||
if got, want := strings.Join(tabsOf(fields), " | "), "General | Page | Tags | Notes | Indexing | Addresses | Verification"; got != want {
|
||||
t.Fatalf("settings tabs = %q, want %q", got, want)
|
||||
}
|
||||
findField(t, fields, "type_acme_page_inject")
|
||||
|
||||
Reference in New Issue
Block a user