- Issue created by @wim leers
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
I'll get an initial MR going.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Actually, π Placeholders/#lazy_builder is not supported for block component rendering Active implies BigPipe support.
- First commit to issue fork.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
π Introduce unit test coverage for both ComponentSource plugins (Block + SDC) Active is in, so we should now also update
\Drupal\Tests\experience_builder\Kernel\Plugin\ExperienceBuilder\ComponentSource\BlockComponentTest::testRenderComponentLive()
, which is really the accurate place to test this, notComponentTreeHydratedTest
. - π¬π§United Kingdom longwave UK
Added some more test coverage to
BlockComponentTest::testRenderComponentLive()
, - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Not yet passing tests π
Also: did you want to keep or revert your changes to
::renderComponent()
wrt#access
or not? (As discussed yesterday in person during DDD.) - First commit to issue fork.
- π¬π§United Kingdom thoward216
Moving back to "Needs work" as after rebasing some unit tests are failing.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Looks great!
But
\Drupal\Tests\experience_builder\Kernel\Plugin\ExperienceBuilder\ComponentSource\BlockComponentTest::testRenderComponentLive()
(unlike what @longwave indicated in #11? π€) still has no changes and hence:'cacheability' => $default_cacheability,
for all of its tested blocks. Let's make
\Drupal\xb_test_block\Plugin\Block\XbTestBlockInputNone
vary by theuser
cache context and have it do something like:diff --git a/tests/modules/xb_test_block/src/Plugin/Block/XbTestBlockInputNone.php b/tests/modules/xb_test_block/src/Plugin/Block/XbTestBlockInputNone.php index c7a152a19..52a413e00 100644 --- a/tests/modules/xb_test_block/src/Plugin/Block/XbTestBlockInputNone.php +++ b/tests/modules/xb_test_block/src/Plugin/Block/XbTestBlockInputNone.php @@ -19,7 +19,7 @@ final class XbTestBlockInputNone extends BlockBase { */ public function build() { return [ - '#markup' => '<div>Hello, XB!</div>', + '#markup' => '<div>Hello %user-name, from XB!</div>', ]; }
- πΊπΈUnited States tedbow Ithaca, NY, USA
phpunit test failure is π JavaScriptComponentValidationTest::testInvalidSlotIdentifiedByConfigSchema fails Active
retesting e2e tests
- π¦πΊAustralia larowlan π¦πΊπ.au GMT+10
wim leers β credited larowlan β .
-
wim leers β
committed 71609762 on 0.x
Issue #3518722 by thoward216, wim leers, longwave, tedbow, larowlan:...
-
wim leers β
committed 71609762 on 0.x
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Thanks! See you in π Placeholders/#lazy_builder is not supported for block component rendering Active next :D
Automatically closed - issue fixed for 2 weeks with no activity.