-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug(edit: data frame): If the cell's value is
null
, edit value shou…
…ld be `""` (#1551)
- Loading branch information
Showing
10 changed files
with
33 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
27 changes: 27 additions & 0 deletions
27
tests/playwright/shiny/components/data_frame/html_columns/test_edit_cell_content.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import pytest | ||
from playwright.sync_api import Page | ||
from utils.deploy_utils import skip_if_not_chrome | ||
|
||
from shiny.playwright import controller | ||
from shiny.run import ShinyAppProc | ||
|
||
|
||
@skip_if_not_chrome | ||
@pytest.mark.parametrize("df_type", ["pandas", "polars"]) | ||
def test_edit_cell_content_is_not_null( | ||
page: Page, local_app: ShinyAppProc, df_type: str | ||
) -> None: | ||
page.goto(local_app.url) | ||
|
||
data_frame = controller.OutputDataFrame(page, f"{df_type}_df") | ||
|
||
tab = controller.NavsetCardUnderline(page, "tab") | ||
tab.set(df_type) | ||
|
||
data_frame.expect_cell("", row=0, col=14) | ||
empty_cell = data_frame.cell_locator(row=0, col=14) | ||
empty_cell.dblclick() | ||
textarea = empty_cell.locator("textarea") | ||
textarea.wait_for() | ||
cur_value = textarea.input_value() | ||
assert cur_value == "" |
File renamed without changes.
File renamed without changes.
File renamed without changes.