Skip to content

Commit d73cb1a

Browse files
chore(E2E): update button text for installation prompt in dashboard notice
1 parent 07f2122 commit d73cb1a

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

assets/apps/starter-sites/src/ss-try-button/SSTryButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const SSTryButton: React.FC = () => {
8888
installing || activating ? 'is-loading' : '',
8989
]);
9090

91-
let buttonLabel = __('Try one of our ready to use Starter Sites', 'neve');
91+
let buttonLabel = __('Explore Templates and Start Building Now!', 'neve');
9292
if (installing) {
9393
buttonLabel = __('Installing', 'neve');
9494
}

e2e-tests/specs/admin/tpc-notice-install.spec.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ test.describe('Dashboard Notice', () => {
99

1010
await expect(page).toHaveURL(/wp-admin\/index.php/);
1111

12-
await expect(page.locator('button.install-now')).toContainText(
13-
'Try one of our ready to use Starter Sites'
14-
);
15-
await expect(page.locator('button.install-now')).toBeVisible();
12+
await expect(page.locator('.button.install-now')).toBeVisible();
13+
await expect(page.locator('a.ti-return-dashboard')).toBeVisible();
1614

1715
await Promise.all([
1816
page.waitForURL(/wp-admin\/admin.php\?page=neve-onboarding/),
19-
page.locator('button.install-now').click(),
20-
expect(page.locator('button.install-now')).toContainText(
17+
page.locator('.button.install-now').click(),
18+
expect(page.locator('.button.install-now')).toContainText(
2119
/(Activating|Installing)/
2220
),
2321
]);

inc/core/admin.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ public function welcome_notice_content() {
502502
);
503503

504504
$onboarding_notice_exit_btn = sprintf(
505-
'<a href="%1$s" class=" ti-return-dashboard button button-link button-hero install-now" >
505+
'<a href="%1$s" class="ti-return-dashboard button button-link button-hero" >
506506
<span>%2$s</span>
507507
</a>',
508508
esc_url( admin_url( '?page=neve-welcome' ) ),
@@ -523,7 +523,9 @@ public function welcome_notice_content() {
523523
<h2 class="nv-notice-title">%2$s</h2>
524524
<p class="about-description">%3$s</h3>
525525
<div class="nv-notice-actions">
526-
%4$s
526+
<div id="neve-ss-install">
527+
%4$s
528+
</div>
527529
%5$s
528530
</div>
529531
',

0 commit comments

Comments
 (0)