After installing and enabling webprofiler I begain to experience what appeared to be caching problems with my Behat scenarios. I run a drupalvm instance with behat v3.1.0 and firefox for testing. Prior to installing I had a series of tests that ran fine. After installing, the tests began to fail for what seemed like cache problems. However, I did not experience the same problems when testing the same scenarios manually from both Firefox and Chrome. After several days of troubleshooting I was not able to identify the core issue, but as soon as I uninstalled webprofiler the tests started passing again.
One of the common problems I experienced was that custom entities were not getting inserted when they were supposed to. It was as if the behat test was using a previous user (that had already been deleted) and that user's content was still active in the database.
I also had cases where messages were not displaying, or were not displaying with the correct content for the scenario.
I'm using Drupal 8.3.4.
Comments
Comment #2
ecrutchfield CreditAttribution: ecrutchfield commentedComment #3
clemens.tolboomYou are not telling:
- what Core version you used?
- whether devel-8.x-1.x has similar results?.
- are the failures reproducable or variant?
Can you provide a failing behat test?
Comment #4
ecrutchfield CreditAttribution: ecrutchfield commentedComment #5
ecrutchfield CreditAttribution: ecrutchfield commentedThe failures were reproducible. I will try and provide a test case within the week.
Comment #6
willzyx CreditAttribution: willzyx commentedClosing for lack of activity. Feel free to reopen if the issue still exists