Skip to content

Commit

Permalink
Slightly improve the Behat tests of the static pages
Browse files Browse the repository at this point in the history
  • Loading branch information
abias committed Dec 19, 2022
1 parent cf843e4 commit 69b74ba
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions tests/behat/theme_boost_union_contentsettings_staticpages.feature
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ Feature: Configuring the theme_boost_union plugin for the "Static pages" tab on
Then ".theme_boost_union_footer_<page>link" "css_element" should not exist
And ".theme_boost_union_footnote_<page>link" "css_element" should not exist
And I am on <page> page
Then I should see "The <pagenamealternative> page is disabled for this site. There is nothing to see here."
Then I should see "The <pagedisabled> page is disabled for this site. There is nothing to see here."
And ".theme_boost_union_footnote_<page>link" "css_element" should not exist in the "#footnote" "css_element"
And I click on ".btn-footer-popover" "css_element" in the "#page-footer" "css_element"
And ".theme_boost_union_footer_<page>link" "css_element" should not exist in the ".footer .popover-body" "css_element"

Examples:
| page | pagetitle | pagenamealternative |
| imprint | Imprint | imprint |
| contact | Contact | contact |
| help | Help | help |
| maintenance | Maintenance | maintenance information |
| page | pagedisabled |
| imprint | imprint |
| contact | contact |
| help | help |
| maintenance | maintenance information |

Scenario Outline: Setting: Enable static page - Enable and fill the static page with content
Given the following config values are set as admin:
Expand Down Expand Up @@ -62,11 +62,11 @@ Feature: Configuring the theme_boost_union plugin for the "Static pages" tab on
And ".theme_boost_union_footer_<page>link" "css_element" should not exist in the ".footer .popover-body" "css_element"

Examples:
| page | pagetitle |
| imprint | Imprint |
| contact | Contact |
| help | Help |
| maintenance | Maintenance |
| page |
| imprint |
| contact |
| help |
| maintenance |

@javascript
Scenario Outline: Setting: Static page link position - Add the static page link to the footnote automatically (even if the footnote is empty otherwise)
Expand Down Expand Up @@ -211,8 +211,8 @@ Feature: Configuring the theme_boost_union plugin for the "Static pages" tab on
Then I should see "Custom" in the ".footer .popover-body .theme_boost_union_footer_<page>link" "css_element"

Examples:
| page | pagetitle |
| imprint | Imprint |
| contact | Contact |
| help | Help |
| maintenance | Maintenance |
| page |
| imprint |
| contact |
| help |
| maintenance |

0 comments on commit 69b74ba

Please sign in to comment.