| 1 |
import { expect, test } from './fixtures'; |
| 2 |
|
| 3 |
test.beforeEach(async ({ requestUtils }) => { |
| 4 |
await requestUtils.login(); |
| 5 |
}); |
| 6 |
|
| 7 |
test('admin can reach the WP dashboard', async ({ admin, page }) => { |
| 8 |
await admin.visitAdminPage('index.php'); |
| 9 |
await expect(page.getByRole('heading', { name: 'Dashboard' })).toBeVisible(); |
| 10 |
}); |
| 11 |
|