WordPress.org

Make WordPress Core

Ticket #47622: 47622.patch

File 47622.patch, 585 bytes (added by hideokamoto, 8 months ago)

The patch for the ticket

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

    diff --git a/tests/e2e/specs/hello.test.js b/tests/e2e/specs/hello.test.js
    index aba42d59f3..038957883b 100644
    a b import { visitAdminPage } from '@wordpress/e2e-test-utils'; 
    33describe( 'Hello World', () => {
    44        it( 'Should load properly', async () => {
    55                await visitAdminPage( '/' );
    6                 const title = await page.$x(
     6                const nodes = await page.$x(
    77                        '//h2[contains(text(), "Welcome to WordPress!")]'
    88                );
    9                 expect( title ).not.toBeNull();
     9                expect( nodes.length ).not.toEqual( 0 );
    1010        } );
    1111} );