diff options
| author | Sophia Pearson <codergal89@gmail.com> | 2022-05-28 10:13:50 +0200 |
|---|---|---|
| committer | Sophia Pearson <codergal89@gmail.com> | 2022-05-28 10:13:50 +0200 |
| commit | 4281133694b2d9efcaba580dc04797a1a1ab273a (patch) | |
| tree | 0b7811cd636deb19e56db49c2c9099f669006e80 | |
| parent | 0d656a55871a0b0bdd1e39405bac93f657acc216 (diff) | |
| download | texty-4281133694b2d9efcaba580dc04797a1a1ab273a.tar.xz texty-4281133694b2d9efcaba580dc04797a1a1ab273a.zip | |
startmenu: add button l10n tests
| -rw-r--r-- | Tests/ComponentTests/test_StartMenu.gd | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/ComponentTests/test_StartMenu.gd b/Tests/ComponentTests/test_StartMenu.gd index 05e90b9..8563a67 100644 --- a/Tests/ComponentTests/test_StartMenu.gd +++ b/Tests/ComponentTests/test_StartMenu.gd @@ -46,3 +46,15 @@ func test_clicking_the_Start_button_emits_StartGame_signal(): watch_signals(_instance) yield(UiHelpers.click_control(_sender, _instance.StartButton), 'idle') assert_signal_emitted(_instance, _start_game) + +func test_Credits_button_label_is_localized(): + var label = _instance.CreditsButton.text + assert_ne(label, tr(label)) + +func test_Quit_button_label_is_localized(): + var label = _instance.QuitButton.text + assert_ne(label, tr(label)) + +func test_Start_button_label_is_localize(): + var label = _instance.StartButton.text + assert_ne(label, tr(label)) |
