Skip to content

Commit

Permalink
behat fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ferishili committed Nov 15, 2024
1 parent 1e6ac3c commit 8e7d299
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion tests/behat/block_opencast_autocomplete_metadata.feature
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Feature: Check and set autocompletion suggestions
@javascript
Scenario: Autocomplete suggestions for Presentors must be extracted from the access capabilities and only show teacher and editingteacher enroled users.
When I click on "Go to overview..." "link"
And I click on "#opencast-videos-table-1234-1234-1234-1234-1234_r0 .c3 .action-menu a" "css_element"
And I click on "#opencast-videos-table-1234-1234-1234-1234-1234_r0 .cell .action-menu a" "css_element"
And I click on "Update metadata" "link"
Then I should see "Update metadata"
When I expand the "Presenter(s)" autocomplete
Expand Down
27 changes: 14 additions & 13 deletions tests/behat/block_opencast_massactions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,20 @@ Feature: Select all videos and perform mass actions in the Opencast Block Overvi
| teacher1 | C1 | editingteacher |
And I setup the default settigns for opencast plugins
And the following config values are set as admin:
| config | value | plugin |
| apiurl_1 | http://testapi:8080 | tool_opencast |
| apipassword_1 | opencast | tool_opencast |
| apiusername_1 | admin | tool_opencast |
| ocinstances | [{"id":1,"name":"Default","isvisible":true,"isdefault":true}] | tool_opencast |
| limituploadjobs_1 | 0 | block_opencast |
| group_creation_1 | 0 | block_opencast |
| group_name_1 | Moodle_course_[COURSEID] | block_opencast |
| series_name_1 | Course_Series_[COURSEID] | block_opencast |
| enablechunkupload_1 | 0 | block_opencast |
| workflow_roles_1 | republish-metadata | block_opencast |
| config | value | plugin |
| apiurl_1 | http://testapi:8080 | tool_opencast |
| apipassword_1 | opencast | tool_opencast |
| apiusername_1 | admin | tool_opencast |
| ocinstances | [{"id":1,"name":"Default","isvisible":true,"isdefault":true}] | tool_opencast |
| limituploadjobs_1 | 0 | block_opencast |
| group_creation_1 | 0 | block_opencast |
| group_name_1 | Moodle_course_[COURSEID] | block_opencast |
| series_name_1 | Course_Series_[COURSEID] | block_opencast |
| enablechunkupload_1 | 0 | block_opencast |
| workflow_roles_1 | republish-metadata | block_opencast |
| aclcontrolafter_1 | 1 | block_opencast |
| metadata_1 | [{"name":"rightsHolder","datatype":"text","required":0,"readonly":0,"param_json":null}] | block_opencast |
| workflow_tags_1 | archive | block_opencast |
| workflow_tags_1 | archive | block_opencast |
And I setup the opencast test api
And I upload a testvideo
And I log in as "teacher1"
Expand Down Expand Up @@ -114,7 +115,7 @@ Feature: Select all videos and perform mass actions in the Opencast Block Overvi
When I click on "Start workflow" "button"
And I wait "2" seconds
Then I should see "Workflow has been successfully started for the selected videos:"
# Testing start workflow.
# Testing Change Visibility.
When I click on "Select all" "checkbox"
And I select "Change Visibility" from the "With Selected Videos..." singleselect
Then I should see "Are you sure you want to perform visibility change on the following selected videos:"
Expand Down

0 comments on commit 8e7d299

Please sign in to comment.