Selenium/How-to/Create the first test in a repository

MediaWiki Extension
Let's write a new simple test for a MediaWiki extension. For example, Math. This example is available as 5 and 17 minute videos. For more examples see Write tests section of Selenium/Node.js page.

Code
Following code is in Gerrit (346982).

A new test file should be created:

A new page object file should be created:

Output
To run all tests, run this from MediaWiki core folder:

To run just the new test file, run this from MediaWiki core folder, in two separate terminal tabs or windows: