From 9866124e049090790e9cbab8f3f3af9d2f0a6e15 Mon Sep 17 00:00:00 2001
From: Rachel Sidney <13515124@std.stei.itb.ac.id>
Date: Fri, 27 Apr 2018 11:34:42 +0700
Subject: [PATCH] Update QuestionAnswerTest.php

---
 tests/Feature/QuestionAnswerTest.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/Feature/QuestionAnswerTest.php b/tests/Feature/QuestionAnswerTest.php
index 4403406..ed2f499 100644
--- a/tests/Feature/QuestionAnswerTest.php
+++ b/tests/Feature/QuestionAnswerTest.php
@@ -119,10 +119,9 @@ class QuestionAnswerTest extends TestCase
                          ->see('Question Added');
         
         $dummy = Question::where('topic', 'Question for Testing')->first();
-        $written_on = 'Written on ' . $dummy->created_at->format('d M Y');
         $response = $this->actingAs($user)
                          ->visit('admin/questions')
-                         ->click($written_on)
+                         ->click('Question for Testing')
                          ->see('Written on')
                          ->see('Last Editted on')
                          ->see('by');
-- 
GitLab