Skip to content

Commit 9bb3459

Browse files
committed
Merge branch 'develop' into feat/cimo-notice
2 parents 59de0d4 + cfefc88 commit 9bb3459

File tree

11 files changed

+3186
-3126
lines changed

11 files changed

+3186
-3126
lines changed

e2e/tests/admin.spec.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@ test( 'Activating Stackable should redirect to the Getting Started Page', async
1818
await activate.click()
1919

2020
try {
21-
await expect( page ).toHaveURL( /stackable-getting-started/ )
21+
await expect( page ).toHaveURL( /stackable/ )
22+
await expect( page.getByText( 'Welcome to Stackable' ) ).toBeVisible()
2223
} catch {
2324
await expect( page ).toHaveURL( /page=stackable/ )
2425
await expect( page.getByRole( 'link', { name: 'Activate Free Version' } ) ).toBeVisible()
2526
await page.getByRole( 'link', { name: 'Activate Free Version' } ).click()
2627
await page.getByRole( 'link', { name: 'Skip', exact: true } ).click()
27-
await expect( page ).toHaveURL( /stackable-getting-started/ )
28+
await expect( page ).toHaveURL( /stackable/ )
29+
await expect( page.getByText( 'Welcome to Stackable' ) ).toBeVisible()
2830
}
2931
} )
3032

@@ -36,7 +38,7 @@ test( 'Stackable settings should be saved', async ( {
3638
// Start waiting for Stackable Settings JSON Response before visiting the page
3739
let settings = stackable.waitForSettings()
3840

39-
await admin.visitAdminPage( 'options-general.php?page=stackable' )
41+
await admin.visitAdminPage( 'admin.php?page=stackable-settings' )
4042
// Make sure all Stackable settings are loaded
4143
await settings
4244

freemius.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function sugb_fs() {
2525
// Do not redirect to the getting started when in network activating
2626
// in multisite or in the mainsite because it will redirect to a 404
2727
// page.
28-
$first_path = 'options-general.php?page=stackable-getting-started';
28+
$first_path = 'admin.php?page=stackable';
2929
if ( is_multisite() && is_main_site() ) {
3030
$first_path = 'plugins.php';
3131
}
@@ -34,7 +34,7 @@ function sugb_fs() {
3434
// https://github.com/Freemius/wordpress-sdk/issues/674 If the menu
3535
// slug is options-general, for a network activated plugin, all
3636
// admin URLs will be broken. This is a temporary fix.
37-
$menu_slug = 'options-general.php';
37+
$menu_slug = 'stackable';
3838
if ( is_multisite() && is_main_site() && is_plugin_active_for_network( plugin_basename( STACKABLE_FILE ) ) ) {
3939
if ( ! empty( $_SERVER ) && isset( $_SERVER['REQUEST_URI'] ) && stripos( $_SERVER['REQUEST_URI'], '/admin.php' ) !== false ) {
4040
$menu_slug = 'admin.php';
@@ -54,8 +54,8 @@ function sugb_fs() {
5454
'menu' => array(
5555
'slug' => 'stackable',
5656
'first-path' => $first_path,
57-
'account' => true,
58-
'pricing' => true,
57+
'account' => false,
58+
'pricing' => false,
5959
'contact' => true,
6060
'support' => false,
6161
'affiliation' => false,

0 commit comments

Comments
 (0)