add autogenerated comment blocks to tests dir
[civicrm-core.git] / tests / phpunit / WebTest / Report / DonarReportTest.php
index b15b6763416132612c716d01b1b3b3a3c20b2c68..24669f882b6cbecd94ac4bd6e4c3952410337dbe 100644 (file)
 */
 
 require_once 'CiviTest/CiviSeleniumTestCase.php';
+
+/**
+ * Class WebTest_Report_DonarReportTest
+ */
 class WebTest_Report_DonarReportTest extends CiviSeleniumTestCase {
 
   protected function setUp() {
@@ -75,7 +79,7 @@ class WebTest_Report_DonarReportTest extends CiviSeleniumTestCase {
     $this->assertElementContainsText('css=div#Contribute > table.report-layout', $reportName);
 
     // Visit report
-    $this->click("link=$reportName");
+    $this->click("xpath=//div[@id='Contribute']//table/tbody//tr/td/a/strong[text() = '$reportName']");
     $this->waitForPageToLoad($this->getTimeoutMsec());
 
     //now select the criteria