You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PR #101 is failing because there are dependencies between the @cleanup:media and @remote-video tags in the Behat scenarios.
The @cleanup:media tag relies on the fact that the Media module is enabled, which happens in the @remote-video tag. Behat does not allow to set a priority on hooks (which is by design, ref Behat/Behat#438), so it is entirely possible that the @cleanup:media tag runs first, and in this case we get this error:
BeforeScenario # Drupal\Tests\oe_webtools\Behat\WebtoolsCleanupContext::collectExistingEntities()
The "media" entity type does not exist. (Drupal\Component\Plugin\Exception\PluginNotFoundException)
The best way to solve this would be to get rid of the @cleanup:x tags completely, it is not a good idea to rely on magically cleaning up any entities present in the system since it might hide underlying bugs in the implementation and causes data loss if a developer is pausing the test and interacting with the site. In all scenarios only the exact entities that were created should be cleaned up, no more, no less.
The text was updated successfully, but these errors were encountered:
The PR #101 is failing because there are dependencies between the
@cleanup:media
and@remote-video
tags in the Behat scenarios.The
@cleanup:media
tag relies on the fact that the Media module is enabled, which happens in the@remote-video
tag. Behat does not allow to set a priority on hooks (which is by design, ref Behat/Behat#438), so it is entirely possible that the@cleanup:media
tag runs first, and in this case we get this error:The best way to solve this would be to get rid of the
@cleanup:x
tags completely, it is not a good idea to rely on magically cleaning up any entities present in the system since it might hide underlying bugs in the implementation and causes data loss if a developer is pausing the test and interacting with the site. In all scenarios only the exact entities that were created should be cleaned up, no more, no less.The text was updated successfully, but these errors were encountered: