Asserts task item progress bar.
int $row: The row of the item you want to check.
int $state: The expected state.
private function assertJobStateIcon($row, $state) {
if ($state == 'Unprocessed' || $state == 'Rejected' || $state == 'Aborted' || $state == 'Finished') {
$result = $this
->xpath('//table/tbody/tr[' . $row . ']/td[6]')[0];
$this
->assertEquals($state, trim($result
->getHtml()));
}
else {
$result = $this
->xpath('//table/tbody/tr[' . $row . ']/td[1]/img')[0];
$this
->assertEquals($state, $result
->getAttribute('title'));
}
}