From 789f5ca534607b349327ac3c7157575f1c9dd066 Mon Sep 17 00:00:00 2001 From: javier gomez Date: Mon, 8 Feb 2016 20:12:39 +0100 Subject: [PATCH] [tests] fix issue counting hits in tests --- tests/acceptance/frontend/FrontendWeblinksCest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/acceptance/frontend/FrontendWeblinksCest.php b/tests/acceptance/frontend/FrontendWeblinksCest.php index ff3007a..d1d9924 100644 --- a/tests/acceptance/frontend/FrontendWeblinksCest.php +++ b/tests/acceptance/frontend/FrontendWeblinksCest.php @@ -115,7 +115,10 @@ class FrontendWeblinksCest // Click on the link, go back, and check that hits is 1 $I->click(['link' => $title]); - $I->moveBack(); + $I->amOnPage('index.php?option=com_weblinks'); + $I->waitForText('Uncategorised','30', ['css' => 'h3']); + $I->comment('I open the uncategorised Weblink Category'); + $I->click(['link' => 'Uncategorised']); $I->expectTo('see that hits is 1'); $I->see('Hits: 1', ['class' => 'list-hits']); }