Updated twitter and FB settings tests in AdminX

refs. https://github.com/TryGhost/Team/issues/3354
This commit is contained in:
Peter Zimon 2023-06-09 11:52:26 +02:00
parent 33ea5486df
commit 4e5523674c
2 changed files with 2 additions and 2 deletions

View File

@ -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');

View File

@ -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');