Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/admin-home/components/admin-top-bar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
?>
Expand Down
4 changes: 2 additions & 2 deletions modules/admin-home/rest/admin-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
Expand Down
18 changes: 18 additions & 0 deletions tests/playwright/tests/theme-settings.test.ts
Original file line number Diff line number Diff line change
@@ -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 ({
Expand Down Expand Up @@ -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');
});
});
Loading