Testing Page Components with Layouts #549
Unanswered
andrew-tevent
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hi @andrew-tevent, I am not entirely sure I understand your scenario completely. Can you create a small sample I can download to investigate this further myself? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm rendering a Component which also happens to be a page (with
@page
directive) and a Layout - but the Layout doesn't appear to be executed and the output doesn't appear in the rendered markup in the test.Is this expected?
I've tried adding the layout to the RenderTree - but this didn't seem to render the layout's markup either.
I've also tried rendering my component as a child of the layout:
but this gave me the following:
Are layouts expected to be rendered automatically for components? If not, what is the advice for getting them working?
Beta Was this translation helpful? Give feedback.
All reactions