MDL-55215 lesson: JS is required for some lesson behats

Lesson is using the searchselector which only supports JS - so some
tests need javascript tags.

Also fixed support for filling a passwordunmask field with JS enabled by
id.
This commit is contained in:
Damyon Wiese
2016-11-07 14:23:46 +08:00
parent 9f592c243c
commit 737b54fe9e
4 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ XPATH
,
'passwordunmask' => <<<XPATH
.//*[@data-passwordunmask='wrapper']
/descendant::input[@id = //label[contains(normalize-space(string(.)), %locator%)]/@for]
/descendant::input[@id = %locator% or @id = //label[contains(normalize-space(string(.)), %locator%)]/@for]
XPATH
],
];
@@ -70,6 +70,7 @@ Feature: Lesson reset
And I navigate to "Overview" node in "Lesson administration > Reports"
Then I should see "No attempts have been made on this lesson"
@javascript
Scenario: Use course reset to remove user overrides.
When I follow "Test lesson name"
And I navigate to "User overrides" node in "Lesson administration"
@@ -288,6 +288,7 @@ Feature: Lesson user override
Then I press "Continue"
And I should see "Congratulations - end of lesson reached"
@javascript
Scenario: Add both a user and group override and verify that both are applied correctly
When I follow "Test lesson name"
And I navigate to "Edit settings" node in "Lesson administration"
@@ -1,4 +1,4 @@
@mod @mod_lesson
@mod @mod_lesson @javascript
Feature: Lesson user override
In order to grant a student special access to a lesson
As a teacher
@@ -43,6 +43,7 @@ Feature: Lesson user override
| id_jumpto_1 | This page |
And I press "Save page"
@javascript
Scenario: Add, modify then delete a user override
When I follow "Test lesson name"
And I navigate to "User overrides" node in "Lesson administration"