Created
October 30, 2014 21:20
-
-
Save ryzy/6b7e7c34db6395cd2464 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
-bash-4.2$ bin/behat -c Packages/Application/TYPO3.Neos/Tests/Behavior/behat.yml | |
Feature: Content module / Inline editing | |
In order to edit content easily | |
As an editor | |
I need a way to edit content inline | |
@fixtures @javascript | |
Scenario: Edit text of a content element with automatic save # Features/Content/InlineEditing.feature:7 | |
Given I imported the site "TYPO3.NeosDemoTypo3Org" # FeatureContext::iImportedTheSite() | |
And the following users exist: # FeatureContext::theFollowingUsersExist() | |
| username | password | firstname | lastname | roles | | |
| jdoe | password | John | Doe | Editor | | |
And I am authenticated with "jdoe" and "password" for the backend # FeatureContext::iAmAuthenticatedWithAndForTheBackend() | |
Then I should be in the "Content" module # FeatureContext::iShouldBeInTheModule() | |
When I select the first headline content element # FeatureContext::iSelectTheFirstHeadlineContentElement() | |
Exception thrown by (//html/descendant-or-self::*[@class and contains(concat(' ', normalize-space(@class), ' '), ' typo3-neos-nodetypes-headline ')])[1] | |
Element is not currently visible and so may not be interacted with | |
Command duration or timeout: 12 milliseconds | |
Build info: version: '2.39.0', revision: 'ff23eac', time: '2013-12-16 16:11:15' | |
System info: host: '21f3e307682c', ip: '172.17.0.41', os.name: 'Linux', os.arch: 'amd64', os.version: '3.16.2+', java.version: '1.7.0_71' | |
Session ID: 6b852a48-33e7-4c57-8bdd-da79f4e40ef6 | |
Driver info: org.openqa.selenium.firefox.FirefoxDriver | |
Capabilities [{platform=LINUX, databaseEnabled=true, cssSelectorsEnabled=true, javascriptEnabled=true, acceptSslCerts=true, handlesAlerts=true, browserName=firefox, webStorageEnabled=true, nativeEvents=false, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=31.2.0}] | |
And I set the content to "NewContent" # FeatureContext::iSetTheContentTo() | |
And I wait for the changes to be saved # FeatureContext::iWaitForTheChangesToBeSaved() | |
And I reload the page # FeatureContext::reload() | |
Then I should see "NewContent" # FeatureContext::assertPageContainsText() | |
Feature: Content module / Preview mode | |
In order to preview changes | |
As an editor | |
I need a way to see the page without UI elements | |
@fixtures @javascript | |
Scenario: Toggle preview mode # Features/Content/PreviewMode.feature:7 | |
Given I imported the site "TYPO3.NeosDemoTypo3Org" # FeatureContext::iImportedTheSite() | |
And the following users exist: # FeatureContext::theFollowingUsersExist() | |
| username | password | firstname | lastname | roles | | |
| jdoe | password | John | Doe | Editor | | |
And I am authenticated with "jdoe" and "password" for the backend # FeatureContext::iAmAuthenticatedWithAndForTheBackend() | |
Then I should be in the "Content" module # FeatureContext::iShouldBeInTheModule() | |
When I press "Full Screen" # FeatureContext::pressButton() | |
Then I should not see the top bar # FeatureContext::iShouldNotSeeTheTopBar() | |
The text "Edit / Preview" appears in the text of this page, but it should not. | |
And the Previewbutton should be active # FeatureContext::thePreviewButtonShouldBeActive() | |
9 scenarios (7 passed, 2 failed) | |
66 steps (59 passed, 5 skipped, 2 failed) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment