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 `My Fixture`
    .page("http://devexpress.github.io/testcafe/example");

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