Closed (fixed)
Project:
Drupal core
Version:
8.6.x-dev
Component:
phpunit
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2018 at 09:48 UTC
Updated:
21 May 2018 at 15:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
alexpottComment #3
dawehnerIt is a bit sad that we cannot trigger that on a more lower level using some events. Behat for example has these events, but I guess it not on the mink level.
Sorry for my dreaming of a perfect world.
Comment #4
alexpottWell it's because Goutte let's us set the http client...
And obviously testing with headless browsers don't have the need for a client to make the requests. I guess the perfect world would have some event system be a part of \Behat\Mink\Driver\CoreDriver.
Comment #5
lendudedebugability++
One question:
If we only do this for JavascriptTestBase, what's the reason for not putting it in JavascriptTestBase but in BrowserTestBase?
Comment #6
alexpott@Lendude well because that's where the other ones are for submitForm and drupalGet
Comment #7
alexpottAlso you can swap the goutte for webdriver etc... for BTBs
Comment #8
lendude@alexpott yeah that makes sense. Changing the comment to something like :
// Log only when not using GoutteDriver (like JavascriptTestBase) because
// for GoutteDriver we log with ::getResponseLogHandler.
would make that a little clearer, but then we should also change that for submitForm and drupalGet.
But this is consistent with what's in core, so RTBC +1
Comment #9
catchCommitted ea55e39 and pushed to 8.6.x. Thanks!
Comment #12
jibranThis is a test only change and no disruptive. Can we please backport this to 8.5.x?