2020-03-03 03:24:31 +08:00
|
|
|
import pretender from "helpers/create-pretender";
|
2019-05-07 00:28:03 +08:00
|
|
|
import { acceptance } from "helpers/qunit-helpers";
|
|
|
|
|
|
|
|
acceptance("Click Track", {});
|
|
|
|
|
|
|
|
QUnit.test("Do not track mentions", async assert => {
|
2020-03-03 03:24:31 +08:00
|
|
|
pretender.post("/clicks/track", () => assert.ok(false));
|
2019-05-07 00:28:03 +08:00
|
|
|
|
|
|
|
await visit("/t/internationalization-localization/280");
|
2020-02-13 17:58:17 +08:00
|
|
|
assert.ok(invisible(".user-card"), "card should not appear");
|
2019-05-07 00:28:03 +08:00
|
|
|
|
|
|
|
await click("article[data-post-id=3651] a.mention");
|
2020-02-13 17:58:17 +08:00
|
|
|
assert.ok(visible(".user-card"), "card should appear");
|
2019-05-07 00:28:03 +08:00
|
|
|
assert.equal(currentURL(), "/t/internationalization-localization/280");
|
|
|
|
});
|