1 |
efrain |
1 |
@core @core_admin @theme_boost
|
|
|
2 |
Feature: Select a theme in Boost theme
|
|
|
3 |
In order to choose a theme
|
|
|
4 |
As an admin
|
|
|
5 |
I need to preview the theme and make a selection
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given I log in as "admin"
|
|
|
9 |
And I navigate to "Appearance > Themes" in site administration
|
|
|
10 |
|
|
|
11 |
@javascript
|
|
|
12 |
Scenario: I am able to preview a theme using a modal window
|
|
|
13 |
When I click on "Preview theme 'Boost'" "button"
|
|
|
14 |
Then I should see "Boost" in the "Boost" "dialogue"
|
|
|
15 |
And I should see "Boost is a modern highly-customisable theme." in the "Boost" "dialogue"
|
|
|
16 |
And I should see "Current theme" in the "Boost" "dialogue"
|
|
|
17 |
|
|
|
18 |
@javascript
|
|
|
19 |
Scenario: I am able to change the theme using the modal window select button
|
|
|
20 |
Given I should see "Current theme" in the "#theme-card-boost" "css_element"
|
|
|
21 |
When I click on "Preview theme 'Classic'" "button"
|
|
|
22 |
And I click on "Select theme" "button" in the "Classic" "dialogue"
|
|
|
23 |
Then I should see "Current theme" in the "#theme-card-classic" "css_element"
|
|
|
24 |
|
|
|
25 |
Scenario: I am able to change the theme using the normal select button
|
|
|
26 |
Given I should see "Current theme" in the "#theme-card-boost" "css_element"
|
|
|
27 |
When I click on "Select theme 'Classic'" "button"
|
|
|
28 |
Then I should see "Current theme" in the "#theme-card-classic" "css_element"
|
|
|
29 |
|
|
|
30 |
Scenario: I am able to view a theme's settings page
|
|
|
31 |
Given I click on "Edit theme settings 'Boost'" "link"
|
|
|
32 |
Then I should see "Boost"
|