Code Editor

The Code Editor allows you to write and modify coded tests. To open the editor, double-click a test file's node or a test's node in the Explorer panel. If you create a new test file (see Write Test Code), TestCafe Studio automatically opens the file in the editor.

Code Editor

You can write coded tests using JavaScript or TypeScript. Refer to the Test API topic in the open-source TestCafe documentation for information about the API used in tests.

The Code Editor provides the following code edit features: syntax highlight, code completion, parameter hints, bracket matching, go to definition, peek definition and so on.

The editor also provides the Run test button buttons that allow you to run a fixture and individual tests. These buttons are shown in the gutter for lines that define fixtures and tests.