Test Object

Use the test global function to declare a test.

fixture`Test global`
    .page('https://devexpress.github.io/testcafe/example');

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

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

import { test } from 'testcafe';

fixture`Test import`
    .page('https://devexpress.github.io/testcafe/example');

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