Skip to content

Commit

Permalink
fix assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Nov 8, 2023
1 parent 09bdd57 commit eb71e51
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions portal/tests/pageObjects/portal/teach/dashboard_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit eb71e51

Please sign in to comment.