This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-71c89aea-b5cc-47af-9114-279ec4a48455 XWIKI-22582 Open

Add automated test for "Switch between Icon Themes"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-216c057c-fb22-4f3b-8c20-a28c4964376e Ilie Andriuta created this issue on 17/Oct/24 13:19
 
Summary: Add automated test for "Switch between Icon Themes"
Issue Type: cid:jira-generated-image-avatar-71c89aea-b5cc-47af-9114-279ec4a48455 Task
Affects Versions: 11.10.13
Assignee: Unassigned
Components: Development Issues only
Created: 17/Oct/24 13:19
Priority: cid:jira-generated-image-static-major-6f5b5610-3274-473d-a67c-2172a3e4492a Major
Reporter: Ilie Andriuta
Description:

The manual test is here: Switch between Icon Themes.

Matrix discussion: https://matrix.to/#/!ikPtGZaGWtyblizzlR:matrix.xwiki.com/$1729159113821HCVxQ:matrix.xwiki.com?via=matrix.org&via=matrix.xwiki.com&via=mtrx.nz

Lucas Charpentier: Ilie Andriuta: Hi! Continuing the manual tests migration, there is a test about checking if switching between Icon Themes from Administration works properly: https://test.xwiki.org/xwiki/bin/view/Administration%20Tests/Switch%20between%20Icon%20Themes. I've checked https://github.com/xwiki/xwiki-platform/blob/aa181b9c5d1417e04b6dce5cec1a3cfea025b250/xwiki-platform-core/xwiki-platform-icon/xwiki-platform-icon-test/xwiki-platform-icon-test-docker/src/test/it/org/xwiki/icon/test/ui/IconThemesRestIT.java but I don't know for sure if automated tests exist. Can you please confirm?

Thanks!

For what I understand, the file you linked to is testing the REST API, which is a bit more backend than the manual test you shared.
I would have expected a test for this feature in xwiki-core/xwiki-administration. Here is the quick search I did:
https://github.com/search?q=repo%253Axwiki%252Fxwiki-platform+path%253A%252F%5Exwiki-platform-core%5C%252Fxwiki-platform-administration%5C%252F%252F+icon&type=code
All I could find that looked somewhat relevant is https://github.com/xwiki/xwiki-platform/blame/aa181b9c5d1417e04b6dce5cec1a3cfea025b250/xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-pageobjects/src/main/java/org/xwiki/administration/test/po/ThemesAdministrationSectionPage.java#L45 but it seems like this is a typo and this is only to test color themes (!= icon themes) ...
Looking a bit more into the functions of this pageObject, there's nothing about icons. There would be something if it was tested anywhere I didn't check.

Unless we duplicated the pageObject (which I doubt happened), I can confirm that there's no automated test for this UI yet.

Ilie Andriuta: Thanks, Lucas, I will create a task for it!

 
 

1 update

 
cid:jira-generated-image-avatar-216c057c-fb22-4f3b-8c20-a28c4964376e Changes by Ilie Andriuta on 17/Oct/24 13:19
 
Labels: testneeded