hello.test.js 311 B

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