SilverStripe\VersionedAdmin\Tests\Behat\Context\FeatureContext
Synopsis
class FeatureContext
extends SilverStripeContext
{
- // methods
- public void iShouldSeeAListOfVersions()
- public void iShouldSeeAListOfVersionsInDescendingOrder()
- public void iClickOnTheFirstVersion()
- public void iClickOnVersion()
- public void iOpenTheHistoryViewerActionsMenu()
- public void theTextShouldBeDeleted()
- public void theTextShouldBeAdded()
- protected void clickVersion()
- protected array getVersions()
- public void iShouldSeeTheBadge()
- public void iShouldSeeInTheAuthorColumn()
- public void iShouldSeeInTheRecordColumn()
- public void iShouldSeeInTheVersionColumn()
- protected void getLatestVersion()
- protected NodeElement getSpecificVersion()
Hierarchy
Extends
- SilverStripe\BehatExtension\Context\SilverStripeContext
Methods
protected
- clickVersion() — Click on the given version
- getLatestVersion() — Returns the table row that holds information on the most recent version
- getSpecificVersion() — Returns the table row that holds information on the selected version.
- getVersions() — Returns the versions from the history viewer list (table rows)
public
- iClickOnTheFirstVersion()
- iClickOnVersion()
- iOpenTheHistoryViewerActionsMenu()
- iShouldSeeAListOfVersions()
- iShouldSeeAListOfVersionsInDescendingOrder()
- iShouldSeeInTheAuthorColumn() — Example: I should see "ADMIN User" in the author column in version 1
- iShouldSeeInTheRecordColumn() — Example: I should see "Saved" in the record column in version 1
- iShouldSeeInTheVersionColumn()
- iShouldSeeTheBadge() — Example: I should see the "Live" badge Example: I should not see the "Live" badge
- theTextShouldBeAdded()
- theTextShouldBeDeleted()