11import logging
2- from playwright .sync_api import Page ,expect
2+ from playwright .sync_api import Page , expect
33from pages .base_page import BasePage
44
55
@@ -45,15 +45,17 @@ def click_start_date_calendar(self) -> None:
4545 None
4646 """
4747 logging .info ("Clicking Start Date Calendar on Create Organisation page" )
48- self .start_date_calendar .click ()
48+ self .start_date_calendar .click ()
49+
4950 def fill_audit_reason (self , text : str ) -> None :
5051 """
5152 This method is designed to fill in the Audit Reason field on the Create Organisation page.
5253 Returns:
5354 None
5455 """
5556 logging .info ("Filling Audit Reason on Create Organisation page" )
56- self .audit_reason .fill (text )
57+ self .audit_reason .fill (text )
58+
5759 def click_save_button (self ) -> None :
5860 """
5961 This method is designed to click the Save button on the Create Organisation page.
@@ -64,8 +66,8 @@ def click_save_button(self) -> None:
6466 self .save_button .click ()
6567
6668 def verify_success_message (self ) -> None :
67- """ Verifies that the success message is displayed after saving the organisation.
68-
69- """
69+ """Verifies that the success message is displayed after saving the organisation."""
7070 logging .info ("Verifying success message on Create Organisation page" )
71- expect (self .page .locator ("th" )).to_contain_text ("The action was performed successfully" )
71+ expect (self .page .locator ("th" )).to_contain_text (
72+ "The action was performed successfully"
73+ )
0 commit comments