Documentation
REFERENCE
fixture Function
Declares a fixture.
fixture( fixtureName ) → this
fixture `fixtureName` → this
Parameter | Type | Description |
---|---|---|
fixtureName |
String | The name of the fixture. |
This function returns the fixture object that allows you to configure the fixture: specify the start webpage, metadata and the initialization and clean-up code for tests included in the fixture.
fixture `Authentication tests`
.page `https://devexpress.github.io/testcafe/`
.beforeEach(async t => {
await t.click('#button');
});
Use the test global function to declare tests in this fixture.