From 2194ffd92976c233cd4ee19a2b2d66ece072dc14 Mon Sep 17 00:00:00 2001 From: Kristjan ESPERANTO <35647502+KristjanESPERANTO@users.noreply.github.com> Date: Mon, 9 Jun 2025 12:56:22 +0200 Subject: [PATCH] [tests] Fix and refactor e2e test "Same keys" in "translations_spec.js" (#3809) While working on the translations (in #3792 and #3794) I realised that the e2e "Same keys" tests were not working entirely. There was also a TODO entry for this in the test, as well as a try-catch-block workaround. I therefore fixed and refactored it. I also sorted the translations in `translations/translations.js`, so that the test outputs are alphabetically. --- CHANGELOG.md | 1 + tests/e2e/translations_spec.js | 106 +++++++++++++++++---------------- translations/translations.js | 62 +++++++++---------- 3 files changed, 86 insertions(+), 83 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac1ffbb4..431f60dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,7 @@ planned for 2025-07-01 - [calendar] fix fullday event rrule until with timezone offset (#3781) - [feat] Add rule `no-undef` in config file validation to fix #3785 (#3786) - [fonts] Fix `roboto.css` to avoid error message `Unknown descriptor 'var(' in @font-face rule.` in firefox console (#3787) +- [tests] Fix and refactor e2e test `Same keys` in `translations_spec.js` (#3809) ### Updated diff --git a/tests/e2e/translations_spec.js b/tests/e2e/translations_spec.js index 07a99e21..4f7f01a3 100644 --- a/tests/e2e/translations_spec.js +++ b/tests/e2e/translations_spec.js @@ -154,77 +154,79 @@ describe("Translations", () => { describe("Same keys", () => { let base; - let missing = []; - beforeAll(() => { - return new Promise((done) => { - const dom = new JSDOM( - `\ - \ -