1
0
mirror of https://github.com/moodle/moodle.git synced 2025-03-28 11:32:42 +01:00

MDL-62287 tool_usertours: Pull v0.12.3 for background click fix

This commit is contained in:
Andrew Nicols 2018-11-14 08:22:52 +08:00
parent 208950cff0
commit 3a6463fc8c
4 changed files with 26 additions and 14 deletions
admin/tool/usertours

File diff suppressed because one or more lines are too long

@ -640,18 +640,6 @@ Tour.prototype.processStepListeners = function (stepConfig) {
args: ['click', $.proxy(this.hide, this)]
},
// Click out and hide tour without backdrop.
{
node: $('body'),
args: ['click', $.proxy(function (e) {
// Handle click in or click out tour content,
// if click out, hide tour.
if (!this.currentStepNode.is(e.target) && $(e.target).closest('[data-role="flexitour-step"]').length === 0) {
this.hide();
}
}, this)]
},
// Keypresses.
{
node: $('body'),

@ -0,0 +1,24 @@
@tool @tool_usertours
Feature: Steps can be navigated within a tour
In order to use a tour effectively
As a user
I can navigate its steps
@javascript
Scenario: Clicking on items in the page should not end the tour
Given I log in as "admin"
And I add a new user tour with:
| Name | Calendar tour |
| Description | Calendar tour |
| Apply to URL match | /my/% |
| Tour is enabled | 1 |
And I add steps to the "Calendar tour" tour:
| targettype | Block | Title | Content |
| Block | Calendar | Calendar events | This is the calendar block |
And I change window size to "large"
And I follow "Dashboard" in the user menu
And I wait until the page is ready
And I should see "This is the calendar block"
When I click on ".block_calendar_month .calendar-controls .next" "css_element"
And I wait until the page is ready
Then I should see "Calendar events"

@ -4,7 +4,7 @@
<location>amd/src/tour.js</location>
<name>Flexitour</name>
<license>GPLv3</license>
<version>0.12.2</version>
<version>0.12.3</version>
<licenseversion>3</licenseversion>
</library>
</libraries>