-
{questions[numQuestion].getQuestion()}
+
{questions[numQuestion].getQuestion()}
diff --git a/webapp/src/components/questionView/QuestionView.test.js b/webapp/src/components/questionView/QuestionView.test.js
index d00a36e..11c2439 100644
--- a/webapp/src/components/questionView/QuestionView.test.js
+++ b/webapp/src/components/questionView/QuestionView.test.js
@@ -112,6 +112,7 @@ describe('Question View component', () => {
expect(correctAnswerButton).toHaveStyle('background-color: #6EF26E');
}, { timeout: 1000 }); // Esperar 1 segundo
});
+
it('shows colors to reveal false answer and it sounds', async () => {
setupAudioMock()
await act(async () =>{
@@ -130,14 +131,14 @@ describe('Question View component', () => {
}, { timeout: 1000 }); // Esperar 1 segundo
});
- it('shows timer and tiktak sound', async () => {
+ it('shows timer', async () => {
setupAudioMock()
await act(async () =>{
await render(
);
})
await waitFor(() => expect(screen.getByText('What is the population of Oviedo?')).toBeInTheDocument());
- expect(global.Audio).toHaveBeenCalledWith('/tictac.mp3');
+ // expect(global.Audio).toHaveBeenCalledWith('/tictac.mp3');
const timerElement = screen.getByText(new RegExp(`(\\d+) ${i18en.t('questionView.seconds')}`));
expect(timerElement).toBeInTheDocument(); // Verificar que el temporizador esté presente en el DOM
diff --git a/webapp/src/translations/en/global.json b/webapp/src/translations/en/global.json
index 1bcf3aa..3994f83 100644
--- a/webapp/src/translations/en/global.json
+++ b/webapp/src/translations/en/global.json
@@ -30,12 +30,17 @@
"how_to_play_p3": "Choose the correct answer from the options provided.",
"how_to_play_p4": "Click or tap on your selected answer to submit it.",
"scoring": "Scoring:",
- "scoring_p1": "Each correct answer earns you x points.",
- "scoring_p2": "Incorrect answers do not deduct points.",
+ "scoring_p1": "Each correct answer earns you 100 points.",
+ "scoring_p2": "Incorrect answers deduct 50 points.",
"time_limit": "Time Limit:",
"time_limit_p1": "Some game modes may have a time limit for answering each question. Be quick and accurate to maximize your score.",
"have_fun": "Have Fun!:",
- "have_fun_p1": "Enjoy the game and test your knowledge. Good luck!"
+ "have_fun_p1": "Enjoy the game and test your knowledge. Good luck!",
+ "voice": "Voice and Keyboard Accessibility",
+"voice_p1": "You have the option to listen to the question and the answer. By pressing a button, you can hear the question and then the answers with a number preceding each one.",
+"voice_p2": "By pressing a button, you can hear the question and then the answers with a number preceding each one.",
+"voice_p3": "This number is used to respond by pressing the corresponding number on the keyboard to the answer you choose.",
+"voice_p4": "Additionally, you can activate the voice by pressing the letter 's'."
},
"login": {
"title": "Login",
diff --git a/webapp/src/translations/es/global.json b/webapp/src/translations/es/global.json
index 8906341..aca34f6 100644
--- a/webapp/src/translations/es/global.json
+++ b/webapp/src/translations/es/global.json
@@ -33,13 +33,19 @@
"how_to_play_p4": "Haz clic o toca tu respuesta seleccionada para enviarla.",
"scoring": "Puntuación:",
- "scoring_p1": "Cada respuesta correcta te otorga x puntos.",
- "scoring_p2": "Las respuestas incorrectas no restan puntos.",
+ "scoring_p1": "Cada respuesta correcta te otorga 100 puntos.",
+ "scoring_p2": "Las respuestas incorrectas restan 50 puntos.",
"time_limit": "Límite de Tiempo:",
"time_limit_p1": "Algunos modos de juego pueden tener un límite de tiempo para responder cada pregunta. Sé rápido y preciso para maximizar tu puntuación.",
"have_fun": "¡Diviértete!",
- "have_fun_p1": "¡Disfruta del juego y pon a prueba tus conocimientos. Buena suerte!"
- },
+ "have_fun_p1": "¡Disfruta del juego y pon a prueba tus conocimientos. Buena suerte!",
+ "voice": "Voz y accesibilidad por teclado",
+ "voice_p1": "Tienes la opción de escuchar la pregunta y la respuesta. Pulsando un botón podrás escuchar la pregunta y seguidamente las respuestas con un número delante.",
+ "voice_p2": "Pulsando un botón podrás escuchar la pregunta y seguidamente las respuestas con un número delante.",
+ "voice_p3": "Este número sirve para responder pulsando por teclado el número correspondiente a la respuesta que desees.",
+ "voice_p4": "Además, podrás activar la voz pulsando la letra s"
+
+ },
"login": {
"title": "Inicio de sesión",
"username_placeholder": "Nombre de usuario o Correo Electrónico",
diff --git a/webapp/src/translations/tk/global.json b/webapp/src/translations/tk/global.json
index 8fa408f..8302431 100644
--- a/webapp/src/translations/tk/global.json
+++ b/webapp/src/translations/tk/global.json
@@ -29,12 +29,17 @@
"how_to_play_p3": "Sağlanan seçenekler arasından doğru cevabı seçin.",
"how_to_play_p4": "Seçtiğiniz cevabı göndermek için üzerine tıklayın veya dokunun.",
"scoring": "Puanlama:",
- "scoring_p1": "Her doğru cevap size x puan kazandırır.",
- "scoring_p2": "Yanlış cevaplar puan kesintisi yapmaz.",
+ "scoring_p1": "Her doğru cevap size 100 puan kazandırır.",
+ "scoring_p2": "Yanlış cevaplar 50 puan keser.",
"time_limit": "Zaman Sınırı:",
"time_limit_p1": "Bazı oyun modları, her soruyu cevaplama için bir zaman sınırına sahip olabilir. Skorunuzu maksimize etmek için hızlı ve doğru olun.",
"have_fun": "İyi Eğlenceler!:",
- "have_fun_p1": "Oyunun tadını çıkarın ve bilginizi test edin. İyi şanslar!"
+ "have_fun_p1": "Oyunun tadını çıkarın ve bilginizi test edin. İyi şanslar!",
+ "voice": "Ses ve Klavye Erişilebilirliği",
+"voice_p1": "Soruyu ve cevabı dinleme seçeneğiniz bulunmaktadır. Bir düğmeye basarak, soruyu dinleyebilir ve ardından her biri önünde bir numara olan cevapları dinleyebilirsiniz.",
+"voice_p2": "Bir düğmeye basarak, soruyu dinleyebilir ve ardından her biri önünde bir numara olan cevapları dinleyebilirsiniz.",
+"voice_p3": "Bu numara, seçtiğiniz cevaba klavyede karşılık gelen numarayı basarak yanıt vermek için kullanılır.",
+"voice_p4": "Ayrıca, 's' harfine basarak sesi aktive edebilirsiniz."
},
"login": {
"title": "Giriş",