checkPostStatus = async (page, status, hoverStatus) => {
    await expect(page.locator('[data-test-editor-post-status]').first()).toContainText(status, {timeout: 5000});

    if (hoverStatus) {
        await page.locator('[data-test-editor-post-status]').first().hover();
        await expect(page.locator('[data-test-editor-post-status]').first()).toContainText(hoverStatus, {timeout: 5000});
    }
}
Test the status of a post in the post editor.
@param {import('@playwright/test').Page} page
@param {string} status The status you expect to see
@param {string} [hoverStatus] Optional different status when you hover the status