Skip to content

Commit 2c3a611

Browse files
committed
node error resolve
1 parent 9c3a1bb commit 2c3a611

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

test/e2e/admin-tests/gatherpress-event-featured-image.spec.js

+18-14
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,33 @@ test.describe('e2e test for publish event through admin side', () => {
2424
.first()
2525
.isVisible();
2626

27-
await page
28-
.getByLabel('Add title')
29-
.fill('Featured Image test');
27+
await page.getByLabel('Add title').fill('Featured Image test');
3028

3129
await page.getByRole('heading', { name: 'Date & time' }).isVisible();
3230

33-
3431
await page.getByRole('button', { name: 'Set featured image' }).click();
3532

36-
await page.locator('.attachments-wrapper').locator('li').first().click()
33+
await page
34+
.locator('.attachments-wrapper')
35+
.locator('li')
36+
.first()
37+
.click();
3738

3839
await page.getByRole('button', { name: 'Set featured image' }).click();
3940

40-
await page.getByRole('button', { name: 'Publish', exact: true }).click();
41-
await page.getByLabel('Editor publish')
41+
await page
4242
.getByRole('button', { name: 'Publish', exact: true })
4343
.click();
44-
await page.getByLabel('Editor publish')
45-
.getByRole('link', { name: 'View Event' }).click();
46-
await page.locator('#wp--skip-link--target img')
47-
.isVisible();
44+
await page
45+
.getByLabel('Editor publish')
46+
.getByRole('button', { name: 'Publish', exact: true })
47+
.click();
48+
await page
49+
.getByLabel('Editor publish')
50+
.getByRole('link', { name: 'View Event' })
51+
.click();
52+
await page.locator('#wp--skip-link--target img').isVisible();
4853

49-
await page.screenshot({ path: 'featured-image.png', fullPage: true })
54+
await page.screenshot({ path: 'featured-image.png', fullPage: true });
5055
});
51-
52-
})
56+
});

0 commit comments

Comments
 (0)