fix translations impacting other tests (#9321)

fix translations impacting other tests (#9321)

diff --git a/test/javascripts/widgets/widget-dropdown-test.js b/test/javascripts/widgets/widget-dropdown-test.js
index 511af79..46625d7 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");
   }

GitHub sha: cbd72d51

This commit appears in #9321 which was merged by jjaffeux.