mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:23:13 +08:00
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
Block a user