Make WordPress Core

Changeset 45575


Ignore:
Timestamp:
06/28/2019 11:33:13 AM (6 years ago)
Author:
youknowriad
Message:

Build/Test Tools: Fix the hello e2e test assertion.

The previous assertion was always valid because we assumed it returned a single object,
while in reality it was returning an array.

Props hideokamoto.
Fixes #47622.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/e2e/specs/hello.test.js

    r45570 r45575  
    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} );
Note: See TracChangeset for help on using the changeset viewer.