From 2c1a8685678bffd8d54ca36725c5a7f850980c1a Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Wed, 24 Jun 2020 07:20:55 -0400 Subject: [PATCH] storage: Handle multi-line text in functional test Signed-off-by: James Valleroy --- plinth/modules/storage/tests/test_functional.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/modules/storage/tests/test_functional.py b/plinth/modules/storage/tests/test_functional.py index aa1cce7e1..157f792c4 100644 --- a/plinth/modules/storage/tests/test_functional.py +++ b/plinth/modules/storage/tests/test_functional.py @@ -22,4 +22,4 @@ def go_to_module(session_browser, name): def _is_root_disk_shown(browser): table_cells = browser.find_by_tag('td') - return any(cell.text == '/' for cell in table_cells) + return any(cell.text.split('\n')[0] == '/' for cell in table_cells)