From 70aec8d02ac05265d316b11cb2594070ab9ad6ea Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 21 Feb 2019 14:39:51 +0100 Subject: [PATCH] simpler post-date test to avoid tz differences (#7050) --- .../acceptance/share-and-invite-desktop-test.js.es6 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 aae9a949b5..def39dc4b6 100644 --- a/test/javascripts/acceptance/share-and-invite-desktop-test.js.es6 +++ b/test/javascripts/acceptance/share-and-invite-desktop-test.js.es6 @@ -85,9 +85,10 @@ QUnit.test("Post date link", async assert => { "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", + assert.ok( + find(".share-and-invite.modal .modal-panel.share .title") + .text() + .includes("Post #2, Feb"), "it shows the post number with the date" );