Commit 3d0c35ff authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Behat Test: ID tags for editing blocks (Bug 1428456)"

parents 841e1d73 961c317e
......@@ -83,5 +83,6 @@ class BehatView extends BehatBase {
$block
);
$blockconfigbutton->press();
$this->getSession()->getDriver()->getWebDriverSession()->accept_alert();
}
}
\ No newline at end of file
@javascript @core @core_view
Feature: Added ID's for text blocks
In order to change the settings of a block
As an admin
I need to be able to click on delete and config of a block
Scenario: Clicking ID's (Bug 1428456)
Given I log in as "admin" with password "Password1"
And I follow "Portfolio"
And I follow "Profile page"
And I follow "Edit this page"
# Checking if we can add a block
And I follow "Text"
And I press "Add"
And I wait "1" seconds
And I set the following fields to these values:
| Block title | Ulysses |
| Block content | <p>Stately, plump Buck Mulligan came from the stairhead, bearing a bowl of lather on which a mirror and a razor lay crossed ...</p> |
And I press "Save"
Then I should see "Buck Mulligan"
# Checking if we can edit a block
When I configure the block "About me"
And I set the following fields to these values:
| Introduction text | <p>A James Joyce fan</p> |
And I press "Save"
Then I should see "James Joyce"
# Checking if we can delete a block
When I delete the block "Ulysses"
Then I should not see "Buck Mulligan"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment