Commit 49eb16e9e3b for woocommerce
commit 49eb16e9e3b0717b3cdbd5f048465c6251715d62
Author: Taha Paksu <3295+tpaksu@users.noreply.github.com>
Date: Mon Mar 2 19:54:22 2026 +0300
Fix prettier lint errors from E2E WP 7.0 compat PR (#63494)
diff --git a/plugins/woocommerce/tests/e2e-pw/tests/onboarding/onboarding-wizard.spec.ts b/plugins/woocommerce/tests/e2e-pw/tests/onboarding/onboarding-wizard.spec.ts
index 9801006a809..77ba7e35962 100644
--- a/plugins/woocommerce/tests/e2e-pw/tests/onboarding/onboarding-wizard.spec.ts
+++ b/plugins/woocommerce/tests/e2e-pw/tests/onboarding/onboarding-wizard.spec.ts
@@ -424,7 +424,9 @@ test.describe(
await test.step( 'Clean up installed extensions', async () => {
const deactivateAndDeletePlugin = async ( slug: string ) => {
await page.goto( 'wp-admin/plugins.php' );
- const pluginRow = page.locator( `tr[data-slug="${ slug }"]` );
+ const pluginRow = page.locator(
+ `tr[data-slug="${ slug }"]`
+ );
// Skip if plugin is not present
if ( ! ( await pluginRow.isVisible() ) ) {
@@ -432,7 +434,10 @@ test.describe(
}
// Deactivate if active
- const deactivateLink = pluginRow.getByRole( 'link', { name: 'Deactivate', exact: true } );
+ const deactivateLink = pluginRow.getByRole( 'link', {
+ name: 'Deactivate',
+ exact: true,
+ } );
if ( await deactivateLink.isVisible() ) {
await deactivateLink.click();
await expect(
@@ -441,7 +446,10 @@ test.describe(
}
// Delete plugin
- const deleteLink = pluginRow.getByRole( 'link', { name: 'Delete', exact: true } );
+ const deleteLink = pluginRow.getByRole( 'link', {
+ name: 'Delete',
+ exact: true,
+ } );
if ( await deleteLink.isVisible() ) {
try {
await deleteLink.click();
@@ -453,7 +461,9 @@ test.describe(
.getByText( 'Yes, delete these files and data' )
.click();
await page
- .getByText( 'The selected plugin has been deleted.' )
+ .getByText(
+ 'The selected plugin has been deleted.'
+ )
.waitFor();
}
}
diff --git a/plugins/woocommerce/tests/e2e-pw/tests/product/product-reviews.spec.ts b/plugins/woocommerce/tests/e2e-pw/tests/product/product-reviews.spec.ts
index 7033901feeb..e6dcdb3ec51 100644
--- a/plugins/woocommerce/tests/e2e-pw/tests/product/product-reviews.spec.ts
+++ b/plugins/woocommerce/tests/e2e-pw/tests/product/product-reviews.spec.ts
@@ -321,7 +321,7 @@ test.describe( 'Product Reviews', () => {
const trashNoticeText = await trashNotice.textContent();
expect(
trashNoticeText?.includes( trashMessage ) ||
- trashNoticeText?.includes( trashMessageSmart )
+ trashNoticeText?.includes( trashMessageSmart )
).toBeTruthy();
await page.getByRole( 'button', { name: 'Undo' } ).click();
@@ -335,7 +335,7 @@ test.describe( 'Product Reviews', () => {
const trashNoticeText2 = await trashNotice2.textContent();
expect(
trashNoticeText2?.includes( trashMessage ) ||
- trashNoticeText2?.includes( trashMessageSmart )
+ trashNoticeText2?.includes( trashMessageSmart )
).toBeTruthy();
await page.click( 'a[href*="comment_status=trash"]' );