This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-73ee55a7-242e-4870-b53a-77d3bdaa8ea2 XWIKI-22606 Open

Add automated test for "Uninstall Extension History"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-75e0f288-0683-4be5-9196-b5c9a801e463 Ilie Andriuta created this issue on 24/Oct/24 14:54
 
Summary: Add automated test for "Uninstall Extension History"
Issue Type: cid:jira-generated-image-avatar-73ee55a7-242e-4870-b53a-77d3bdaa8ea2 Task
Affects Versions: 11.10.13
Assignee: Unassigned
Components: Development Issues only
Created: 24/Oct/24 14:54
Priority: cid:jira-generated-image-static-major-138f82ac-2bda-4d33-8186-667d91265f7c Major
Reporter: Ilie Andriuta
Description:

The manual test is here: https://test.xwiki.org/xwiki/bin/view/Administration%20Tests/Uninstall%20Extension

The test verifies the history behavior when an extension is uninstalled.

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

Thomas@tmortagne:matrix.xwiki.com: Ilie Andriuta
Hi! Continuing the manual tests migration, there is a test about checking if the behaviour is correct when uninstalling an extension from Extension Manager: https://test.xwiki.org/xwiki/bin/view/Administration%20Tests/Uninstall%20Extension
I've checked https://github.com/xwiki/xwiki-platform/blob/73b07f8352d1716b9945b577d6e4a3334f058a77/xwiki-platform-core/xwiki-platform-extension/xwiki-platform-extension-script/src/test/java/org/xwiki/extension/script/ExtensionManagerScriptServiceTest.java and https://github.com/xwiki/xwiki-platform/blob/060a43e359ff19d49db049798be0fdf0dc876947/xwiki-platform-core/xwiki-platform-test/xwiki-platform-test-docker/src/main/java/org/xwiki/test/docker/internal/junit5/ExtensionInstaller.java but it seems I couldn't find automated tests for it.
Can you please confirm whether the automated test exists for it or not and maybe providing the link to it?

Thanks!

https://github.com/xwiki/xwiki-platform/blob/060a43e359ff19d49db049798be0fdf0dc876947/xwiki-platform-core/xwiki-platform-test/xwiki-platform-test-docker/src/main/java/org/xwiki/test/docker/internal/junit5/ExtensionInstaller.java is not a test, it's a test tool.
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-extension/xwiki-platform-extension-test/xwiki-platform-extension-test-tests/src/test/java/org/xwiki/test/ui/extension/ExtensionIT.java does seems to test uninstall extensions
(and there are also a lot of unit tests related to extension uninstall)
So IMO https://test.xwiki.org/xwiki/bin/view/Administration%20Tests/Uninstall%20Extension is covered.

Ilie Andriuta: Thanks, Thomas!
hm, the test is about the behavior, i.e. Progress bar appears, Message confirming successful uninstallation appears, The uninstalled extension can be seen in Extension History (Extensions > History)
is this covered also?
for ex for https://test.xwiki.org/xwiki/bin/view/Administration%20Tests/Install%20Extension I created https://jira.xwiki.org/browse/XWIKI-19941 for it wasn't automated

Ilie Andriuta: I think it's about the Progress bar just being displayed and filling as the process is ongoing
Thomas@tmortagne:matrix.xwiki.com: But I don't see any reference to the extension history.
Marius Dumitru Florea: any idea if the extension history is tested somewhere else (or here and I missed it) ?
Marius Dumitru Florea: I can't find any related page object, https://github.com/search?q=repo%3Axwiki%2Fxwiki-platform+extensionhistory+language%3AJava&type=code&l=Java , so I don't think the extension history has automated tests.

 
 

1 update

 
cid:jira-generated-image-avatar-75e0f288-0683-4be5-9196-b5c9a801e463 Changes by Ilie Andriuta on 24/Oct/24 14:54
 
Labels: testneeded