Skip to content

Commit

Permalink
Extend tests to Wagtail 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Kirkham committed Feb 18, 2024
1 parent 1ed0240 commit 06cc104
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ envlist =
wt52-dj41-py{38,39,310,311}
wt52-dj42-py{38,39,310,311,312}
wt52-dj50-py{310,311,312}
wt60-dj42-py{38,39,310,311,312}
wt60-dj50-py{310,311,312}

[gh-actions]
python =
Expand All @@ -30,3 +32,4 @@ deps =
dj42: Django>=4.2,<4.3
dj50: Django>=5.0,<5.1
wt52: wagtail>=5.2,<5.3
wt60: wagtail>=6.0,<6.1
3 changes: 2 additions & 1 deletion wagtailmenus/tests/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def test_copy_footer_menu(self):
response = form.submit().follow()

assert len(response.context['object_list']) == 4
assert '<div class="filterable__filters">' in response
# Check for Wagtail 5.2 or >=6.0 response
assert '<div class="filterable__filters">' in response or '<div id="filters-drilldown"' in response

# Let's just compare the two menu with the old one
site_two_footer_menu = FlatMenu.get_for_site('footer', site_two)
Expand Down

0 comments on commit 06cc104

Please sign in to comment.