Skip to content
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-22680: Regression on createAndDeleteUser #3666

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

Sereza7
Copy link
Contributor

@Sereza7 Sereza7 commented Nov 21, 2024

Jira URL

https://jira.xwiki.org/browse/XWIKI-22680 Related to https://jira.xwiki.org/browse/XWIKI-22121
fix for https://ci.xwiki.org/job/XWiki%20Environment%20Tests/job/xwiki-platform/job/stable-16.10.x/4/testReport/junit/org.xwiki.administration.test.ui/AllIT$NestedUsersGroupsRightsManagementIT/MySQL_9_1__Tomcat_9_jdk21__Chrome___Docker_tests_for_xwiki_platform_administration___Build_for_MySQL_9_1__Tomcat_9_jdk21__Chrome___Docker_tests_for_xwiki_platform_administration___createAndDeleteUser_TestUtils__TestReference_/

Changes

Description

  • Improved consistency of the test with LinkedHashMaps.
  • Fixed the issue with mustMatch fields status not being updated when their pair was updated.

Clarifications

  • See comments in the code

Screenshots & Video

None, mostly test changes.

Executed Tests

After building changes with mvn clean install -f xwiki-platform-core/xwiki-platform-test/xwiki-platform-test-ui and mvn clean install -f xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-templates, I could successfully pass mvn clean install -f xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-docker/ -Dit.test=UsersGroupsRightsManagementIT#createAndDeleteUser. I tested the livevalidation changes locally and I can confirm that the changes fixed the issue.

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • 16.10.X

* Improved consistency of the test with LinkedHashMaps.
* Fixed the issue with mustMatch fields status not being updated when their pair was updated.
map.put("register_password", password);
}
// We invert the order of password fields fill to test that the validation of this second password is properly
// updated when the first password field is changed.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a huge fan of this: the PO is not supposed to be a place where we test stuff. That being said we have TestUtils methods for registration so we're not supposed to use that method outside of tests for registration. So I guess it's ok.

@surli surli merged commit bb85135 into xwiki:master Nov 21, 2024
2 checks passed
@Sereza7 Sereza7 changed the title XWIKI-22121: Improve the registration experience XWIKI-22680: Regression on createAndDeleteUser Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants