Skip to content

Commit

Permalink
node error resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
Prayag11 committed Jan 6, 2025
1 parent 9c3a1bb commit 2c3a611
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions test/e2e/admin-tests/gatherpress-event-featured-image.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,33 @@ test.describe('e2e test for publish event through admin side', () => {
.first()
.isVisible();

await page
.getByLabel('Add title')
.fill('Featured Image test');
await page.getByLabel('Add title').fill('Featured Image test');

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


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

await page.locator('.attachments-wrapper').locator('li').first().click()
await page
.locator('.attachments-wrapper')
.locator('li')
.first()
.click();

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

await page.getByRole('button', { name: 'Publish', exact: true }).click();
await page.getByLabel('Editor publish')
await page
.getByRole('button', { name: 'Publish', exact: true })
.click();
await page.getByLabel('Editor publish')
.getByRole('link', { name: 'View Event' }).click();
await page.locator('#wp--skip-link--target img')
.isVisible();
await page
.getByLabel('Editor publish')
.getByRole('button', { name: 'Publish', exact: true })
.click();
await page
.getByLabel('Editor publish')
.getByRole('link', { name: 'View Event' })
.click();
await page.locator('#wp--skip-link--target img').isVisible();

await page.screenshot({ path: 'featured-image.png', fullPage: true })
await page.screenshot({ path: 'featured-image.png', fullPage: true });
});

})
});

0 comments on commit 2c3a611

Please sign in to comment.