rubber-blueR
Refine2y ago
6 replies
rubber-blue

RTL with themedLayoutV2 Sidebar

For some reason I can’t render the sidebar to write UI tests

const RemixStub = createRemixStub([
    {
        path: "/",
        Component: App
    },
])
await act(async () => {
    const screen = render(
        <RemixStub
            initialEntries={['/']}
        />,
    )
    const links = await screen.findAllByRole('a')
})

Error: Unable to find role="a"
Was this page helpful?