fix translations impacting other tests (#9321)
This commit is contained in:
parent
acc0a9673e
commit
cbd72d51b4
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue