-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PRESS0-2083 skip for non bluehost brand
- Loading branch information
Amrutha Bhat Shivaswamy
committed
Sep 19, 2024
1 parent
527a653
commit 5089a06
Showing
2 changed files
with
44 additions
and
44 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
tests/cypress/integration/Migration/landIntoMigrationFromAM.cy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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=' ); | ||
} ); | ||
} ); | ||
} | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.