added css class to target running records in timesheet tables (#1042)

This commit is contained in:
Kevin Papst
2019-08-16 22:34:41 +02:00
committed by GitHub
parent 388c3ec188
commit 025c6b0e7b
4 changed files with 14 additions and 4 deletions

View File

@@ -53,6 +53,7 @@ class TimesheetControllerTest extends ControllerBaseTest
$em = $client->getContainer()->get('doctrine.orm.entity_manager');
$fixture = new TimesheetFixtures();
$fixture->setAmount(5);
$fixture->setAmountRunning(2);
$fixture->setUser($this->getUserByRole($em, User::ROLE_USER));
$fixture->setStartDate($start);
$this->importFixture($em, $fixture);
@@ -72,7 +73,11 @@ class TimesheetControllerTest extends ControllerBaseTest
$this->assertTrue($client->getResponse()->isSuccessful());
$this->assertHasDataTable($client);
$this->assertDataTableRowCount($client, 'datatable_timesheet', 5);
$this->assertDataTableRowCount($client, 'datatable_timesheet', 7);
// make sure the recording css class exist on tr for targeting running record rows
$node = $client->getCrawler()->filter('section.content div#datatable_timesheet table.table-striped tbody tr.recording');
self::assertEquals(2, $node->count());
}
public function testExportAction()