We want to have tests that ensure that entities are previewed correctly when using the entity reference integration.

Comments

e0ipso created an issue. See original summary.

e0ipso’s picture

Title: Add function test coverage for preview on entity reference integration » Add functional test coverage for preview on entity reference integration
marcoscano’s picture

Status: Active » Needs review
StatusFileSize
new13.43 KB

Here's a first attempt to get this rolling. Although the patch is big because all of the scaffolding, etc, the test itself is quite short. I'm unsure about the different scenarios we need to cover in this case, happy to hear your feedback on that.

I'm willing to continue writing more tests, once we get aligned in the direction to go.

Thanks!

e0ipso’s picture

Reroll after a separate issue landed.

e0ipso’s picture

Status: Needs review » Needs work

Bad reroll. The enableToolbarIntegration is not indented correcty. Fix to come.

Tests look GREAT. I am inclined to merge as is, then work on more coverage later.

e0ipso’s picture

Status: Needs work » Needs review
StatusFileSize
new13.48 KB

Fixed the indentation in the schema. Omitting interdiff as it is trivial.

  • e0ipso committed 886af55 on 8.x-0.x
    Issue #3133699 by e0ipso, marcoscano: Add functional test coverage for...
e0ipso’s picture

Status: Needs review » Fixed

Fixed! 🎉

  • e0ipso committed f61822e on 8.x-0.x authored by marcoscano
    Issue #3133699 by e0ipso, marcoscano: Add functional test coverage for...
e0ipso’s picture

Drupal.org had a hiccup and didn't change the git author when changing it in the radio button. I added an extra commit to grant authorship.

e0ipso’s picture

Status: Fixed » Needs work

Re-opening to test the following edge cases:

  1. Assert that disabling the indicator via settings removes the indicator without stale caches.
  2. Assert that no access check is skipped while previewing for security reasons.
e0ipso’s picture

Status: Needs work » Needs review
StatusFileSize
new9.67 KB

Let's see if this comes back green.

  • e0ipso committed bde5421 on 8.x-0.x authored by marcoscano
    Issue #3133699 by e0ipso, marcoscano: Add functional test coverage for...
e0ipso’s picture

Status: Needs review » Fixed

Merged.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.