Skip to content

E2E: Remove invalid test after Settings > Media untangling #99393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 6, 2025
Merged
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
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