Skip to content

Commit 225cf6f

Browse files
committed
Test DashTable shift+click copy
1 parent 95664bb commit 225cf6f

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

components/dash-table/tests/selenium/test_basic_copy_paste.py

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ def test_tbcp004_copy_9_and_10(test):
173173

174174
assert test.get_log_errors() == []
175175

176-
177176
@pytest.mark.skip(
178177
reason="Prop `data_previous` is not correctly updated with copy+paste"
179178
)
@@ -278,3 +277,25 @@ def test_tbcp008_copy_paste_between_tables_with_hidden_columns(test):
278277
)
279278

280279
assert test.get_log_errors() == []
280+
281+
def test_tbcp009_copy_9_and_10_click(test):
282+
test.start_server(get_app())
283+
284+
source = test.table("table")
285+
target = test.table("table2")
286+
287+
source.cell(9, 0).click()
288+
with test.hold(Keys.SHIFT):
289+
source.cell(10, 0).click()
290+
291+
test.copy()
292+
target.cell(0, 0).click()
293+
test.paste()
294+
295+
for row in range(2):
296+
for col in range(1):
297+
assert (
298+
target.cell(row, col).get_text() == source.cell(row + 9, col).get_text()
299+
)
300+
301+
assert test.get_log_errors() == []

0 commit comments

Comments
 (0)