fix translations impacting other tests (#9321)

This commit is contained in:
Joffrey JAFFEUX 2020-03-31 09:26:35 +02:00 committed by GitHub
parent acc0a9673e
commit cbd72d51b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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");
}