Skip to content

Commit 8d31fd5

Browse files
lucaboeschsrobotta
authored andcommitted
File question type Behat tests.
1 parent 7ac2fe4 commit 8d31fd5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/behat/behat_mod_questionnaire.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ protected function get_filepicker_node($question) {
490490
$exception = new ExpectationException('The filepicker for the question with text "' . $question .
491491
'" can not be found', $this->getSession());
492492

493-
$filepickercontainer = $this->find(
493+
$filepickercontainer = $this->find(
494494
'xpath',
495495
"//p[contains(.,'" . $question . "')]" .
496496
"//parent::div[contains(concat(' ', normalize-space(@class), ' '), ' no-overflow ')]" .
@@ -514,7 +514,8 @@ protected function get_filepicker_node($question) {
514514
* @throws DriverException
515515
* @throws ExpectationException Thrown by behat_base::find
516516
*/
517-
protected function upload_file_to_question_filemanager_questionnaire($filepath, $question, TableNode $data, $overwriteaction = false) {
517+
protected function upload_file_to_question_filemanager_questionnaire($filepath, $question, TableNode $data,
518+
$overwriteaction = false) {
518519
global $CFG;
519520

520521
if (!$this->has_tag('_file_upload')) {
@@ -600,7 +601,7 @@ protected function open_add_file_window($filemanagernode, $repositoryname) {
600601
$exception = new ExpectationException('No files can be added to the specified filemanager', $this->getSession());
601602

602603
// We should deal with single-file and multiple-file filemanagers,
603-
// catching the exception thrown by behat_base::find() in case is not multiple
604+
// catching the exception thrown by behat_base::find() in case is not multiple.
604605
$this->execute('behat_general::i_click_on_in_the', [
605606
'div.fp-btn-add a, input.fp-btn-choose', 'css_element',
606607
$filemanagernode, 'NodeElement'
16 KB
Binary file not shown.

0 commit comments

Comments
 (0)