diff --git a/tests/component/sections/account/Account.spec.tsx b/tests/component/sections/account/Account.spec.tsx
index 77fc048eb..dcf7d3862 100644
--- a/tests/component/sections/account/Account.spec.tsx
+++ b/tests/component/sections/account/Account.spec.tsx
@@ -1,8 +1,21 @@
import { Account } from '../../../../src/sections/account/Account'
+import { AccountHelper } from '../../../../src/sections/account/AccountHelper'
+import { CollectionRepository } from '@/collection/domain/repositories/CollectionRepository'
+import { CollectionMother } from '@tests/component/collection/domain/models/CollectionMother'
+const collectionRepository = {} as CollectionRepository
+const collection = CollectionMother.create({ name: 'Root' })
describe('Account', () => {
+ beforeEach(() => {
+ collectionRepository.getById = cy.stub().resolves(collection)
+ })
it('should render the correct breadcrumbs', () => {
- cy.mountAuthenticated()
+ cy.mountAuthenticated(
+
+ )
cy.findByRole('link', { name: 'Root' }).should('exist')
diff --git a/tests/component/sections/collection/Collection.spec.tsx b/tests/component/sections/collection/Collection.spec.tsx
index 15f1e32de..a707d6094 100644
--- a/tests/component/sections/collection/Collection.spec.tsx
+++ b/tests/component/sections/collection/Collection.spec.tsx
@@ -21,7 +21,7 @@ describe('Collection page', () => {
cy.customMount(
{
cy.customMount(
{
cy.customMount(
{
cy.customMount(
{
cy.customMount(
{
cy.mountAuthenticated(
{
cy.customMount(
{
cy.customMount(
{
cy.mountAuthenticated(