Skip to content

Commit

Permalink
test: fix test_management_nested_view
Browse files Browse the repository at this point in the history
  • Loading branch information
MyPyDavid authored and afuetterer committed Oct 15, 2023
1 parent fdf0efc commit 80988c3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rdmo/management/tests/test_frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ def test_management_has_items(logged_in_admin_user: Page, url, model) -> None:
def test_management_nested_view(logged_in_admin_user: Page, element_name) -> None:
"""For each element type, that has a nested view, click the first example."""
page = logged_in_admin_user
page.goto(f"/management/{element_name}s")
page.goto(f"/management/{element_name.replace(' ', '')}s")
# Open nested view for element type
page.get_by_title(f"View {element_name} nested").first.click()
nested_panels = page.locator(".panel-nested")
expect(nested_panels.first).to_be_visible()
if element_name not in ("attribute", "option set"):
expect(nested_panels.nth(2)).to_be_visible()

0 comments on commit 80988c3

Please sign in to comment.