Skip to content

Commit

Permalink
E2E: Remove invalid test after Settings > Media untangling (#99393)
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar authored Feb 6, 2025
1 parent 9512f79 commit fb86ffd
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions test/e2e/specs/media/settings__media.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import {
DataHelper,
TestAccount,
SidebarComponent,
envVariables,
getTestAccountByFeature,
envToFeatureKey,
Expand Down Expand Up @@ -51,14 +50,7 @@ describe( DataHelper.createSuiteTitle( 'Jetpack Settings: Media' ), function ()
let wpAdminMediaSettingsPage: WpAdminMediaSettingsPage;

it( 'Navigate to Settings > Media', async function () {
// eCommerce plan loads WP-Admin for home dashboard,
// so instead navigate straight to the Media page.
if ( testAccount.accountName === 'jetpackAtomicEcommPlanUser' ) {
await page.goto( `${ testAccount.getSiteURL() }wp-admin/options-media.php` );
} else {
const sidebarComponent = new SidebarComponent( page );
await sidebarComponent.navigate( 'Settings', 'Media' );
}
await page.goto( `${ testAccount.getSiteURL() }wp-admin/options-media.php` );
wpAdminMediaSettingsPage = new WpAdminMediaSettingsPage( page );
} );

Expand Down

0 comments on commit fb86ffd

Please sign in to comment.