mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
Compare commits
1 commit
773ede1933
...
312164b0c2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
312164b0c2 |
2 changed files with 0 additions and 22 deletions
|
|
@ -60,21 +60,3 @@ describe('QuizForm Component', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test('template-select is present', async () => {
|
|
||||||
render(
|
|
||||||
<MemoryRouter initialEntries={['/teacher/editor-quiz']}>
|
|
||||||
<QuizForm />
|
|
||||||
</MemoryRouter>
|
|
||||||
);
|
|
||||||
|
|
||||||
expect(screen.queryByText('Modèles de questions')).toBeInTheDocument();
|
|
||||||
const templateButton = screen.getByTestId('template-select');
|
|
||||||
fireEvent.mouseDown(templateButton);
|
|
||||||
|
|
||||||
await waitFor(() => {
|
|
||||||
const vraiFauxTemplate = screen.queryAllByText(/Vrai\/Faux/i);
|
|
||||||
expect(vraiFauxTemplate.length).toBeGreaterThan(0);
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
|
||||||
|
|
@ -276,10 +276,6 @@ const QuizForm: React.FC = () => {
|
||||||
displayEmpty
|
displayEmpty
|
||||||
onChange={(e) => handleSelectChange(e.target.value, templates.find(t => t.value === e.target.value)?.label || '')}
|
onChange={(e) => handleSelectChange(e.target.value, templates.find(t => t.value === e.target.value)?.label || '')}
|
||||||
style={{ width: '210px' }}
|
style={{ width: '210px' }}
|
||||||
inputProps={{
|
|
||||||
'data-testid': 'template-select'
|
|
||||||
}}
|
|
||||||
|
|
||||||
>
|
>
|
||||||
<MenuItem value="" disabled>Modèles de questions</MenuItem>
|
<MenuItem value="" disabled>Modèles de questions</MenuItem>
|
||||||
{templates.map((template, index) => (
|
{templates.map((template, index) => (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue