mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-24 17:02:18 +00:00
Test fixes
This commit is contained in:
@@ -207,6 +207,7 @@ class CreateRiskAssessment(FormPage):
|
||||
'persons_responsible_structures': (regions.TextBox, (By.ID, 'id_persons_responsible_structures')),
|
||||
'suspended_structures': (regions.RadioSelect, (By.ID, 'id_suspended_structures')),
|
||||
'supervisor_consulted': (regions.CheckBox, (By.ID, 'id_supervisor_consulted')),
|
||||
'outside': (regions.CheckBox, (By.ID, 'id_outside')),
|
||||
}
|
||||
|
||||
@property
|
||||
|
||||
@@ -688,7 +688,8 @@ class TestHealthAndSafety(BaseRigboardTest):
|
||||
barrier_required=False,
|
||||
nonstandard_emergency_procedure=False,
|
||||
special_structures=False,
|
||||
suspended_structures=False)
|
||||
suspended_structures=False,
|
||||
outside=False)
|
||||
self.page = pages.EventDetail(self.driver, self.live_server_url, event_id=self.testEvent.pk).open()
|
||||
|
||||
# TODO Can I loop through all the boolean fields and test them at once?
|
||||
@@ -707,6 +708,7 @@ class TestHealthAndSafety(BaseRigboardTest):
|
||||
self.page.crew_fatigue = False
|
||||
self.page.general_notes = "There are no notes."
|
||||
self.page.big_power = False
|
||||
self.page.outside = False
|
||||
self.page.power_mic.search(self.profile.name)
|
||||
self.page.power_mic.set_option(self.profile.name, True)
|
||||
# TODO This should not be necessary, normally closes automatically
|
||||
|
||||
@@ -495,7 +495,8 @@ class TestHSLogic(TestCase):
|
||||
barrier_required=True,
|
||||
nonstandard_emergency_procedure=True,
|
||||
special_structures=False,
|
||||
suspended_structures=False),
|
||||
suspended_structures=False,
|
||||
outside=False),
|
||||
}
|
||||
|
||||
cls.checklists = {
|
||||
|
||||
Reference in New Issue
Block a user