From eb71e51eac41ffb12f8c0822523fa6182078d413 Mon Sep 17 00:00:00 2001 From: SKairinos Date: Wed, 8 Nov 2023 09:54:45 +0000 Subject: [PATCH] fix assertion --- .../tests/pageObjects/portal/teach/dashboard_page.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/portal/tests/pageObjects/portal/teach/dashboard_page.py b/portal/tests/pageObjects/portal/teach/dashboard_page.py index 4edcfda1e..6a5f72921 100644 --- a/portal/tests/pageObjects/portal/teach/dashboard_page.py +++ b/portal/tests/pageObjects/portal/teach/dashboard_page.py @@ -3,11 +3,12 @@ from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import Select -from .add_independent_student_to_class_page import AddIndependentStudentToClassPage +from ..email_verification_needed_page import EmailVerificationNeededPage +from .add_independent_student_to_class_page import \ + AddIndependentStudentToClassPage from .class_page import TeachClassPage from .move_classes_page import TeachMoveClassesPage from .teach_base_page import TeachBasePage -from ..email_verification_needed_page import EmailVerificationNeededPage class TeachDashboardPage(TeachBasePage): @@ -54,7 +55,7 @@ def change_organisation_details(self, details): def has_edit_failed(self): self.wait_for_element_by_id("edit_form") errorlist = self.browser.find_element(By.ID, "edit_form").find_element(By.CLASS_NAME, "errorlist").text - error = "There is already a school or club registered with that name and postcode" + error = "There is already a school or club registered with that name" return error in errorlist def create_class(self, name, classmate_progress, teacher_id=None): @@ -92,7 +93,8 @@ def change_password(self, first_name, last_name, new_password, password): } ) - from portal.tests.pageObjects.portal.teacher_login_page import TeacherLoginPage + from portal.tests.pageObjects.portal.teacher_login_page import \ + TeacherLoginPage return TeacherLoginPage(self.browser)