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

This commit is contained in:
Joffrey JAFFEUX 2019-02-21 14:39:51 +01:00 committed by GitHub
parent 81c31b331d
commit 70aec8d02a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -85,9 +85,10 @@ QUnit.test("Post date link", async assert => {
"it doesnt 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"
);