DEV: adds tests to verify post date sharing modal behaviour (#7049)

This commit is contained in:
Joffrey JAFFEUX 2019-02-21 14:04:56 +01:00 committed by GitHub
parent 090acb5b11
commit 81c31b331d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,4 +84,17 @@ QUnit.test("Post date link", async assert => {
!exists(".share-and-invite.modal .modal-tab.invite"),
"it doesnt show the invite tab"
);
assert.equal(
find(".share-and-invite.modal .modal-panel.share .title").text(),
"Post #2, Feb 5, '13 10:32 PM",
"it shows the post number with the date"
);
assert.ok(
find(".share-and-invite.modal .modal-panel.share .topic-share-url")
.val()
.includes("/t/internationalization-localization/280/2?u=eviltrout"),
"it shows the topic sharing url including the post number"
);
});