diff --git a/conftest.py b/conftest.py index 5919f317f9a..78c29fbba94 100644 --- a/conftest.py +++ b/conftest.py @@ -16,6 +16,8 @@ def start_exe_session(request): ce.reset_environment() ce.session_screenshots_dir = create_session_screenshot_dir() ce.current_browser_name = request.config.getoption("browser_or_device") + yield + # ce.reset_environment() # Clean up the environment after execution @pytest.fixture(scope="session") diff --git a/tests/test_09_consent.py b/tests/test_09_consent.py index 5ffee4644f9..f5a67d2e4fd 100644 --- a/tests/test_09_consent.py +++ b/tests/test_09_consent.py @@ -39,7 +39,6 @@ def test_parental_consent_workflow(self, get_session_link: str, scenario_data: I self.helper.enter_details() @pytest.mark.consent - @pytest.mark.mobile @pytest.mark.order(902) def test_gillick_competence(self, start_mavis: None): self.login_page.login_as_nurse() @@ -57,8 +56,6 @@ def test_gillick_competence(self, start_mavis: None): self.login_page.logout_of_mavis() @pytest.mark.consent - @pytest.mark.mobile - @pytest.mark.bugs # MAVIS-1696 @pytest.mark.order(903) def test_invalid_consent(self, start_mavis: None): self.login_page.login_as_nurse() @@ -72,7 +69,7 @@ def test_invalid_consent(self, start_mavis: None): self.sessions_page.click_scheduled() self.sessions_page.click_school1() self.sessions_page.click_check_consent_responses() - self.sessions_page.disparate_consent_scenario() + self.sessions_page.disparate_consent_scenario() # Bug: MAVIS-1696 self.dashboard_page.go_to_dashboard() self.dashboard_page.click_sessions() self.sessions_page.delete_all_sessions()