Skip to content

Commit

Permalink
Testing "E2E tests" workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
imanish003 committed Dec 23, 2024
1 parent cd240b5 commit f9c3138
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions e2e/specs/browser.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ describe( 'Storefront', () => {
} );

it( 'should have "built with WooCommerce" footer', async () => {
const footerText = await page.evaluate( () => document.querySelector( 'body' ).innerText );
expect( footerText ).toMatch( 'Built with WooCommerce.' );
const footerText = await page.evaluate(
() => document.querySelector( 'body' ).innerText
);
expect( footerText ).toMatch( 'This text does not exist' );
} );
} );

0 comments on commit f9c3138

Please sign in to comment.