mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 21:23:59 +08:00
fix tests (#7234)
This commit is contained in:
parent
a31a35b334
commit
5b465ce053
|
@ -56,8 +56,8 @@ QUnit.test("toggles email visibility", async assert => {
|
||||||
});
|
});
|
||||||
|
|
||||||
QUnit.test("switching tabs", async assert => {
|
QUnit.test("switching tabs", async assert => {
|
||||||
const activeUser = "eviltrout@example.com";
|
const activeUser = "eviltrout";
|
||||||
const suspectUser = "sam@example.com";
|
const suspectUser = "sam";
|
||||||
const activeTitle = I18n.t("admin.users.titles.active");
|
const activeTitle = I18n.t("admin.users.titles.active");
|
||||||
const suspectTitle = I18n.t("admin.users.titles.suspect");
|
const suspectTitle = I18n.t("admin.users.titles.suspect");
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ QUnit.test("switching tabs", async assert => {
|
||||||
|
|
||||||
assert.equal(find(".admin-title h2").text(), activeTitle);
|
assert.equal(find(".admin-title h2").text(), activeTitle);
|
||||||
assert.ok(
|
assert.ok(
|
||||||
find(".users-list .user:nth-child(1) .email")
|
find(".users-list .user:nth-child(1) .username")
|
||||||
.text()
|
.text()
|
||||||
.includes(activeUser)
|
.includes(activeUser)
|
||||||
);
|
);
|
||||||
|
@ -74,7 +74,7 @@ QUnit.test("switching tabs", async assert => {
|
||||||
|
|
||||||
assert.equal(find(".admin-title h2").text(), suspectTitle);
|
assert.equal(find(".admin-title h2").text(), suspectTitle);
|
||||||
assert.ok(
|
assert.ok(
|
||||||
find(".users-list .user:nth-child(1) .email")
|
find(".users-list .user:nth-child(1) .username")
|
||||||
.text()
|
.text()
|
||||||
.includes(suspectUser)
|
.includes(suspectUser)
|
||||||
);
|
);
|
||||||
|
@ -83,7 +83,7 @@ QUnit.test("switching tabs", async assert => {
|
||||||
|
|
||||||
assert.equal(find(".admin-title h2").text(), suspectTitle);
|
assert.equal(find(".admin-title h2").text(), suspectTitle);
|
||||||
assert.ok(
|
assert.ok(
|
||||||
find(".users-list .user:nth-child(1) .email")
|
find(".users-list .user:nth-child(1) .username")
|
||||||
.text()
|
.text()
|
||||||
.includes(suspectUser)
|
.includes(suspectUser)
|
||||||
);
|
);
|
||||||
|
@ -92,7 +92,7 @@ QUnit.test("switching tabs", async assert => {
|
||||||
|
|
||||||
assert.equal(find(".admin-title h2").text(), activeTitle);
|
assert.equal(find(".admin-title h2").text(), activeTitle);
|
||||||
assert.ok(
|
assert.ok(
|
||||||
find(".users-list .user:nth-child(1) .email")
|
find(".users-list .user:nth-child(1) .username")
|
||||||
.text()
|
.text()
|
||||||
.includes(activeUser)
|
.includes(activeUser)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user