Skip to content

Commit 54f98cf

Browse files
committed
Correcting format issues
1 parent 576bed9 commit 54f98cf

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

pages/organisations/create_organisation.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import logging
2-
from playwright.sync_api import Page,expect
2+
from playwright.sync_api import Page, expect
33
from 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+
)

pages/organisations/list_all_sites.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@ def __init__(self, page: Page):
1717
# List All Organisations links
1818
self.select_site_type = self.page.locator("#siteTypeId")
1919
self.create_new_site = self.page.get_by_role("button", name="Create New Site")
20-
2120

2221
def select_site_type_option(self, option: str) -> None:
2322
"""
2423
This method is designed to select a specific site type from the List All Sites page.
2524
"""
2625
self.select_site_type.select_option(option)
2726

28-
2927
def click_create_new_site(self) -> None:
3028
"""Clicks the 'Create New Org' button."""
3129
self.create_new_site.click()

0 commit comments

Comments
 (0)