Problem/Motivation
PhantomJS tests are deprecated in Drupal 8. We should remove them and all their dependencies in Drupal 9.
Proposed resolution
Remove all our code and the dependencies from composer. The following classes are removed:
- Drupal\FunctionalJavascriptTests\JavascriptTestBase
- Drupal\FunctionalJavascriptTests\LegacyJavascriptTestBase
References to these classes are updated appropriately.
This has the effect of removing the following dependencies:
- jcalderonzumba/gastonjs
- jcalderonzumba/mink-phantomjs-driver
Support for the following environment setting:
- MINK_DRIVER_ARGS_PHANTOMJS
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
The following dev dependencies:
- jcalderonzumba/gastonjs
- jcalderonzumba/mink-phantomjs-driver
are removed
Comments
Comment #2
alexpottComment #3
Mixologic9.0.0 is gonna feel so much lighter.
Comment #5
MixologicI guess it cant be a subclass of itself?
Comment #6
alexpottComment #7
MixologicNeeds-> review>> Needs->patchComment #8
alexpottderp
Comment #9
berdirAnd already needs a reroll.
Comment #10
alexpottChasing the HEAD
Comment #11
alexpottKeeping up with HEAD
Comment #12
lendudeNeeds another reroll, but looks ready to go in then.
Comment #13
lendudeSorry, on the wrong branch, my bad! Thanks @alexpott for the pointer!
This looks ready, all references to phantom are gone.
Comment #14
krzysztof domańskiNeeds a reroll.
Comment #15
alexpottRerolled.
Comment #16
lendudeComment #18
alexpottComment #20
larowlanCommitted 5733c62 and pushed to 9.0.x. Thanks!
🍰
Comment #21
larowlanComment #22
johnwebdev commentedOh, I totally misinterpreted this while working on D9 deprecation, I only thought the base class was deprecated and not the driver itself.
i.e. Looking at the WebDriver base class we could see:
which I realise now, only was for BC.
Maybe we can clarify in the CR that the PhantomJS driver has been deprecated and removed as well.
Comment #23
alexpott@johndevman I've added
to the change record.
Comment #25
xjmThis belongs in the release notes, so tagging accordingly. Remember to tag changes to dependencies at time of commit.