Bug nom colonne, amélioration test #76
This commit is contained in:
@@ -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
@@ -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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user