-
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.
- tests/behat/behat_theme_adaptable_behat_auth.php duplicated the pat…
…tern /^I log out$/ which Behat doesn't like. As it turns out, this isn't required as the core step definition works. - tests/behat/core_auth/behat_theme_adaptable_behat_core_auth.php is not how you extending existing Behat steps. https://moodledev.io/general/development/tools/behat/writing#override-behat-core-context-for-theme-suite describes how to do this. Regardless, ss it turns out, this isn't required as the core step definition works. - Changes to behat_theme_adaptable_behat_navigation.php and behat_theme_adaptable_behat_permissions.php are required because they define duplicate step definition patters which is not something Behat likes. If you take a look at Moodle's \behat_theme_boost_behat_navigation::i_should_see_is_active_in_navigation, they provide an example of how to deal with this. - blacklist.json excludes behat_theme_boost_behat_navigation from the list of contexts for the adaptable suite which gets built when you init Behat. For reference, /var/www/behatdata/behatrun/behat/behat.yml should be referred to to better understand why gets configured when Behat is initialized. - navigation.feature is a simple Behat test which logs in and out as admin both with javascript enabled and not.
- Loading branch information
1 parent
c5a0abc
commit 4ce69ca
Showing
6 changed files
with
19 additions
and
102 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
{ | ||
"contexts": [ | ||
"behat_theme_boost_behat_navigation" | ||
], | ||
"features": [] | ||
} |
50 changes: 0 additions & 50 deletions
50
tests/behat/core_auth/behat_theme_adaptable_behat_core_auth.php
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
Feature: Basic navigation scenarios through Moodle. | ||
|
||
Background: User "admin" logs into Moodle and then logs out | ||
And I log in as "admin" | ||
Then I log out | ||
|
||
Scenario: Basic navigation without JavaScript | ||
|
||
@javascript | ||
Scenario: Basic navigation with JavaScript |