- Issue created by @michelle
- 🇷🇴Romania amateescu
I was 100% sure we had test coverage for this, so I looked into it and turns out it's a problem that can only be reproduced in the UI, and even though
WorkspaceMenuLinkContentIntegrationTest
is a functional test, it's doing CRUD operations on menu links via API calls :/ - Merge request !7548Ensure that newly-created entities are seen correctly as the default revision. → (Open) created by amateescu
- Status changed to Needs review
10 months ago 3:59pm 17 April 2024 - 🇷🇴Romania amateescu
Opened a MR for it, and the bug can be easily tested by changing the existing coverage to do menu link operations via the UI, as it should :)
Btw, the problem is not only for sub workspaces, top-level ones have the same issue.
- Status changed to RTBC
10 months ago 1:52pm 19 April 2024 - 🇺🇸United States smustgrave
Following the steps
1. Standard Drupal install
2. Enable workspaces
3. Go to stage space
4. Create a menu link
5. Go back to live space
6. Don't see menu linkApplying MR fixes the problem.
1) Drupal\Tests\workspaces\Functional\WorkspaceMenuLinkContentIntegrationTest::testWorkspacesWithCustomMenuLinks Behat\Mink\Exception\ExpectationException: Link with label stage link not found. /builds/issue/drupal-3438771/core/tests/Drupal/Tests/WebAssert.php:587 /builds/issue/drupal-3438771/core/tests/Drupal/Tests/WebAssert.php:313 /builds/issue/drupal-3438771/core/modules/workspaces/tests/src/Functional/WorkspaceMenuLinkContentIntegrationTest.php:106 /builds/issue/drupal-3438771/vendor/phpunit/phpunit/src/Framework/TestResult.php:729 ERRORS! Tests: 1, Assertions: 14, Errors: 1.
Shows the test coverage
- Status changed to Fixed
10 months ago 10:44am 22 April 2024 - 🇬🇧United Kingdom catch
Committed/pushed to 11.x and cherry-picked 10.3.x, thanks!
Automatically closed - issue fixed for 2 weeks with no activity.