Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-25265

NotificationsSettingsIT#watchAndRename fails locally when run after the other tests of its class

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 18.6.0
    • None
    • Unknown

    Description

      What happens

      Running the whole NotificationsSettingsIT class locally, watchAndRename fails on its last assertion, which checks that the original reference of a renamed page is no longer watched:

      testUtils.gotoPage(testReference);
      watchButtonElement = new NotificationWatchButtonElement();
      assertTrue(watchButtonElement.isNotSet());
      
      org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
        at NotificationsSettingsIT.watchAndRename(NotificationsSettingsIT.java:874)
      

      Command used:

      mvn clean verify -B -ntp -pl xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-test/xwiki-platform-notifications-test-docker -Plegacy,docker,integration-tests -Dit.test=NotificationsSettingsIT
      
      • The test passes when run on its own, so it depends on state left behind by the tests that run before it in the class (@Order 1 to 5).
      • The failure is unrelated to XWIKI-24621, where it was found: the class gave the same failure, with the same message, both with the XWIKI-24621 fix and with the unmodified master version of NotificationsWatchUIX, two runs each. watchAndRename never opens the watch modal anyway.
      • Environment: macOS, HSQLDB embedded, Jetty standalone, Firefox, on 2026-08-12 with the master of that day (18.7.0-SNAPSHOT). It has not been re-checked since then; the class has gained tests in the meantime (XWIKI-25142, XWIKI-25113).

      Not seen on CI

      Since 2026-06-01 the test passed 2137 times out of 2146 on ci.xwiki.org. The 9 failures all happened in builds where other tests of the class failed too, so there is no isolated failure of this test on CI, which is why this issue is not labelled flickering.

      Next step

      Not investigated yet. Since the test passes alone, start by listing the notification filter preferences of the test user (FIRST_USER_NAME) just before the last assertion, to find which one, left by an earlier test, still applies to the original reference after the rename.

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: