mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-64506 behat: Modify usertours behat.
Original test relied on a 3rd theme to test against. With only two themes in core now we need to make the test theme/ suite specific.
This commit is contained in:
parent
9757c65687
commit
b293214a7e
@ -4,21 +4,6 @@ Feature: Apply tour filters to a tour
|
||||
As an administrator
|
||||
I need to create a user tour with filters applied
|
||||
|
||||
@javascript
|
||||
Scenario: Add a tour for a different theme
|
||||
Given I log in as "admin"
|
||||
And I add a new user tour with:
|
||||
| Name | First tour |
|
||||
| Description | My first tour |
|
||||
| Apply to URL match | /my/% |
|
||||
| Tour is enabled | 1 |
|
||||
| Theme | More |
|
||||
And I add steps to the "First tour" tour:
|
||||
| targettype | Title | Content |
|
||||
| Display in middle of page | Welcome | Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful |
|
||||
When I am on homepage
|
||||
Then I should not see "Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful"
|
||||
|
||||
@javascript
|
||||
Scenario: Add a tour for a specific role
|
||||
Given the following "courses" exist:
|
||||
|
35
theme/boost/tests/behat/tour_filter.feature
Normal file
35
theme/boost/tests/behat/tour_filter.feature
Normal file
@ -0,0 +1,35 @@
|
||||
@tool @tool_usertours @theme_boost @matt
|
||||
Feature: Apply tour filters to a tour for Classic
|
||||
In order to give more directed tours
|
||||
As an administrator
|
||||
I need to create a user tour specific to theme Classic
|
||||
|
||||
@javascript
|
||||
Scenario: Add a tour for theme Classic
|
||||
Given I log in as "admin"
|
||||
And I add a new user tour with:
|
||||
| Name | First tour |
|
||||
| Description | My first tour |
|
||||
| Apply to URL match | /my/% |
|
||||
| Tour is enabled | 1 |
|
||||
| Theme | Classic |
|
||||
And I add steps to the "First tour" tour:
|
||||
| targettype | Title | Content |
|
||||
| Display in middle of page | Welcome | Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful |
|
||||
When I am on homepage
|
||||
Then I should not see "Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful"
|
||||
|
||||
@javascript
|
||||
Scenario: Add a tour for theme Boost
|
||||
Given I log in as "admin"
|
||||
And I add a new user tour with:
|
||||
| Name | First tour |
|
||||
| Description | My first tour |
|
||||
| Apply to URL match | /my/% |
|
||||
| Tour is enabled | 1 |
|
||||
| Theme | Boost |
|
||||
And I add steps to the "First tour" tour:
|
||||
| targettype | Title | Content |
|
||||
| Display in middle of page | Welcome | Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful |
|
||||
When I am on homepage
|
||||
Then I should see "Welcome to your personal learning space. We'd like to give you a quick tour to show you some of the areas you may find helpful"
|
Loading…
x
Reference in New Issue
Block a user