From ef6b53165ddf46b96a4d62fcf3f3c922f557eaa1 Mon Sep 17 00:00:00 2001 From: DAnn2012 Date: Mon, 11 Sep 2023 12:12:02 +0200 Subject: [PATCH 1/4] Update PaletteForm.js --- .../apps/customizer-controls/src/global-colors/PaletteForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/apps/customizer-controls/src/global-colors/PaletteForm.js b/assets/apps/customizer-controls/src/global-colors/PaletteForm.js index 22bcaa9134..38f0173f35 100644 --- a/assets/apps/customizer-controls/src/global-colors/PaletteForm.js +++ b/assets/apps/customizer-controls/src/global-colors/PaletteForm.js @@ -50,7 +50,7 @@ const PaletteForm = ({ values, save, disabled }) => { iconSize={16} onClick={toggleAdding} > - {__('Add Custom Palette')} + {__('Add Custom Palette', 'neve')} ); From 280a6bad556e11230630fc01905777692aa1db1a Mon Sep 17 00:00:00 2001 From: DAnn2012 Date: Mon, 11 Sep 2023 12:53:05 +0200 Subject: [PATCH 2/4] Update admin.php --- inc/core/admin.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/core/admin.php b/inc/core/admin.php index 327cade76d..0f6f995ccf 100644 --- a/inc/core/admin.php +++ b/inc/core/admin.php @@ -177,6 +177,7 @@ public function register_react_components() { 'customizerURL' => esc_url( admin_url( 'customize.php' ) ), ] ); + wp_set_script_translations( 'neve-components', 'neve' ); wp_register_style( 'neve-components', trailingslashit( NEVE_ASSETS_URL ) . 'apps/components/build/style-components.css', [ 'wp-components' ], $deps['version'] ); wp_add_inline_style( 'neve-components', Dynamic_Css::get_root_css() ); } From adb7ee7d71654130272e63a81550a540a1f77539 Mon Sep 17 00:00:00 2001 From: DAnn2012 Date: Mon, 11 Sep 2023 14:08:42 +0200 Subject: [PATCH 3/4] Update admin.php --- inc/core/admin.php | 1 + 1 file changed, 1 insertion(+) diff --git a/inc/core/admin.php b/inc/core/admin.php index 0f6f995ccf..f039adb924 100644 --- a/inc/core/admin.php +++ b/inc/core/admin.php @@ -158,6 +158,7 @@ private function maybe_register_notice_script_starter_sites() { wp_localize_script( 'neve-ss-notice', 'tpcPluginData', $this->get_tpc_plugin_data() ); wp_enqueue_script( 'neve-ss-notice' ); + wp_set_script_translations( 'neve-ss-notice', 'neve' ); } /** From 585dc5d330fc0913d9ec5d069772cce79ae1d2ba Mon Sep 17 00:00:00 2001 From: cristian-ungureanu Date: Fri, 15 Sep 2023 17:44:32 +0300 Subject: [PATCH 4/4] chore: increase diff ratio --- e2e-tests/specs/woo-visual-regression/checkout.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e-tests/specs/woo-visual-regression/checkout.spec.ts b/e2e-tests/specs/woo-visual-regression/checkout.spec.ts index d0b64d5819..e2578d4f7f 100644 --- a/e2e-tests/specs/woo-visual-regression/checkout.spec.ts +++ b/e2e-tests/specs/woo-visual-regression/checkout.spec.ts @@ -7,12 +7,12 @@ test.describe('Checkout page check', () => { await page.goto('/checkout/'); await page.locator('#place_order').click(); await page.waitForTimeout(1000); - await expect(page).toHaveScreenshot({ maxDiffPixelRatio: 0.01 }); + await expect(page).toHaveScreenshot({ maxDiffPixelRatio: 0.2 }); }); test('Check MyAccount errors', async ({ page }) => { await page.goto('/my-account/edit-account/'); await page.locator('.woocommerce-Button').first().click(); - await expect(page).toHaveScreenshot({ maxDiffPixelRatio: 0.01 }); + await expect(page).toHaveScreenshot({ maxDiffPixelRatio: 0.2 }); }); });