Skip to content

Commit

Permalink
chore(E2E): update button text for installation prompt in dashboard n…
Browse files Browse the repository at this point in the history
…otice
  • Loading branch information
Soare-Robert-Daniel committed Dec 19, 2024
1 parent 07f2122 commit 231d8be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions e2e-tests/specs/admin/tpc-notice-install.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ test.describe('Dashboard Notice', () => {

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

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

await Promise.all([
page.waitForURL(/wp-admin\/admin.php\?page=neve-onboarding/),
Expand Down
2 changes: 1 addition & 1 deletion inc/core/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ public function welcome_notice_content() {
);

$onboarding_notice_exit_btn = sprintf(
'<a href="%1$s" class=" ti-return-dashboard button button-link button-hero install-now" >
'<a href="%1$s" class="ti-return-dashboard button button-link button-hero" >
<span>%2$s</span>
</a>',
esc_url( admin_url( '?page=neve-welcome' ) ),
Expand Down

0 comments on commit 231d8be

Please sign in to comment.