mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 23:09:41 +02:00
fix(help): add versioned doc links to support LTS/STS docs [EE-6780] (#11281)
This commit is contained in:
parent
385fd95779
commit
eda2dd20ee
3 changed files with 32 additions and 10 deletions
|
@ -1,6 +1,6 @@
|
|||
import { UserContext } from '@/react/hooks/useUser';
|
||||
import { UserViewModel } from '@/portainer/models/user';
|
||||
import { render } from '@/react-tools/test-utils';
|
||||
import { renderWithQueryClient } from '@/react-tools/test-utils';
|
||||
|
||||
import { PageHeader } from './PageHeader';
|
||||
|
||||
|
@ -9,7 +9,7 @@ test('should display a PageHeader', async () => {
|
|||
const user = new UserViewModel({ Username: username });
|
||||
|
||||
const title = 'title';
|
||||
const { queryByText } = render(
|
||||
const { queryByText } = renderWithQueryClient(
|
||||
<UserContext.Provider value={{ user }}>
|
||||
<PageHeader title={title} />
|
||||
</UserContext.Provider>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue