-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(@dpc-sdp/ripple-tide-api): fixed site section sometimes not displ…
…aying correct active page
- Loading branch information
1 parent
ac19c27
commit 3a00469
Showing
5 changed files
with
107 additions
and
117 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
examples/nuxt-app/test/features/landingpage/site-section-nav.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Feature: Site section navigation | ||
|
||
Example of the site section navigation in the landing page sidebar | ||
|
||
Background: | ||
Given the page endpoint for path "/level-2-2" returns fixture "/landingpage/home" with status 200 | ||
And the site endpoint returns fixture "/site/reference" with status 200 | ||
|
||
@mockserver | ||
Scenario: Nested item active | ||
When I visit the page "/level-2-2" | ||
Then the site section nav should contain the following level 1 items: | ||
| text | url | | ||
| Level 1 - 1 | /level-1-1 | | ||
| Level 1 - 2 | /level-1-2 | | ||
|
||
Then the site section nav item with label "Level 1 - 1" should be expanded | ||
Then the site section nav item with label "Level 1 - 2" should be collapsed | ||
|
||
Then the site section nav item with label "Level 1 - 1" should be inactive | ||
Then the site section nav item with label "Level 2 - 2" should be active |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters