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-22121: Improve the registration experience #3645

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

Sereza7
Copy link
Contributor

@Sereza7 Sereza7 commented Nov 14, 2024

Context

This PR aims at fixing the flicker found at https://ci.xwiki.org/job/XWiki%20Environment%20Tests/job/xwiki-platform/job/master/731/testReport/junit/org.xwiki.administration.test.ui/AllIT$NestedRegisterIT/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___registerExistingUser_boolean__boolean__boolean__TestUtils__3_/

It seems this does not happen all the time on CI: https://ge.xwiki.org/scans/tests?search.timeZoneId=Europe%2FParis&tests.container=org.xwiki.administration.test.ui.AllIT$NestedRegisterIT
I could not reproduce this issue locally unfortunately, the solution I propose here should work (in regards to a similar fix made yesterday) but I have no way of being certain...

Jira URL

https://jira.xwiki.org/browse/XWIKI-22121

Changes

Description

  • Waited on the password confirmation field to submit the form.
  • Added a static final string for code quality (sonar check)

Clarifications

The failing test fills up the form then tries to submit it. From a very similar regression solved yesterday, it seems like we should wait a bit for the livevalidation javascript to update before trying to submit the form. Adding a wait solved the issue yesterday.

See comments in code for more info.

Screenshots & Video

No visual changes, test changes only.

Executed Tests

After building with mvn clean install -f xwiki-platform-core/xwiki-platform-test/xwiki-platform-test-ui, successfully passed the tests mvn clean install -f xwiki-platform-core/xwiki-platform-administration/xwiki-platform-administration-test/xwiki-platform-administration-test-docker -Dit.test=RegisterIT#registerExistingUser. It doesn't say everything though because I could not reproduce the flicker locally. At least I did not break the test completely with the changes.

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • None, same as all other XWIKI-22121

* Waited on the password confirmation field to submit the form.
@surli surli merged commit 3b86593 into xwiki:master Nov 14, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants