Skip to content

Commit

Permalink
PRESS0-2083 skip for non bluehost brand
Browse files Browse the repository at this point in the history
  • Loading branch information
Amrutha Bhat Shivaswamy committed Sep 19, 2024
1 parent 527a653 commit 5089a06
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 44 deletions.
44 changes: 44 additions & 0 deletions tests/cypress/integration/Migration/landIntoMigrationFromAM.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import { GetPluginId } from '../wp-module-support/pluginID.cy';
import { wpLogin } from '../wp-module-support/utils.cy';
const customCommandTimeout = 120000;
const pluginId = GetPluginId();
const helpCenter = JSON.stringify( {
canAccessAI: true,
canAccessHelpCenter: true,
} );
if ( pluginId == 'bluehost' ) {
describe(
'Verify Migration- emulating AM flow',
{ testIsolation: true },
() => {
before( () => {
wpLogin();

cy.exec(
`npx wp-env run cli wp option set nfd_migrate_site "true"`
);

cy.reload();
} );

it( 'Verify Migration page is loaded', () => {
cy.intercept(
'GET',
'https://migrate.bluehost.com/api/v2/initial-data'
).as( 'Migration-initialise' );
cy.visit(
'/wp-admin/?page=nfd-onboarding#/sitegen/step/migration'
);
cy.wait( '@Migration-initialise', {
timeout: customCommandTimeout,
} )
.then( ( interception ) => {
expect( interception.response.statusCode ).to.eq( 200 );
} )
.then( () => {
cy.url().should( 'contain', 'migrate/bluehost?d_id=' );
} );
} );
}
);
}
44 changes: 0 additions & 44 deletions tests/cypress/integration/Migration/migrationAM.cy.js

This file was deleted.

0 comments on commit 5089a06

Please sign in to comment.