Pausing the Test

Use the test controller's wait function to pause a test for a specified period of time.

t.wait( timeout )
Parameter Type Description
timeout Number The pause duration, in milliseconds.

The following example uses the t.wait function to pause the test while animation is playing.

import { Selector } from 'testcafe';

const header = Selector('#article-header');

fixture `My fixture`
    .page ``;

test('Wait Example', async t => {
    await t