Test Object

Use the test global function to declare a test.

fixture `My Fixture`;
    .page("http://devexpress.github.io/testcafe/example");

test('Click a button', async t => {
    await t.click('#button');
});

You can also import the test object into your test file.

import { test } from 'testcafe';

fixture `My Fixture`
    .page("http://devexpress.github.io/testcafe/example");

test('Click a button', async t => {
    await t.click('#button');
});