canNotGiveBananaTwice is still unreliable
The banana related tests in UserApiCest.php call faker->text(120)
to get a random message. This method only gurantees a minimum string length of 5: https://github.com/fzaninotto/Faker/blob/095047bc21a4eaadacd56e1e7a9535f366931fef/src/Faker/Provider/Lorem.php#L165
This was fixed for canGiveBanana
in 6f0f1ec9, but can still happen in canNotGiveBananaTwice
(see this pipeline for an example: https://gitlab.com/foodsharing-dev/foodsharing/-/jobs/705487098). A minimum string length should also be enforced for canNotGiveBananaToMyself
, although the API will always return a 403 before it checks the minimum length anyway.