Skip to content

Commit f31a4ee

Browse files
committed
Addressed commit errors
1 parent 7253cb2 commit f31a4ee

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

tests/bcss_tests.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ episode_closed_date=22/09/2020
2626
# CALL AND RECALL TEST DATA
2727
# ----------------------------------
2828
daily_invitation_rate=28
29-
weekly_invitation_rate=130
29+
weekly_invitation_rate=130

utils/table_util.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ def get_column_index(self, column_name: str) -> int:
5050
# Extract first-row headers (general headers)
5151
header_texts = headers.evaluate_all("ths => ths.map(th => th.innerText.trim())")
5252
print("First Row Headers Found:", header_texts)
53-
53+
5454
# Extract detailed second-row headers if first-row headers seem generic
55-
second_row_headers = self.table.locator("thead tr:nth-child(2) th").evaluate_all(
56-
"ths => ths.map(th => th.innerText.trim())"
57-
)
55+
second_row_headers = self.table.locator(
56+
"thead tr:nth-child(2) th"
57+
).evaluate_all("ths => ths.map(th => th.innerText.trim())")
5858
# Merge both lists: Prioritize second-row headers if available
5959
if second_row_headers:
6060
header_texts = second_row_headers
@@ -225,9 +225,7 @@ def get_cell_value(self, column_name: str, row_index: int) -> str:
225225
if column_index == -1:
226226
raise ValueError(f"Column '{column_name}' not found in table")
227227

228-
cell_locator = (
229-
f"{self.table_id} tbody tr:nth-child({row_index}) td:nth-child({column_index})"
230-
)
228+
cell_locator = f"{self.table_id} tbody tr:nth-child({row_index}) td:nth-child({column_index})"
231229
cell = self.page.locator(cell_locator).first
232230

233231
if cell:

0 commit comments

Comments
 (0)