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