featured_products_block.feature
1.7 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
45
46
47
Feature: featured_products_block
As a profile owner
I want to edit the featured block
Background:
Given I am on the homepage
And the following users
| login | name |
| eddievedder | Eddie Vedder |
And the following enterprises
| identifier | owner | name | enabled |
| redemoinho | eddievedder | Rede Moinho | true |
And the following blocks
| owner | type |
| redemoinho | FeaturedProductsBlock |
And the following product_category
| name |
| automobile |
And the following products
| owner | category | name | description | highlighted |
| redemoinho | automobile | Car | Red Car | true |
| redemoinho | automobile | Truck | Blue Truck | true |
| redemoinho | automobile | Moto | Very long description of and auto-mobile moto to be truncated | true |
And I am logged in as "eddievedder"
@selenium-fixme
Scenario: select a product to be featured
And I follow "Manage my groups"
And I follow "Control panel of this group"
And I follow "Edit sideboxes"
Given I follow "Edit" within ".featured-products-block"
And I select "Car"
When I press "Save"
Then I should see "Car"
And I should not see "float_to_currency"
And I should not see "product_path"
@selenium-fixme
Scenario: display block with long description
Given I follow "Manage my groups"
And I follow "Control panel of this group"
And I follow "Edit sideboxes"
And I follow "Edit" within ".featured-products-block"
And I select "Moto"
And I press "Save"
When I am on redemoinho's homepage
Then I should see "Very long description of and auto-mobile moto to b..."