def METHOD_NAME(self):
    ev = self.create_event_with_jobs()
    url = reverse('ci:view_repo', args=[ev.base.branch.repository.pk])
    self.get(url)
    self.check_repos()
    self.check_events()
    ev.status = models.JobStatus.SUCCESS
    ev.save()
    for job in ev.jobs.all():
        job.status = models.JobStatus.SUCCESS
        job.failed_step = "Failed"
        job.invalidated = True
        job.save()
    self.wait_for_js()
    self.check_js_error()
    self.check_repos()
    self.check_events()