From 8eb8fe384fdd63915a5fa2eec296155f22160578 Mon Sep 17 00:00:00 2001 From: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com> Date: Thu, 12 Sep 2024 13:45:44 +0300 Subject: [PATCH] Tag e2e tests with @to-be-removed --- .../setup-onboarding.spec.js | 32 +++++++++++-------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/plugins/woocommerce/tests/e2e-pw/tests/activate-and-setup/setup-onboarding.spec.js b/plugins/woocommerce/tests/e2e-pw/tests/activate-and-setup/setup-onboarding.spec.js index b7e84f4aff8..c5ac9d7fc51 100644 --- a/plugins/woocommerce/tests/e2e-pw/tests/activate-and-setup/setup-onboarding.spec.js +++ b/plugins/woocommerce/tests/e2e-pw/tests/activate-and-setup/setup-onboarding.spec.js @@ -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/ ); + } ); + } +);