Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
fixed webapp tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenFern committed Apr 14, 2024
1 parent 50883af commit 96dc5e3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions webapp/src/components/home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,20 +152,20 @@ export const Home = () =>
from-cyan-50 via-cyan-300 to blue-500
dark:from-orange-500 dark:via-purple-500 dark:to-pink-500
buttonGradient">
<span className="text-black dark:text-white text">{ t('Home.play') }</span>
<span className="text-black dark:text-white text">{ t('Home.playClassic') }</span>
</button>
</div>
<div className="flex align-middle justify-center flex-grow m-3">
<button onClick={startSuddenDeath} className="bg-gradient-to-r
from-cyan-50 via-cyan-300 to blue-500
dark:from-orange-500 dark:via-purple-500 dark:to-pink-500
buttonGradient">
<span className="text-black dark:text-white text">JUGAR MUERTE SÚBITA</span>
<span className="text-black dark:text-white text">{ t('Home.playSuddenDeath') }</span>
</button>
</div>
<div className="flex align-middle justify-center flex-grow m-3">
<button onClick={openTagSelection} className="buttonGradient">
<span className="text-black dark:text-white ">Elige las tags</span>
<span className="text-black dark:text-white ">{ t('Home.chooseTags') }</span>
</button>

</div>
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/components/nav/Nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ export const Nav = () => {
WIQ
</Typography>

<IconButton size="large" color="inherit" data-testid="change-color">
<NightlightIcon onClick={changeTheme} style={{ color: color }} />
<IconButton onClick={changeTheme} size="large" color="inherit" data-testid="change-color">
<NightlightIcon style={{ color: color }} />
</IconButton>

<Lang
Expand Down
6 changes: 4 additions & 2 deletions webapp/src/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ i18n
tutorialP1: 'When you click on the play button, you will be shown questions along with 4 possible answers, only one of them is true, click on the correct answer to earn points.',
tutorialP2: 'The time to answer is limited. The bar at the bottom shows the remaining time. If the time runs out, the question will count as failed and you will move on to the next one.',
goodLuck: 'Good luck and show what you know!',
play: 'PLAY',
playClassic: 'PLAY CLASSIC',
playSuddenDeath: 'PLAYING SUDDEN DEATH',
chooseTags: 'Choose the tags',
infoTags: 'With the tags you can select the categories you want to be asked about.',
}
Expand Down Expand Up @@ -80,7 +81,8 @@ i18n
tutorialP1: 'Cuando pulses en el botón de jugar, se te irán mostrando preguntas junto con 4 posibles respuestas, sólo una de ellas es verdadera, haz click sobre la respuesta correcta para ganar puntos.',
tutorialP2: 'El tiempo para contestar es limitado. La barra en la parte inferior muestra el tiempo restante. Si el tiempo se termina, la pregunta contará como fallada y se pasará a la siguiente.',
goodLuck: '¡Mucha suerte y demuestra lo que sabes!',
play: 'JUGAR',
playClassic: 'JUGAR CLÁSICO',
playSuddenDeath: 'JUGAR MUERTE SÚBITA',
chooseTags: 'Elige las tags',
infoTags: 'Con las tags puedes seleccionar las categorías sobre las que quieres ser preguntado.'
}
Expand Down

0 comments on commit 96dc5e3

Please sign in to comment.