Skip to content

Commit

Permalink
fix test_just_atoms by adding a class to parent buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-lawton committed Nov 3, 2022
1 parent 242877f commit 76608fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pattern_library/templates/pattern_library/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h1 class="header__title">
<ul class="list">
{% for pattern_type_group, pattern_templates in pattern_templates.template_groups.items %}
<li class="list__item js-list-item">
<button class="list__button js-toggle-pattern">
<button class="list__button list__button--parent js-toggle-pattern">
<svg class="list__item-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 160">
<path d="M88 80l-48 48 16 16 64-64-64-64-16 16 48 48z" />
</svg>
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/test_sections.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def get_sections(self):

soup = BeautifulSoup(response.content, features="html.parser")
sidebar_nav = soup.select_one("#sidebar-nav")
sections = [h.text.strip() for h in sidebar_nav.find_all("button")]
sections = [h.text.strip() for h in sidebar_nav.find_all("button", {"class": "list__button--parent"})]

return sections

Expand Down

0 comments on commit 76608fb

Please sign in to comment.