Fixture Class

Use the fixture global function to declare a fixture.

fixture `My Fixture`;

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

You can also import the fixture into your test file.

import { fixture } from 'testcafe';

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

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