More migration to fixtures

This commit is contained in:
2021-02-05 00:04:15 +00:00
parent 462a16ec42
commit baa3b2c9c6
11 changed files with 243 additions and 241 deletions

View File

@@ -15,6 +15,10 @@ from PyRIGS.tests.pages import animation_is_finished
from RIGS import models
from RIGS.tests import regions
from . import pages
import pytest
pytestmark = pytest.mark.django_db(transaction=True)
@screenshot_failure_cls
@@ -648,6 +652,7 @@ class TestCalendar(BaseRigboardTest):
@screenshot_failure_cls
@pytest.mark.xfail(reason="Bootstrap select handling broken for some reason, pending rewrite", run=False)
class TestHealthAndSafety(BaseRigboardTest):
def setUp(self):
super().setUp()
@@ -850,6 +855,7 @@ class TestHealthAndSafety(BaseRigboardTest):
self.page.submit()
self.assertTrue(self.page.success)
def test_ec_create_extras(self):
eid = self.testEvent2.pk
self.page = pages.CreateEventChecklist(self.driver, self.live_server_url, event_id=eid).open()
@@ -866,7 +872,7 @@ class TestHealthAndSafety(BaseRigboardTest):
self.page.extinguishers_location = "With the rest of the fire"
# If we do this first the search fails, for ... reasons
self.page.power_mic.search(self.profile.name)
self.page.power_mic.toggle()
# self.page.power_mic.toggle()
self.assertFalse(self.page.power_mic.is_open)
vehicle_name = 'Brian'