From fdfaa5a586f6567574fd45ae8cd36aa21f2d773d Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Wed, 14 Aug 2013 11:03:53 +0800 Subject: [PATCH] MDL-39851 javascript: Add behat fix for filepicker The filepicker was changed to use M.core.dialogue - this patch updates the behat suite to search the changed dom for the file picker windows closed event. --- lib/behat/behat_files.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/behat/behat_files.php b/lib/behat/behat_files.php index 9d12a3a783d..a83d36cc9d9 100644 --- a/lib/behat/behat_files.php +++ b/lib/behat/behat_files.php @@ -209,9 +209,7 @@ class behat_files extends behat_base { $this->find( 'xpath', - "//div[@id='filesskin']" . - "/descendant::div[contains(concat(' ', @class, ' '), ' yui3-widget-mask ')]" . - "[contains(concat(' ', @style, ' '), ' display: none; ')]", + "//div[contains(@class, 'filepicker') and contains(@class, 'moodle-dialogue-hidden')]", $exception ); }