add Behat tests
This commit is contained in:
parent
88405438e4
commit
87270d8096
5 changed files with 362 additions and 0 deletions
21
features/shortcodes.feature
Normal file
21
features/shortcodes.feature
Normal file
|
@ -0,0 +1,21 @@
|
|||
Feature: Use Shortcodes
|
||||
In order to use my Plugin
|
||||
As a website author
|
||||
I need to write posts with shortcodes
|
||||
|
||||
Background:
|
||||
Given I am logged in as "admin" with "vagrant"
|
||||
|
||||
Scenario: Without the plugin
|
||||
Given the plugin "freifunkmeta" is "inactive"
|
||||
When I write a post with title "test" and content "[ff_contact]"
|
||||
#Then print current URL
|
||||
Then I should see "ff_contact"
|
||||
|
||||
Scenario: With the plugin
|
||||
Given the plugin "freifunkmeta" is "active"
|
||||
When I write a post with title "test" and content "[ff_contact]"
|
||||
#Then print current URL
|
||||
Then I should see "Twitter" in the ".ff_contact" element
|
||||
And I should not see "ff_contact"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue