Skip to content

A platform for community discussion. Free, open, simple.

simpler post-date test to avoid tz differences (#7050)

Joffrey JAFFEUX70aec8d02ac0
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 aae9a949b57..def39dc4b6c 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"
);