Skip to content

Commit 76bde7a

Browse files
committed
Add behat tests for admin UI
1 parent 0961009 commit 76bde7a

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
@theme @theme_boost_union @theme_boost_union_smartmenusettings @theme_boost_union_smartmenusettings_menuitems @theme_boost_union_scss_snippets
2+
Feature: Configuring the theme_boost_union plugin on the "SCSS Snippets" page.
3+
In order to use the features
4+
As admin
5+
I need to be able to configure the theme Boost Union plugin
6+
7+
@javascript
8+
Scenario: SCSS snippets: Overview page when no snippet sources are enabled.
9+
When I log in as "admin"
10+
And I navigate to "Appearance > Boost Union > SCSS snippets" in site administration
11+
Then I should see "There aren't any SCSS snippets which can be used"
12+
13+
@javascript
14+
Scenario: SCSS snippets: Overview page when builtin-snippets are enabled.
15+
Given the following config values are set as admin:
16+
| config | value | plugin |
17+
| enablebuiltinsnippets | yes | theme_boost_union |
18+
When I log in as "admin"
19+
And I navigate to "Appearance > Boost Union > SCSS snippets" in site administration
20+
Then I should not see "There aren't any SCSS snippets which can be used"
21+
And I should see "Rainbow navbar"
22+
23+
@javascript @_file_upload
24+
Scenario: SCSS snippets: Overview page with uploaded snippets.
25+
Given the following config values are set as admin:
26+
| config | value | plugin |
27+
| enableuploadedsnippets | yes | theme_boost_union |
28+
When I log in as "admin"
29+
And I navigate to "Appearance > Boost Union > SCSS snippets" in site administration
30+
Then I should see "There aren't any SCSS snippets which can be used"
31+
And I click on "Settings" "link" in the "#region-main .nav-tabs" "css_element"
32+
And I upload "theme/boost_union/tests/fixtures/snippets.zip" file to "Upload snippets" filemanager
33+
And I press "Save changes"
34+
And I click on "Overview" "link" in the "#region-main .nav-tabs" "css_element"
35+
Then I should not see "There aren't any SCSS snippets which can be used"
36+
And I should see "Darken hover background color in secondary menu items"

tests/fixtures/snippets.zip

8.22 KB
Binary file not shown.

0 commit comments

Comments
 (0)