Skip to content

Commit

Permalink
Merge pull request #27 from dhiva/master
Browse files Browse the repository at this point in the history
Fix DOM query in CountSummary method in MergeHTMLReportsTask
  • Loading branch information
DavertMik authored Mar 9, 2017
2 parents d1f2ef8 + 3f8baf1 commit d0902dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MergeReports.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public function run()
* @param $dstFile \DOMDocument - destination file
*/
private function countSummary($dstFile){
$tests = (new \DOMXPath($dstFile))->query("//table//tr[contains(@class,'scenarioRow')]");
$tests = (new \DOMXPath($dstFile))->query("//table/tr[contains(@class,'scenarioRow')]");
foreach($tests as $test){
$class = str_replace('scenarioRow ', '', $test->getAttribute('class'));
switch($class){
Expand Down Expand Up @@ -297,4 +297,4 @@ private function updateButtons($dstFile){
}
}

}
}

0 comments on commit d0902dd

Please sign in to comment.