Role.anonymous Method

Returns an anonymous role. When you enable an anonymous role, TestCafe empties the authentication data storage and logs the user out.


Call the t.useRole method to activate an anonymous role:

import { Role, Selector } from 'testcafe';

const payingUser = Role('', async t => {
    // Log in...

fixture `My Fixture`
    .page ``;

test('Paid content is displayed for paying users', async t => {
    await t