diff --git a/modules/admin-home/components/admin-top-bar.php b/modules/admin-home/components/admin-top-bar.php index 7b855505..09f7bef4 100644 --- a/modules/admin-home/components/admin-top-bar.php +++ b/modules/admin-home/components/admin-top-bar.php @@ -12,7 +12,7 @@ class Admin_Top_Bar { const CONFIG_OBJECT_NAME = 'ehpTopBarConfig'; - const UPGRADE_PRO_URL = 'https://go.elementor.com/hello-upgrade-epro/'; + const UPGRADE_PRO_URL = 'https://go.elementor.com/go-pro-hello-theme-upgrade-top-bar/'; private function render_admin_top_bar() { ?> diff --git a/modules/admin-home/rest/admin-config.php b/modules/admin-home/rest/admin-config.php index 3d6cccf7..a24f0f29 100644 --- a/modules/admin-home/rest/admin-config.php +++ b/modules/admin-home/rest/admin-config.php @@ -76,8 +76,8 @@ public function get_welcome_box_config( array $config ): array { if ( $is_elementor_active && ! $has_pro ) { $config['welcome'] = [ - 'title' => __( 'Go Pro, Go Limitless', 'hello-elementor' ), - 'text' => __( 'Unlock the theme builder, popup builder, 100+ widgets and more advanced tools to take your website to the next level.', 'hello-elementor' ), + 'title' => __( 'Build more with Elementor Pro', 'hello-elementor' ), + 'text' => __( 'Add the theme builder, popup builder, and 85+ advanced widgets to your Elementor Editor.', 'hello-elementor' ), 'buttons' => [ [ 'linkText' => __( 'Upgrade now', 'hello-elementor' ), diff --git a/tests/playwright/tests/theme-settings.test.ts b/tests/playwright/tests/theme-settings.test.ts index 52d73f21..a75474e4 100644 --- a/tests/playwright/tests/theme-settings.test.ts +++ b/tests/playwright/tests/theme-settings.test.ts @@ -1,6 +1,7 @@ import { parallelTest as test } from '../parallelTest.ts'; import { expect } from '@playwright/test'; import WpAdminPage from '../pages/wp-admin-page.ts'; +import SettingsPage from '../pages/settings-page.ts'; test.describe('Admin Menu', () => { test('Hello Elementor menu exists in sidebar with correct name', async ({ @@ -38,4 +39,21 @@ test.describe('Admin Menu', () => { await expect(helloMenu.locator('.wp-submenu li')).toHaveCount(0); }); + + test('shows Upgrade Now button in top bar when Elementor Pro is inactive', async ({ + page, + apiRequests, + }, testInfo) => { + const settingsPage = new SettingsPage(page, testInfo, apiRequests); + + await settingsPage.gotoSettingsPage(); + + const upgradeButton = page.getByRole('link', { name: 'Upgrade Now' }); + await expect(upgradeButton).toBeVisible(); + await expect(upgradeButton).toHaveAttribute( + 'href', + 'https://go.elementor.com/go-pro-hello-theme-upgrade-top-bar/', + ); + await expect(upgradeButton).toHaveAttribute('target', '_blank'); + }); });