From 8ba033316daa4c82a46aebabdca4d1cf72f21be0 Mon Sep 17 00:00:00 2001 From: bloodearnest Date: Mon, 11 Mar 2024 13:32:56 +0000 Subject: [PATCH] Add e2e check that directories render ok --- tests/functional/test_e2e.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/functional/test_e2e.py b/tests/functional/test_e2e.py index a1e82498..6f538c3b 100644 --- a/tests/functional/test_e2e.py +++ b/tests/functional/test_e2e.py @@ -135,6 +135,12 @@ def test_e2e_release_files(page, live_server, dev_users, release_files_stubber): # Click to open the filegroup tree filegroup_link.click() + + # Click on the directory to ensure that renders correctly. + subdir_link = page.get_by_role("link").locator(".directory:scope") + find_and_click(subdir_link) + expect(page.locator("#selected-contents")).to_contain_text("file.txt") + # Tree opens fully expanded, so now the file (in its subdir) is visible find_and_click(file_link) expect(page.locator("body")).to_contain_text("I am the file content")