A platform for community discussion. Free, open, simple.
fix translations impacting other tests (#9321)
Joffrey JAFFEUXcbd72d51b441
diff --git a/test/javascripts/widgets/widget-dropdown-test.js b/test/javascripts/widgets/widget-dropdown-test.jsindex 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");}