mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
Updated twitter and FB settings tests in AdminX
refs. https://github.com/TryGhost/Team/issues/3354
This commit is contained in:
parent
33ea5486df
commit
4e5523674c
@ -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');
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user