fix(cv): restore distinct responsive templates

This commit is contained in:
cesnimda
2026-09-01 08:54:03 +02:00
parent 9252e43ad4
commit c8b4c33acd
8 changed files with 161 additions and 23 deletions
+17
View File
@@ -211,6 +211,23 @@ public sealed class CvBuilderTests
Assert.DoesNotContain("transform:scale", html);
}
[Fact]
public void Ats_themes_keep_plain_text_content_but_use_distinct_structures_and_skill_treatments()
{
var atsThemes = CvThemeCatalog.Themes.Where(theme => theme.AtsFriendly).ToList();
Assert.All(atsThemes, theme => Assert.Contains(theme.Layout, new[] { "single", "header-band" }));
Assert.Contains(atsThemes, theme => theme.DefaultSkillsStyle == "text");
Assert.Contains(atsThemes, theme => theme.DefaultSkillsStyle == "bullets");
Assert.Contains(atsThemes, theme => theme.DefaultSkillsStyle == "tags");
Assert.True(atsThemes.Select(theme => (theme.Layout, theme.HeaderStyle, theme.HeadingStyle, theme.NumberSections)).Distinct().Count() >= 5);
var renderer = new ThemedCvRenderer();
var model = CvVariantResolver.Build(Rich(), new CvVariantSettings(), "F", null);
Assert.Contains("class=\"skills-text\"", renderer.Render(model, CvThemeCatalog.Resolve("minimal"), new CvVariantSettings { ThemeId = "minimal" }).Html);
Assert.Contains("class=\"bullets skill-bullets\"", renderer.Render(model, CvThemeCatalog.Resolve("ats-classic"), new CvVariantSettings { ThemeId = "ats-classic" }).Html);
}
[Fact]
public void Multi_entry_sections_flow_between_entries_instead_of_leaving_a_blank_page()
{