Three test cases in PHPUnit SchedulerNonEnabledTypeTest fail in Next Major (D11). The tests started to fail sometime between 11 August (all OK) and 14 August, when I first noticed the failure.
Drupal\Tests\scheduler\Functional\SchedulerNonEnabledTypeTest::testNonEnabledType with data set "#commerce_product-3" (3, 'commerce_product', 'non_enabled_product', 'Enabling publishing only', true, false)
Behat\Mink\Exception\ElementNotFoundException: Form field with id|name|label|value "publish_on[0][value][date]" not found.
This is from https://git.drupalcode.org/project/scheduler/-/jobs/2451710#L1060
Comments
Comment #3
jonathan1055 commentedThe problem is that the 'product variant types' checkbox used to be ticked by default, but now it is not, which caused the "save" to fail, and hence the rest of the test failed.
The test is now improved to check that the save is successful, as that will highlight the actual problem. All entity types will be protected for this kind of future change.
Comment #4
jonathan1055 commentedWe now get the more helpful test failure message
See https://git.drupalcode.org/project/scheduler/-/jobs/2506875#L485
Comment #6
jonathan1055 commentedNext Major tests all pass
https://git.drupalcode.org/project/scheduler/-/jobs/2518751#L660
Merged and fixed.