signInAsUserById = async (page, userId) => {
    await page.goto('/ghost');
    // Add owner user data from usual fixture
    const user = DataGenerator.Content.users.find(u => u.id === userId);

    // Fill email + password
    await page.locator('#identification').fill(user.email);
    await page.locator('#password').fill(user.password);
    await page.getByRole('button', {name: 'Sign in'}).click();
    // Confirm we have reached Ghost Admin
    await page.locator('.gh-nav').waitFor({state: 'visible', timeout: 10000});
}
Using this to fix ESLint
@type {object}
@field {string} state
@field {number} timeout