highlights_block.feature
1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Feature: Edit Highlight Block
As a user
I want to edit the highlight block
Background:
Given I am on the homepage
And the following users
| login | name |
| jose | Jose Silva |
And I am logged in as "jose"
@selenium
Scenario: Add new highlight
Given I follow "Control panel"
And I follow "Edit sideboxes"
And I follow "Add a block"
And I choose "Highlights"
And I press "Add"
And I follow "Edit" within ".highlights-block"#Need to hover the mouse on the box
And I follow "New highlight"
And I fill in "block_images__address" with "/"
And I fill in "block_images__position" with "0"
And I fill in "block_images__title" with "test highlights"
And I press "Save"
And I follow "Edit" within ".highlights-block"
Then I should see "Title"
@selenium-fixme
Scenario: Remove one saved highlight
Given I follow "Control panel"
And I follow "Edit sideboxes"
And I follow "Add a block"
And I choose "Highlights"
And I press "Add"
And I follow "Edit" within ".highlights-block"
And I follow "New highlight"
And I fill in "block_images__address" with "/"
And I fill in "block_images__position" with "0"
And I fill in "block_images__title" with "test highlights"#Need to hover the mouse on the box
And I press "Save"
And I follow "Edit" within ".highlights-block"
And I follow "" within ".delete-highlight"
And I confirm the browser dialog
Then I should not see "Title"