[xwiki-contrib/application-blog] df6f82: BLOG-269: Add tests covering how blog, post and ca...
Branch: refs/heads/vmassol/BLOG-269-page-tests Home: https://github.com/xwiki-contrib/application-blog Commit: df6f82d5c01371a6888631d276e0e4081e5186dd https://github.com/xwiki-contrib/application-blog/commit/df6f82d5c01371a6888... Author: Vincent Massol <[email protected]> Date: 2026-10-14 (Wed, 14 Oct 2026) Changed paths: A application-blog-ui/src/test/java/org/xwiki/contrib/blog/BlogLocationFixture.java A application-blog-ui/src/test/java/org/xwiki/contrib/blog/BlogLocationPageTest.java A application-blog-ui/src/test/java/org/xwiki/contrib/blog/BlogPostSheetPageTest.java A application-blog-ui/src/test/java/org/xwiki/contrib/blog/CategoriesPanelPageTest.java A application-blog-ui/src/test/java/org/xwiki/contrib/blog/CategoryRssPageTest.java Log Message: ----------- BLOG-269: Add tests covering how blog, post and category locations are resolved * Page test part: pin the location rules that don't depend on a query result (in a page test every query returns no result). * BlogLocationPageTest: `#getBlogDocument` (WebPreferences panels configuration, Space.WebHome, Space.Blog, fallback to Blog.WebHome, nested space with special characters), `#getBlogPostsLocation`, `#getBlogCategoriesLocation` (stored value, default with and without legacy category assignments) and `#displayEntryBlogLocation`. * BlogPostSheetPageTest: default category of a post and default parent of a category created from the post editor. * CategoriesPanelPageTest: categories space shown by the RSS, all categories and manage links of the Categories panel. * CategoryRssPageTest: category of a feed, including the mapping of a legacy Blog.X category to Blog.Categories.X. * BlogLocationFixture: builds the blogs A to E in the test wiki and mocks the blog and query script services. * Pinned bugs: BLOG-278 (getting the categories location clears the caller's posts location), BLOG-279 (no "Posted in" link for a blog whose page is not the WebHome of its space). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki-contrib/application-blog/settings/notifications
participants (1)
-
XWiki Notifications