Tag e2e tests with @to-be-removed
This commit is contained in:
parent
f6becfaaa6
commit
8eb8fe384f
|
@ -1,17 +1,21 @@
|
|||
const { test, expect } = require( '@playwright/test' );
|
||||
|
||||
test.describe( 'Store owner can login and make sure WooCommerce is activated', () => {
|
||||
test.use( { storageState: process.env.ADMINSTATE } );
|
||||
test.describe(
|
||||
'Store owner can login and make sure WooCommerce is activated',
|
||||
{ tag: [ '@to-be-removed' ] },
|
||||
() => {
|
||||
test.use( { storageState: process.env.ADMINSTATE } );
|
||||
|
||||
test( 'can make sure WooCommerce is activated.', async ( { page } ) => {
|
||||
await page.goto( '/wp-admin/plugins.php' );
|
||||
// Expect the woo plugin to be displayed -- if there's an update available, it has the same data-slug attribute
|
||||
await expect(
|
||||
page.locator( "//tr[@data-slug='woocommerce'][1]" )
|
||||
).toBeVisible();
|
||||
// Expect it to have an active class
|
||||
await expect(
|
||||
page.locator( "//tr[@data-slug='woocommerce'][1]" )
|
||||
).toHaveClass( /active/ );
|
||||
} );
|
||||
} );
|
||||
test( 'can make sure WooCommerce is activated.', async ( { page } ) => {
|
||||
await page.goto( '/wp-admin/plugins.php' );
|
||||
// Expect the woo plugin to be displayed -- if there's an update available, it has the same data-slug attribute
|
||||
await expect(
|
||||
page.locator( "//tr[@data-slug='woocommerce'][1]" )
|
||||
).toBeVisible();
|
||||
// Expect it to have an active class
|
||||
await expect(
|
||||
page.locator( "//tr[@data-slug='woocommerce'][1]" )
|
||||
).toHaveClass( /active/ );
|
||||
} );
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue