mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 16:52:45 +08:00
DEV: adds tests to verify post date sharing modal behaviour (#7049)
This commit is contained in:
parent
090acb5b11
commit
81c31b331d
|
@ -84,4 +84,17 @@ QUnit.test("Post date link", async assert => {
|
|||
!exists(".share-and-invite.modal .modal-tab.invite"),
|
||||
"it doesn’t 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"
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user