checkPostNotPublished = async (page, {slug, title}) => {
    if (!slug) {
        slug = slugify(title);
    }
    const url = `/${slug}/`;

    // Go to the page and check if the status code is 404
    const response = await page.goto(url);
    expect(response.status()).toBe(404);
}
Checks the post or page doesn't exist and returns a 404 page
@param {import('@playwright/test').Page} page
@param {Object} options
@param {String} [options.slug]
@param {String} [options.title]