mirror of
https://github.com/discourse/discourse-solved.git
synced 2025-07-10 07:23:26 +00:00
DEV: re-enable and update empty state tests (#380)
This commit is contained in:
parent
1d038963fd
commit
e4b4a97d9e
@ -1,5 +1,5 @@
|
|||||||
import { visit } from "@ember/test-helpers";
|
import { visit } from "@ember/test-helpers";
|
||||||
import { skip } from "qunit";
|
import { test } from "qunit";
|
||||||
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
|
import { acceptance } from "discourse/tests/helpers/qunit-helpers";
|
||||||
import { i18n } from "discourse-i18n";
|
import { i18n } from "discourse-i18n";
|
||||||
|
|
||||||
@ -14,28 +14,26 @@ acceptance(
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
/* disabled temporarily for core updates https://github.com/discourse/discourse/pull/33455 */
|
test("When looking at own activity", async function (assert) {
|
||||||
|
|
||||||
skip("When looking at own activity", async function (assert) {
|
|
||||||
await visit(`/u/eviltrout/activity/solved`);
|
await visit(`/u/eviltrout/activity/solved`);
|
||||||
|
|
||||||
assert
|
assert
|
||||||
.dom("div.empty-state span.empty-state-title")
|
.dom(".empty-state .empty-state__title")
|
||||||
.hasText(i18n("solved.no_solved_topics_title"));
|
.hasText(i18n("solved.no_solved_topics_title"));
|
||||||
assert
|
assert
|
||||||
.dom("div.empty-state div.empty-state-body")
|
.dom(".empty-state .empty-state__body")
|
||||||
.hasText(i18n("solved.no_solved_topics_body"));
|
.hasText(i18n("solved.no_solved_topics_body"));
|
||||||
});
|
});
|
||||||
|
|
||||||
skip("When looking at another user's activity", async function (assert) {
|
test("When looking at another user's activity", async function (assert) {
|
||||||
await visit(`/u/charlie/activity/solved`);
|
await visit(`/u/charlie/activity/solved`);
|
||||||
|
|
||||||
assert.dom("div.empty-state span.empty-state-title").hasText(
|
assert.dom(".empty-state .empty-state__title").hasText(
|
||||||
i18n("solved.no_solved_topics_title_others", {
|
i18n("solved.no_solved_topics_title_others", {
|
||||||
username: "charlie",
|
username: "charlie",
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
assert.dom("div.empty-state div.empty-state-body").hasNoText();
|
assert.dom(".empty-state .empty-state__body").doesNotExist();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user