mirror of
https://github.com/xtr-dev/payload-mailing.git
synced 2025-12-10 16:23:23 +00:00
16 lines
472 B
TypeScript
16 lines
472 B
TypeScript
import { expect, test } from '@playwright/test'
|
|
|
|
// this is an example Playwright e2e test
|
|
test('should render admin panel logo', async ({ page }) => {
|
|
await page.goto('/admin')
|
|
|
|
// login
|
|
await page.fill('#field-email', 'dev@payloadcms.com')
|
|
await page.fill('#field-password', 'test')
|
|
await page.click('.form-submit button')
|
|
|
|
// should show dashboard
|
|
await expect(page).toHaveTitle(/Dashboard/)
|
|
await expect(page.locator('.graphic-icon')).toBeVisible()
|
|
})
|