

def testFailingCronJobIsHighlighted(self):
    for _ in range(4):
        self.AddJobStatus('aff4:/cron/OSBreakDown', grr_rdf.CronJobRunStatus.Status.ERROR)
    self.Open('/')
    self.WaitUntil(self.IsElementPresent, 'client_query')
    self.Click('css=a[grrtarget=ManageCron]')
    self.WaitUntil(self.IsElementPresent, "css=tr.danger td:contains('OSBreakDown')")
    self.WaitUntilNot(self.IsElementPresent, "css=tr.danger td:contains('GRRVersionBreakDown')")

dataset/ETHPy150Open google/grr/grr/gui/plugins/cron_view_test.py TestCronView.testFailingCronJobIsHighlighted/original