diff --git a/tests/Feature/QuestionAnswerTest.php b/tests/Feature/QuestionAnswerTest.php index 44034069164be38a375eeec44843008e3043b852..ed2f499cfa13f3b140c5080a83c442a2ba7ff7fa 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');