(frontend) update tests

Some minor changes have been integrated into the list of documents.
The tests must therefore be adapted accordingly.
This commit is contained in:
Nathan Panchout
2024-11-13 15:11:10 +01:00
committed by Anthony LC
parent 8d514bd571
commit ee937de2c4
8 changed files with 39 additions and 27 deletions

View File

@@ -17,8 +17,8 @@ describe('<Box />', () => {
);
expect(screen.getByText('My Box')).toHaveStyle(`
padding-left: 4rem;
padding-right: 4rem;
padding-left: 2.5rem;
padding-right: 2.5rem;
padding-top: 3rem;
padding-bottom: 0.5rem;`);
});

View File

@@ -1,6 +1,6 @@
import { Alert, Loader, VariantType } from '@openfun/cunningham-react';
import { useRouter } from 'next/router';
import React, { useEffect, useState } from 'react';
import { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import * as Y from 'yjs';