teammates icon indicating copy to clipboard operation
teammates copied to clipboard

Poor data cleanup after the SQL E2E tests leads to unexpected errors when running E2E tests

Open mingyang143 opened this issue 7 months ago • 0 comments

Steps to reproduce

  1. In an E2E test, call feedbackEditPage.deleteSession().
  2. Run the E2E test suite once.
  3. Run the same E2E test suite again using the same json file for the E2E test,

Expected behaviour

  • All entities created during the test should be deleted.
  • Each E2E test run should start with a fresh database state, without any persisted values from previous runs.

Actual behaviour

  • The second test run fails with: teammates.common.exception.HttpRequestFailedException: Request failed: [409] {"message":"Some entities in the databundle already exist","requestId":"586c09236d8bd7333f5f37de7b98217c"}.

Additional info

  • The only way to fix this issue is to change the JSON entity names.

mingyang143 avatar Apr 30 '25 08:04 mingyang143