-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc905da
commit e463580
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
tests/cypress/integration/5-AI-SiteGen-onboarding-flow/experience.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,38 @@ | ||
// <reference types="Cypress" /> | ||
|
||
import { AdminBarCheck, BackButtonCheck, DarkBGCheck, LightBGChcek, ProgressBarCheck} from "../wp-module-support/siteGen.cy"; | ||
|
||
describe( 'SiteGen Experience & Site Building Step', function () { | ||
before( () => { | ||
cy.visit( | ||
'wp-admin/index.php?page=nfd-onboarding#/sitegen/step/experience' | ||
); | ||
} ); | ||
|
||
it( 'Check for the header admin bar', () => { | ||
AdminBarCheck(); | ||
} ); | ||
|
||
it( 'Check for the existing dark background', () => { | ||
DarkBGCheck(); | ||
} ); | ||
|
||
it( 'Check for the light background', () => { | ||
LightBGChcek(); | ||
} ); | ||
|
||
it( 'Check the Progress Bar Value', () => { | ||
ProgressBarCheck('50%'); | ||
}); | ||
|
||
it( 'Check for back button and go back', () => { | ||
BackButtonCheck('sitegen/step/experience'); | ||
} ); | ||
|
||
it( 'Check for existence of experience cards', () => { | ||
cy.get( '.nfd-sg-experience-level' ).should('be.visible'); | ||
cy.get( '.nfd-sg-loader' ).should('be.visible'); | ||
cy.get( '.nfd-sg-card' ).should('be.visible'); | ||
} ); | ||
|
||
}); |
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