A platform for community discussion. Free, open, simple.
DEV: adds tests to verify post date sharing modal behaviour (#7049)
Joffrey JAFFEUX81c31b331d91
diff --git a/test/javascripts/acceptance/share-and-invite-desktop-test.js.es6 b/test/javascripts/acceptance/share-and-invite-desktop-test.js.es6index d7491f6147c..aae9a949b57 100644--- a/test/javascripts/acceptance/share-and-invite-desktop-test.js.es6+++ b/test/javascripts/acceptance/share-and-invite-desktop-test.js.es6@@ -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"+ );});