Wordpress/tests/e2e/specs/hello.test.js

12 lines
311 B
JavaScript
Raw Normal View History

import { visitAdminPage } from '@wordpress/e2e-test-utils';
describe( 'Hello World', () => {
it( 'Should load properly', async () => {
await visitAdminPage( '/' );
const nodes = await page.$x(
'//h2[contains(text(), "Welcome to WordPress!")]'
);
expect( nodes.length ).not.toEqual( 0 );
} );
} );