def test_look_at_single_pdf(self): user = self.users[0] submission = random.choice(self.submissions) self.run_sequence( "Look at a single pdf", [ S.get('tried to go to pdf', reverse('intake-filled_pdf', kwargs={'submission_id': submission.id})), S.fill_form('entered login info', login=user.email, password=fake_password), S.wait('wait for pdf to load', 2) ], base.SMALL_DESKTOP)
def test_look_at_app_bundle(self): user = self.users[0] submissions = random.sample( self.submissions, 3) self.run_sequence( "Look at app bundle", [ S.get('tried to go to app bundle', url_with_ids('intake-app_bundle', [s.id for s in submissions])), S.fill_form('entered login info', login=user.email, password=fake_password), S.wait('wait for pdf to load', 4) ], base.SMALL_DESKTOP)
def test_look_at_app_bundle_with_pdf(self): user = self.sfpubdef_users[0] submissions = self.sf_submissions self.run_sequence("Look at app pdf bundle", [ S.get( 'tried to go to app bundle', url_with_ids('intake-app_bundle', [s.id for s in submissions])), S.fill_form('entered login info', login=user.email, password=fake_password), S.wait('wait for pdf to load', 2) ], base.SMALL_DESKTOP)
def test_look_at_app_detail_with_pdf(self): user = self.sfpubdef_users[0] submission = random.choice(self.sf_submissions) self.run_sequence("Look at app with pdf", [ S.get( 'tried to go to app detail', reverse('intake-app_detail', kwargs={'submission_id': submission.id})), S.fill_form('entered login info', login=user.email, password=fake_password), S.wait('wait for pdf to load', 1) ], base.SMALL_DESKTOP)
def test_look_at_app_detail_with_pdf(self): user = self.sf_pubdef_user submission = random.choice(self.sf_pubdef_submissions) self.run_sequence( "Look at app with pdf", [ S.get('tried to go to app detail', reverse('intake-app_detail', kwargs={'submission_id': submission.id})), S.fill_form('entered login info', login=user.email, password=fake_password), S.wait('wait for pdf to load', 1) ], base.SMALL_DESKTOP)
def test_look_at_app_bundle_with_pdf(self): user = self.sf_pubdef_user bundle = models.ApplicationBundle.create_with_submissions( submissions=self.sf_pubdef_submissions, organization=self.sf_pubdef) self.run_sequence("Look at app pdf bundle", [ S.get( 'tried to go to app bundle', reverse('intake-app_bundle_detail', kwargs=dict(bundle_id=bundle.id))), S.fill_form('entered login info', login=user.email, password=fake_password), S.wait('wait for pdf to load', 2) ], base.SMALL_DESKTOP)
def test_look_at_app_bundle_with_pdf(self): user = self.sf_pubdef_user bundle = models.ApplicationBundle.create_with_submissions( submissions=self.sf_pubdef_submissions, organization=self.sf_pubdef) self.run_sequence( "Look at app pdf bundle", [ S.get('tried to go to app bundle', reverse('intake-app_bundle_detail', kwargs=dict(bundle_id=bundle.id))), S.fill_form('entered login info', login=user.email, password=fake_password), S.wait('wait for pdf to load', 2) ], base.SMALL_DESKTOP)