This commit is contained in:
Joffrey JAFFEUX 2019-03-21 13:16:55 +01:00 committed by GitHub
parent a31a35b334
commit 5b465ce053
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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