diff --git a/ghost/admin-x-settings/test/e2e/general/facebook.test.ts b/ghost/admin-x-settings/test/e2e/general/facebook.test.ts index 7a0371295b..eb5b166236 100644 --- a/ghost/admin-x-settings/test/e2e/general/facebook.test.ts +++ b/ghost/admin-x-settings/test/e2e/general/facebook.test.ts @@ -22,7 +22,7 @@ test.describe('Facebook settings', async () => { const fileChooser = await fileChooserPromise; await fileChooser.setFiles(`${__dirname}/../../utils/images/image.png`); - await expect(section.locator('[style*="background-image"]')).toHaveCSS('background-image', 'url("http://example.com/image.png")'); + await expect(section.getByRole('img')).toBeVisible(); await section.getByLabel('Facebook title').fill('Facetitle'); await section.getByLabel('Facebook description').fill('Facescription'); diff --git a/ghost/admin-x-settings/test/e2e/general/twitter.test.ts b/ghost/admin-x-settings/test/e2e/general/twitter.test.ts index 81d74517de..389de30222 100644 --- a/ghost/admin-x-settings/test/e2e/general/twitter.test.ts +++ b/ghost/admin-x-settings/test/e2e/general/twitter.test.ts @@ -22,7 +22,7 @@ test.describe('Twitter settings', async () => { const fileChooser = await fileChooserPromise; await fileChooser.setFiles(`${__dirname}/../../utils/images/image.png`); - await expect(section.locator('[style*="background-image"]')).toHaveCSS('background-image', 'url("http://example.com/image.png")'); + await expect(section.getByRole('img')).toBeVisible(); await section.getByLabel('Twitter title').fill('Twititle'); await section.getByLabel('Twitter description').fill('Twitscription');