From cbd72d51b441277d1a5249aa20c62d61a57b4543 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 31 Mar 2020 09:26:35 +0200 Subject: [PATCH] fix translations impacting other tests (#9321) --- test/javascripts/widgets/widget-dropdown-test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/javascripts/widgets/widget-dropdown-test.js b/test/javascripts/widgets/widget-dropdown-test.js index 511af7964fc..46625d7d7b2 100644 --- a/test/javascripts/widgets/widget-dropdown-test.js +++ b/test/javascripts/widgets/widget-dropdown-test.js @@ -204,11 +204,17 @@ widgetTest("content with translatedLabel", { widgetTest("content with label", { template: TEMPLATE, + _translations: I18n.translations, + beforeEach() { I18n.translations = { en: { js: { foo: "FooBaz" } } }; this.setProperties(DEFAULT_CONTENT); }, + afterEach() { + I18n.translations = this._translations; + }, + test(assert) { assert.equal(rowById(1).innerText.trim(), "FooBaz"); }