Details
-
Task
-
Resolution: Invalid
-
Major
-
None
-
11.10.13
-
Unknown
-
Description
The manual test is here: Edit And Cancel Color Themes
Existing automated coverage
- FlamingoThemeIT#validateColorThemeFeatures: Administration > Themes, clicks "Manage color themes" (ThemesAdministrationSectionPage#manageColorThemes), checks the current theme is Charcoal, clicks a theme to view it (ThemeApplicationWebHomePage#seeTheme, no assertion on the view) and opens the theme editor via Customize; edits are always saved, never cancelled.
Missing automated coverage
- As admin, go to Administer Wiki > Look & Feel > Themes, click "Manage color themes" and click the default (current) theme.
- Assert the theme view page of that theme is displayed (title / theme name).
- Edit the theme, assert the theme editor (EditThemePage) is displayed, and change a variable (e.g. a Base colors color).
- Click Cancel (add a cancel method to EditThemePage if needed) and assert the theme document still holds the previous value (e.g. via REST or by re-opening the editor), and that the wiki pages still show the original color.
Related issues: XWIKI-17974 (closed): About changing the color theme from the page administration, not about editing/cancelling a theme.
Suggested location: xwiki-platform-core/xwiki-platform-flamingo/xwiki-platform-flamingo-theme/xwiki-platform-flamingo-theme-test/xwiki-platform-flamingo-theme-test-docker/src/test/it/org/xwiki/flamingo/test/ui/FlamingoThemeIT.java
Found by comparing the most-run manual tests (XWiki 16.x-18.x runs) against the automated tests on master (7c8ae46f525).