wordpress-develop/tests/e2e/specs/hello.test.js
Pascal Birchler 5a838d1bb7 Build/Test Tools: Migrate Puppeteer tests to Playwright.
As per the migration plan shared last year, this migrates all browser-based tests in WordPress core to use Playwright.
This includes end-to-end, performance, and visual regression tests.

Props swissspidy, mamaduka, kevin940726, bartkalisz, desrosj, adamsilverstein.
Fixes #59517.

git-svn-id: https://develop.svn.wordpress.org/trunk@56926 602fd350-edb4-49c9-b593-d223f7449a82
2023-10-13 08:11:41 +00:00

14 lines
359 B
JavaScript

/**
* WordPress dependencies
*/
import { test, expect } from '@wordpress/e2e-test-utils-playwright';
test.describe( 'Hello World', () => {
test( 'Should load properly', async ( { admin, page }) => {
await admin.visitAdminPage( '/' );
await expect(
page.getByRole('heading', { name: 'Welcome to WordPress', level: 2 })
).toBeVisible();
} );
} );