-
-
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.
Added menu and menu link traits. (#67)
- Loading branch information
1 parent
8612677
commit 672d09b
Showing
4 changed files
with
237 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
@d8 | ||
Feature: Check that MenuTrait works for D8 | ||
|
||
@api | ||
Scenario: Assert "Given menus:" | ||
Given menus: | ||
| label | description | | ||
| [TEST] menu 1 title | Test menu 1 description | | ||
| [TEST] menu 2 title | Test menu 2 description | | ||
And I am logged in as a user with the "administrator" role | ||
When I visit "/admin/structure/menu" | ||
Then I should see the text "[TEST] menu 1 title" | ||
And I should see the text "[TEST] menu 2 title" | ||
And I should see the text "Test menu 1 description" | ||
And I should see the text "Test menu 2 description" | ||
|
||
@api | ||
Scenario: Assert "Given no menus:" | ||
Given menus: | ||
| label | description | | ||
| [TEST] menu 1 title | Test menu 1 description | | ||
| [TEST] menu 2 title | Test menu 2 description | | ||
Given no menus: | ||
| [TEST] menu 1 title | | ||
| [TEST] menu 2 title | | ||
And I am logged in as a user with the "administrator" role | ||
When I visit "/admin/structure/menu" | ||
Then I should not see the text "[TEST] menu 1 title" | ||
And I should not see the text "[TEST] menu 2 title" | ||
And I should not see the text "Test menu 1 description" | ||
And I should not see the text "Test menu 2 description" | ||
|
||
@api | ||
Scenario: Assert "Given menu_links:" | ||
Given menus: | ||
| label | description | | ||
| [TEST] menu 1 title | Test menu 1 description | | ||
Given "[TEST] menu 1 title" menu_links: | ||
| title | enabled | uri | parent | | ||
| Parent Link Title | 1 | https://www.example.com | | | ||
| Child Link Title | 1 | https://www.example.com | Parent Link Title | | ||
And I am logged in as a user with the "administrator" role | ||
When I visit "/admin/structure/menu/manage/_test_menu_1_title" | ||
And I should see "Parent Link Title" | ||
And I should see "Child Link Title" |