Skip to content

Commit

Permalink
Add e2e check that directories render ok
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodearnest committed Mar 11, 2024
1 parent 45643f7 commit 8ba0333
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/functional/test_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 8ba0333

Please sign in to comment.