mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-53126 behat: Fixed radio button in backup step
Rather than calling click and check on radio node use radio form field to set value
This commit is contained in:
parent
83a951023e
commit
788beb6705
3 changed files with 2 additions and 5 deletions
|
@ -172,8 +172,8 @@ class behat_backup extends behat_base {
|
||||||
"/descendant::tr[contains(., $fromcourse)]" .
|
"/descendant::tr[contains(., $fromcourse)]" .
|
||||||
"/descendant::input[@type='radio']";
|
"/descendant::input[@type='radio']";
|
||||||
$radionode = $this->find('xpath', $xpath, $exception);
|
$radionode = $this->find('xpath', $xpath, $exception);
|
||||||
$radionode->check();
|
$radiofield = new behat_form_field($this->getSession(), $radionode);
|
||||||
$radionode->click();
|
$radiofield->set_value(1);
|
||||||
|
|
||||||
$this->find_button(get_string('continue'))->press();
|
$this->find_button(get_string('continue'))->press();
|
||||||
$this->wait();
|
$this->wait();
|
||||||
|
|
|
@ -4,7 +4,6 @@ Feature: Import course's contents into another course
|
||||||
As a teacher
|
As a teacher
|
||||||
I need to import a course contents into another course selecting what I want to import
|
I need to import a course contents into another course selecting what I want to import
|
||||||
|
|
||||||
@javascript
|
|
||||||
Scenario: Import course's contents to another course
|
Scenario: Import course's contents to another course
|
||||||
Given the following "courses" exist:
|
Given the following "courses" exist:
|
||||||
| fullname | shortname | category |
|
| fullname | shortname | category |
|
||||||
|
|
|
@ -28,7 +28,6 @@ Feature: Option to include groups and groupings when importing a course to anoth
|
||||||
And I follow "Course 1"
|
And I follow "Course 1"
|
||||||
And I turn editing mode on
|
And I turn editing mode on
|
||||||
|
|
||||||
@javascript
|
|
||||||
Scenario: Include groups and groupings when importing a course to another course
|
Scenario: Include groups and groupings when importing a course to another course
|
||||||
When I import "Course 1" course into "Course 2" course using this options:
|
When I import "Course 1" course into "Course 2" course using this options:
|
||||||
| Initial | Include groups and groupings | 1 |
|
| Initial | Include groups and groupings | 1 |
|
||||||
|
@ -40,7 +39,6 @@ Feature: Option to include groups and groupings when importing a course to anoth
|
||||||
And I should see "Grouping 1"
|
And I should see "Grouping 1"
|
||||||
And I should see "Grouping 2"
|
And I should see "Grouping 2"
|
||||||
|
|
||||||
@javascript
|
|
||||||
Scenario: Do not include groups and groupings when importing a course to another course
|
Scenario: Do not include groups and groupings when importing a course to another course
|
||||||
When I import "Course 1" course into "Course 2" course using this options:
|
When I import "Course 1" course into "Course 2" course using this options:
|
||||||
| Initial | Include groups and groupings | 0 |
|
| Initial | Include groups and groupings | 0 |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue