-
-
Notifications
You must be signed in to change notification settings - Fork 550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XWIKI-12629: Page Right is shown when administering inexistent WebHome page #3603
Conversation
…e page * Fixed test that relied on an uncreated page's administration section
page = new AdministrablePage(); | ||
AdministrationPage pageAdministrationPage = page.clickAdministerPage(); | ||
|
||
assertEquals("Page Administration: NonExistentSpace", pageAdministrationPage.getDocumentTitle()); | ||
assertEquals("Page Administration: AdministrationIT.verifyAdministrationSections", pageAdministrationPage.getDocumentTitle()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't work if you execute the whole test suite as the test class will be NestedAdministrationIT. You need to use a serialization of the testReference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in 61c2675 . I tested with the singular test already, but I'm currently running the whole test suite. I'll update this if the whole test suite does not pass somehow.
…e page * Serialized the reference
page = new AdministrablePage(); | ||
AdministrationPage pageAdministrationPage = page.clickAdministerPage(); | ||
|
||
assertEquals("Page Administration: NonExistentSpace", pageAdministrationPage.getDocumentTitle()); | ||
String fullName = setup.serializeReference(testReference.getParent()).split(":")[1]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think what you were searching for is TestUtils#serializeLocalReference (which does not contain the wiki part).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm I didn't paid enough attention: that one is not available in 15.10.x / 16.4.x. Backporting it.
…me page * Serialize the local reference
…e page (#3603) * Fixed test that relied on an uncreated page's administration section * Serialized the reference * Serialize the local reference --------- Co-authored-by: Simon Urli <[email protected]> (cherry picked from commit f3cfb75)
…e page (#3603) * Fixed test that relied on an uncreated page's administration section * Serialized the reference * Serialize the local reference --------- Co-authored-by: Simon Urli <[email protected]> (cherry picked from commit f3cfb75)
…e page (#3603) * Fixed test that relied on an uncreated page's administration section * Serialized the reference * Serialize the local reference --------- Co-authored-by: Simon Urli <[email protected]> (cherry picked from commit f3cfb75)
…e page (#3603) * Fixed test that relied on an uncreated page's administration section * Serialized the reference * Serialize the local reference --------- Co-authored-by: Simon Urli <[email protected]> (cherry picked from commit f3cfb75)
Jira URL
https://jira.xwiki.org/browse/XWIKI-12629
Changes
Description
Clarifications
Screenshots & Video
None, test only change
Executed Tests
Successfully ran
mvn clean install -f xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-docker -Pdocker
Expected merging strategy
Similar to XWIKI-12629: Page Right is shown when administering inexistent WebHome page #3590