diff --git a/client/src/__tests__/pages/Teacher/EditorQuiz/EditorQuiz.test.tsx b/client/src/__tests__/pages/Teacher/EditorQuiz/EditorQuiz.test.tsx
index bf9125e..be16435 100644
--- a/client/src/__tests__/pages/Teacher/EditorQuiz/EditorQuiz.test.tsx
+++ b/client/src/__tests__/pages/Teacher/EditorQuiz/EditorQuiz.test.tsx
@@ -60,3 +60,21 @@ describe('QuizForm Component', () => {
});
});
+
+test('template-select is present', async () => {
+ render(
+
+
+
+ );
+
+ 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);
+ });
+
+});
diff --git a/client/src/pages/Teacher/EditorQuiz/EditorQuiz.tsx b/client/src/pages/Teacher/EditorQuiz/EditorQuiz.tsx
index d03215f..319ca4c 100644
--- a/client/src/pages/Teacher/EditorQuiz/EditorQuiz.tsx
+++ b/client/src/pages/Teacher/EditorQuiz/EditorQuiz.tsx
@@ -276,6 +276,10 @@ const QuizForm: React.FC = () => {
displayEmpty
onChange={(e) => handleSelectChange(e.target.value, templates.find(t => t.value === e.target.value)?.label || '')}
style={{ width: '210px' }}
+ inputProps={{
+ 'data-testid': 'template-select'
+ }}
+
>
{templates.map((template, index) => (