Skip to content

Commit 3942d6c

Browse files
authored
Merge pull request #710 from jrchamp/fix/behat-configure
behat: configure during step; javascript is unnecessary
2 parents b4c0137 + cbd85d4 commit 3942d6c

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

tests/behat/view_meeting.feature

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
Feature: View a meeting
33

44
Background:
5-
Given the following "users" exist:
5+
Given the following config values are set as admin:
6+
| config | value | plugin | encrypted |
7+
| accountid | test | zoom | |
8+
| clientid | test | zoom | |
9+
| clientsecret | test | zoom | |
10+
And the following "users" exist:
611
| username | firstname | lastname | email |
712
| teacher1 | Terry1 | Teacher1 | teacher1@example.com |
813
| student1 | Sam1 | Student1 | student1@example.com |
@@ -22,7 +27,6 @@ Feature: View a meeting
2227
| section | 1 |
2328
| grade | 100 |
2429

25-
@javascript
2630
Scenario: As a student, I should be able to view a Zoom meeting's details
2731
When I am on the "Meeting 1" "mod_zoom > View" page logged in as "student1"
2832
Then I should see "Start Time"

tests/generator/lib.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ public function create_instance($record = null, ?array $options = null) {
3232
global $CFG;
3333
require_once($CFG->dirroot . '/mod/zoom/locallib.php');
3434

35-
set_config('clientid', 'test', 'zoom');
36-
set_config('clientsecret', 'test', 'zoom');
37-
set_config('accountid', 'test', 'zoom');
38-
3935
// Mock Zoom data for testing.
4036
$defaultzoomsettings = [
4137
'grade' => 0,

0 commit comments

Comments
 (0)