Skip to content

Commit

Permalink
Fix behat test
Browse files Browse the repository at this point in the history
  • Loading branch information
dasistwas committed Jan 11, 2025
1 parent 7892276 commit 3512b4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/behat/customfilter_multiselect.feature
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ Feature: Create entry, add multiselect and use customfilter

# Make customfilter visible in view.
When I follow "Views"
And I click on "//table/tbody/tr[1]/td[9]/a" "xpath_element"
Then I should see "Gridview"
And I click on "Edit Gridview" "link"
And I click on "View template" "link"
Then I add to "id_esection_editor" editor the text ". ##addnewentry## ##customfilter:mycustomfilter## ##entries## ."
And I press "Save changes"
Expand All @@ -61,6 +60,7 @@ Feature: Create entry, add multiselect and use customfilter
And I click on "Opt4" item in the autocomplete list
And I click on "Opt5" item in the autocomplete list
And I press "Save changes"
And I wait "30" seconds
And I should see "1 entry(s) updated"
Then I press "Continue"

Expand Down
3 changes: 2 additions & 1 deletion view/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@
$viewdescription = shorten_text($view->view->description, 30);
$viewedit = html_writer::link(
new moodle_url($editbaseurl, $linkparams + array('vedit' => $viewid)),
$OUTPUT->pix_icon('t/edit', $stredit));
$OUTPUT->pix_icon('t/edit', $stredit . " " . $view->name()),
array('title' => $stredit . " " . $view->name()));
$viewduplicate = html_writer::link(
new moodle_url($actionbaseurl, $linkparams + array('duplicate' => $viewid)),
$OUTPUT->pix_icon('t/copy', $strduplicate));
Expand Down

0 comments on commit 3512b4a

Please sign in to comment.