diff --git a/middleman-core/features/more-sitemap_traversal.feature b/middleman-core/features/more-sitemap_traversal.feature index 224c2b8a..f935fbf0 100644 --- a/middleman-core/features/more-sitemap_traversal.feature +++ b/middleman-core/features/more-sitemap_traversal.feature @@ -71,3 +71,13 @@ Feature: Step through sitemap as a tree (more) Then I should see "Child: directory-indexed/sibling2.html" Then I should see "Child: directory-indexed/sub2/index.html" Then I should see "Sibling: root.html" + + Scenario: Child pages can see their parent and siblings too in named directory + Given the Server is running at "more-traversal-app" + When I go to "/directory-indexed/sibling" + Then I should see "Path: directory-indexed/sibling.html" + Then I should see "Parent: directory-indexed.html" + Then I should see "Sibling: directory-indexed/fake.html" + Then I should see "Sibling: directory-indexed/fake2.html" + Then I should see "Sibling: directory-indexed/sibling2.html" + Then I should see "Sibling: directory-indexed/sub2/index.html" diff --git a/middleman-core/features/sitemap_traversal.feature b/middleman-core/features/sitemap_traversal.feature index 828a2507..d2fe581c 100644 --- a/middleman-core/features/sitemap_traversal.feature +++ b/middleman-core/features/sitemap_traversal.feature @@ -71,3 +71,13 @@ Feature: Step through sitemap as a tree Then I should see "Child: directory-indexed/sibling2.html" Then I should see "Child: directory-indexed/sub2/index.html" Then I should see "Sibling: root.html" + + Scenario: Child pages can see their parent and siblings too in named directory + Given the Server is running at "traversal-app" + When I go to "/directory-indexed/sibling.html" + Then I should see "Path: directory-indexed/sibling.html" + Then I should see "Parent: directory-indexed.html" + Then I should see "Sibling: directory-indexed/fake.html" + Then I should see "Sibling: directory-indexed/fake2.html" + Then I should see "Sibling: directory-indexed/sibling2.html" + Then I should see "Sibling: directory-indexed/sub2/index.html"