Skip to content

UI and unit tests - #826

Merged
poppastring merged 3 commits into
mainfrom
creating-new-tests
May 8, 2026
Merged

poppastring merged 3 commits into
mainfrom
creating-new-tests

Conversation

@poppastring

Copy link
Copy Markdown
Owner

PR Classification

Adds and updates automated UI and unit tests to improve coverage and adapt to recent UI changes.

PR Summary

This pull request enhances Playwright UI tests for new UI structures, introduces comprehensive ThemeManager unit tests, and adds a test for comment settings in blog post creation.

  • PlaywrightPageTests.cs: Added new UI tests for archive calendar, category navigation, and theme management; updated selectors and navigation for robustness.
  • ThemeManagerTest.cs: Introduced unit tests for theme detection, file listing, and write protection.
  • BlogPostViewModelCreateorTest.cs: Added a unit test to verify AllowComments is false when comments are disabled.
  • General: Minor code formatting and using directive updates.

Refined selectors and assertions to match updated HTML structure, including category badges, card layouts, and calendar views. Added tests for archive calendar and category badge navigation. Improved post edit/delete flows to handle modals and absolute URLs. Enhanced test robustness and accuracy.
Expanded Playwright tests for theme admin UI, added ThemeManager unit tests for default/built-in theme logic, and ensured blog post comments respect site config. Minor formatting improvements.
Merged LoginNavigateToThemeList into ThemeListShowsDefaultThemesAsLocked, combining checks for the "Themes" heading, "Active" badge, and built-in (locked) theme badges. Removed redundant test to streamline assertions.
@poppastring
poppastring merged commit 4799776 into main May 8, 2026
3 checks passed
@poppastring
poppastring deleted the creating-new-tests branch May 8, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant