aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJean-Michel Vedrine <vedrine@vedrine.org>2019-02-02 08:33:28 +0100
committerJean-Michel Vedrine <vedrine@vedrine.org>2019-02-02 08:33:28 +0100
commit76c8063a28713326c1feb54649dd56399077cebd (patch)
treeb8e0db5ed49f90a3055aa09203c29fd19875f940 /tests
parent664753b7873f3dcc200f255bfb5a7535424f9eca (diff)
First try at mobile 3.x support
Diffstat (limited to 'tests')
-rw-r--r--tests/behat/add.feature2
-rw-r--r--tests/behat/backup_and_restore.feature2
-rw-r--r--tests/behat/edit.feature2
-rw-r--r--tests/behat/export.feature2
-rw-r--r--tests/behat/import.feature2
-rw-r--r--tests/behat/preview.feature2
6 files changed, 6 insertions, 6 deletions
diff --git a/tests/behat/add.feature b/tests/behat/add.feature
index f72399e..606e05f 100644
--- a/tests/behat/add.feature
+++ b/tests/behat/add.feature
@@ -16,7 +16,7 @@ Feature: Test creating an Algebra question
| teacher1 | C1 | editingteacher |
And I log in as "teacher1"
And I am on "Course 1" course homepage
- And I navigate to "Question bank" node in "Course administration"
+ And I navigate to "Question bank" in current page administration
Scenario: Create an Algebra question
When I add a "Algebra" question filling the form with:
diff --git a/tests/behat/backup_and_restore.feature b/tests/behat/backup_and_restore.feature
index 2122cdf..57c2423 100644
--- a/tests/behat/backup_and_restore.feature
+++ b/tests/behat/backup_and_restore.feature
@@ -28,7 +28,7 @@ Feature: Test duplicating a quiz containing an Algebra question
| Confirmation | Filename | test_backup.mbz |
And I restore "test_backup.mbz" backup into a new course using this options:
| Schema | Course name | Course 2 |
- And I navigate to "Question bank" node in "Course administration"
+ And I navigate to "Question bank" in current page administration
And I click on "Edit" "link" in the "Algebra question" "table_row"
Then the following fields match these values:
| Question name | Algebra question |
diff --git a/tests/behat/edit.feature b/tests/behat/edit.feature
index 9c4ed64..fda1e3d 100644
--- a/tests/behat/edit.feature
+++ b/tests/behat/edit.feature
@@ -22,7 +22,7 @@ Feature: Test editing an Algebra question
| Test questions | algebra | algebra-001 for editing | simplemath |
And I log in as "teacher1"
And I am on "Course 1" course homepage
- And I navigate to "Question bank" node in "Course administration"
+ And I navigate to "Question bank" in current page administration
@javascript @_switch_window
Scenario: Edit an Algebra question
diff --git a/tests/behat/export.feature b/tests/behat/export.feature
index 73f6bac..1c7435b 100644
--- a/tests/behat/export.feature
+++ b/tests/behat/export.feature
@@ -24,7 +24,7 @@ Feature: Test exporting Short answer questions
And I am on "Course 1" course homepage
Scenario: Export an Algebra question
- When I navigate to "Export" node in "Course administration > Question bank"
+ When I navigate to "Question bank > Export" in current page administration
And I set the field "id_format_xml" to "1"
And I press "Export questions to file"
Then following "click here" should download between "1100" and "1200" bytes
diff --git a/tests/behat/import.feature b/tests/behat/import.feature
index 8e43aff..6c120c1 100644
--- a/tests/behat/import.feature
+++ b/tests/behat/import.feature
@@ -19,7 +19,7 @@ Feature: Test importing Algebra questions
@javascript @_file_upload
Scenario: import Algebra question.
- When I navigate to "Import" node in "Course administration > Question bank"
+ When I navigate to "Question bank > Import" in current page administration
And I set the field "id_format_xml" to "1"
And I upload "question/type/algebra/tests/fixtures/qtype_sample_algebra.xml" file to "Import" filemanager
And I press "id_submitbutton"
diff --git a/tests/behat/preview.feature b/tests/behat/preview.feature
index fec1b29..b287e99 100644
--- a/tests/behat/preview.feature
+++ b/tests/behat/preview.feature
@@ -22,7 +22,7 @@ Feature: Preview an Algebra question
| Test questions | algebra | algebra-001 | simplemath |
Given I log in as "teacher1"
And I am on "Course 1" course homepage
- And I navigate to "Question bank" node in "Course administration"
+ And I navigate to "Question bank" in current page administration
@javascript @_switch_window
Scenario: Preview an Algebra question with correct answer