Skip to content

Commit

Permalink
[docs] migrate Behat page
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyatregubov committed Jun 30, 2022
1 parent 0ff4371 commit 8ce8cb7
Show file tree
Hide file tree
Showing 5 changed files with 730 additions and 6 deletions.
9 changes: 6 additions & 3 deletions data/migratedPages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ Course_formats:
Creating_mobile_course_formats:
- filePath: "/docs/moodleapp/development/plugins-development-guide/examples/create-course-formats.md"
slug: "/docs/moodleapp/development/plugins-development-guide/examples/create-course-formats"
Custom_Moodle_Apps:
- filePath: "/docs/moodleapp/customisation/custom-apps.md"
slug: "/docs/moodleapp/customisation/custom-apps"
Credits:
- filePath: "/general/community/credits/index.md"
slug: "/general/community/credits"
Custom_Moodle_Apps:
- filePath: "/docs/moodleapp/customisation/custom-apps.md"
slug: "/docs/moodleapp/customisation/custom-apps"
DDL_functions:
- filePath: "/docs/apis/core/dml/ddl.md"
slug: "/docs/apis/core/dml/ddl"
Expand Down Expand Up @@ -1455,6 +1455,9 @@ Roadmap:
Roles:
- filePath: "/docs/apis/subsystems/roles.md"
slug: "/docs/apis/subsystems/roles"
Running_acceptance_test:
- filePath: "/general/development/tools/behat.md"
slug: "/general/development/tools/behat"
SQL_coding_style:
- filePath: "/general/development/policies/codingstyle/sql.md"
slug: "/general/development/policies/codingstyle/sql"
Expand Down
2 changes: 1 addition & 1 deletion docs/moodleapp/development/testing/acceptance-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ $CFG->behat_ionic_wwwroot = 'http://localhost:8100';

The url you use here must be reachable by your Moodle site, and the application needs to be served at this url when running tests and also when you initialise the Behat environment.

The Moodle App [only works in Chromium-based browsers](../setup/app-in-browser), so mobile tests will be ignored if you are using any other browser. You can learn how to configure the browser used in your tests in the [Running acceptance test](https://docs.moodle.org/dev/Running_acceptance_test) page.
The Moodle App [only works in Chromium-based browsers](../setup/app-in-browser), so mobile tests will be ignored if you are using any other browser. You can learn how to configure the browser used in your tests in the [Running acceptance test](/general/development/tools/behat) page.

If everything is configured properly, you should see "Configured app tests for version X.X.X" after running `admin/tool/behat/cli/init.php`.

Expand Down
2 changes: 1 addition & 1 deletion general/development/process/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ We recommend that you follow [PHPUnit integration](https://docs.moodle.org/dev/P

Moodle uses a framework called Behat to automatically test the user-interface. Tests can be written for each plugin, and for Moodle core.

- To run the existing tests, read [Running acceptance test](https://docs.moodle.org/dev/Running_acceptance_test). You really need to do this first.
- To run the existing tests, read [Running acceptance test](/general/development/tools/behat). You really need to do this first.
- To write new tests, read [Writing acceptance tests](https://docs.moodle.org/dev/Writing_acceptance_tests).
- To define new steps that can you used when writing tests, see [Writing new acceptance test step definitions](https://docs.moodle.org/dev/Writing_new_acceptance_test_step_definitions).

Expand Down
Loading

0 comments on commit 8ce8cb7

Please sign in to comment.