Closed (outdated)
Project:
Scheduled Updates
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 Jun 2020 at 10:32 UTC
Updated:
15 Apr 2026 at 21:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
rivimeyFirst round of changes. Tests don't run to completion yet but do run:
The patch removes the code starting 'if ($clone_field_options)' in AddFieldScheduledUpdateTypeTest.php because it really does require Ajax.
Many of the simpletest assert calls still use the 'AssertLegacy' shim and should be converted, but some have been.
Some 'throw \Exception' calls are now 'throw \LogicException' to be less generic but perhaps there are better options.
Some function docs comments have been improved but there is a lot of scope for further improvement.
Comment #3
rivimeyComment #4
tedbowI think we need to switch these to FunctionalJavascript tests. The module relies on a ton of ajax form stuff.
Here is a start. It gets
\Drupal\Tests\scheduled_updates\FunctionalJavascript\EmbeddedScheduledUpdateTypeTest::testCreateType()to pass.Though that function probably still needs work wait on elements appearing when we do an ajax submit via a button press or field change.
If we don't have proper waits then the test can start to fail randomly depending on how fast the actual test is running
I am not sure when I am going to get back to this issue hopefully this helps
Comment #6
rivimeyAdded patch to swap tests over to get ball rolling.
Comment #7
smustgrave commentedGoing to close out to release the credit but working on updating the tests in #3518981: Setup gitlab and fix up pipeline