Bug nom colonne, amélioration test #76

This commit is contained in:
Colin Maudry
2026-05-05 14:56:49 +02:00
parent f4b57dbe5c
commit 755b8c13ab
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -221,7 +221,7 @@ def tokenize_text_filter(
if col_is_date: if col_is_date:
quoted_col = f'CAST("{column}" AS VARCHAR)' quoted_col = f'CAST("{column}" AS VARCHAR)'
else: else:
quoted_col = '"column"' quoted_col = f'"{column}"'
conditions = [f'"{column}" IS NOT NULL', f"{quoted_col} <> ''"] conditions = [f'"{column}" IS NOT NULL', f"{quoted_col} <> ''"]
+2 -3
View File
@@ -338,8 +338,7 @@ def test_015_tableau_filter_date(dash_duo: DashComposite):
filter_cell_result = '.marches_table td[data-dash-column="dateNotification"] p' filter_cell_result = '.marches_table td[data-dash-column="dateNotification"] p'
dash_duo.wait_for_element(filter_input, timeout=2) dash_duo.wait_for_element(filter_input, timeout=2)
_filter_input: WebElement = dash_duo.find_element(filter_input) _filter_input: WebElement = dash_duo.find_element(filter_input)
_filter_input.send_keys("2024") # a dateNotification that doesn't exist _filter_input.send_keys("3333") # a dateNotification that doesn't exist
_filter_input.send_keys(Keys.ENTER) _filter_input.send_keys(Keys.ENTER)
_filter_result: list[WebElement] = dash_duo.find_elements(filter_cell_result) _filter_result: list[WebElement] = dash_duo.find_elements(filter_cell_result)
assert len(_filter_result) == 0, f"Page : {page}"
assert len(_filter_result) == 0