Skip to content

Commit 02348e5

Browse files
committed
Refine plugin row locator to exclude update rows in activation test
1 parent 506c1b1 commit 02348e5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/qit/e2e/basic.spec.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ test( 'Verify WooCommerce Payments plugin activation', async ( { page } ) => {
5151
// Check plugins page to verify WooCommerce Payments is active
5252
await page.goto( '/wp-admin/plugins.php' );
5353

54-
// Look for the WooCommerce Payments plugin row
55-
const pluginRow = page.locator( 'tr[data-plugin*="woocommerce-payments"]' );
54+
// Look for the WooCommerce Payments plugin row (exclude update row)
55+
const pluginRow = page.locator(
56+
'tr[data-plugin*="woocommerce-payments"]:not(.plugin-update-tr)'
57+
);
5658
await expect( pluginRow ).toBeVisible();
5759

5860
// Verify it shows as activated

0 commit comments

Comments
 (0)