[e2e tests] Fix basic spec for multiple environments (#49609)
This commit is contained in:
parent
2a877ecc7b
commit
b32c742f3f
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: dev
|
||||
|
||||
E2E tests: fix basic spec for multiple environments
|
|
@ -6,7 +6,7 @@ config = {
|
|||
retries: 0,
|
||||
projects: [
|
||||
{
|
||||
name: 'default',
|
||||
name: 'default pressable',
|
||||
use: { ...devices[ 'Desktop Chrome' ] },
|
||||
testMatch: '**basic.spec.js',
|
||||
},
|
||||
|
|
|
@ -6,7 +6,7 @@ config = {
|
|||
retries: 0,
|
||||
projects: [
|
||||
{
|
||||
name: 'default',
|
||||
name: 'default wpcom',
|
||||
use: { ...devices[ 'Desktop Chrome' ] },
|
||||
testMatch: '**basic.spec.js',
|
||||
},
|
||||
|
|
|
@ -9,9 +9,7 @@ test( 'Load the home page', async ( { page } ) => {
|
|||
.getByRole( 'link', { name: 'WooCommerce Core E2E Test' } )
|
||||
.count()
|
||||
).toBeGreaterThan( 0 );
|
||||
await expect(
|
||||
page.getByText( 'Proudly powered by WordPress' )
|
||||
).toBeVisible();
|
||||
await expect( page.getByText( /powered by WordPress/i ) ).toBeVisible();
|
||||
expect( await page.title() ).toBe( 'WooCommerce Core E2E Test Suite' );
|
||||
await expect(
|
||||
page.getByRole( 'link', { name: 'WordPress' } )
|
||||
|
|
Loading…
Reference in New Issue