From 81c31b331d910a74e69332b622395f789eb6e56c Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 21 Feb 2019 14:04:56 +0100 Subject: [PATCH] DEV: adds tests to verify post date sharing modal behaviour (#7049) --- .../acceptance/share-and-invite-desktop-test.js.es6 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/javascripts/acceptance/share-and-invite-desktop-test.js.es6 b/test/javascripts/acceptance/share-and-invite-desktop-test.js.es6 index 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" + ); });