-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #254 from creative-commoners/pulls/3.0/fix-tests
Replace some unit tests with behat tests and make required_extensions explicit in tests
- Loading branch information
Showing
11 changed files
with
98 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Run silverstripe-elemental behat tests with this command | ||
# Note that silverstripe-elemental behat tests require CMS module | ||
# ========================================================================= # | ||
# chromedriver | ||
# vendor/bin/behat @silverstripe-elemental | ||
# ========================================================================= # | ||
default: | ||
suites: | ||
silverstripe-elemental: | ||
paths: | ||
- %paths.modules.silverstripe-elemental%/tests/Behat/features | ||
contexts: | ||
- SilverStripe\Framework\Tests\Behaviour\FeatureContext | ||
- SilverStripe\Framework\Tests\Behaviour\CmsFormsContext | ||
- SilverStripe\Framework\Tests\Behaviour\CmsUiContext | ||
- SilverStripe\BehatExtension\Context\BasicContext | ||
- SilverStripe\BehatExtension\Context\LoginContext | ||
- | ||
SilverStripe\BehatExtension\Context\FixtureContext: | ||
- %paths.modules.silverstripe-elemental%/tests/Behat/files/ | ||
extensions: | ||
SilverStripe\BehatExtension\MinkExtension: | ||
default_session: facebook_web_driver | ||
javascript_session: facebook_web_driver | ||
facebook_web_driver: | ||
browser: chrome | ||
wd_host: "http://127.0.0.1:9515" #chromedriver port | ||
browser_name: chrome | ||
SilverStripe\BehatExtension\Extension: | ||
bootstrap_file: vendor/silverstripe/cms/tests/behat/serve-bootstrap.php | ||
screenshot_path: %paths.base%/artifacts/screenshots | ||
retry_seconds: 4 # default is 2 |
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,17 @@ | ||
Feature: View types of elements in a report | ||
As a CMS user | ||
I want to view a report of element types in the CMS | ||
So that I can see which elements I have available and how many are used | ||
|
||
@javascript | ||
Scenario: I can view the types of elements used | ||
Given I am logged in with "ADMIN" permissions | ||
And I go to "/admin/reports" | ||
Then I should see text matching "Content block types" | ||
|
||
When I go to "/admin/reports/show/DNADesign-Elemental-Reports-ElementTypeReport" | ||
Then I should see text matching "Content block types" | ||
# See: Content element, bundled by default with elemental | ||
And I should see text matching "HTML text block" | ||
# Ensure BaseElement is ignored | ||
And I should not see text matching "Base element class" |
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 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