Skip to content

Commit

Permalink
Merge pull request #558 from newfold-labs/fix/hg-release-test
Browse files Browse the repository at this point in the history
fix HG tests
  • Loading branch information
arunshenoy99 committed May 6, 2024
2 parents 58c87c2 + ad41b23 commit 52e72f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe( 'Get Started Site Type Secondary', function () {
let SubcategoryCount = 0;
let num = 0;
const className = '.nfd-card-sec-category';
cy.get( className ).should( 'be.visible', { timeout: 10000 } );
cy.get( className, { timeout: 15000 } ).should( 'be.visible');
const arr = cy.get( className );
arr.each( () => {
cy.get( className )
Expand All @@ -53,7 +53,7 @@ describe( 'Get Started Site Type Secondary', function () {
.then( ( $element ) => {
const dataSlugText = $element.attr( 'data-slug' );
if ( num >= 2 ) {
cy.wait( 5000 );
cy.wait( 7000 );
}
EventsAPI(
'secondary_type',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe( 'Get Started Site Type Secondary', function () {
let SubcategoryCount = 0;
let num = 0;
const className = '.nfd-card-sec-category';
cy.get( className ).should( 'be.visible' );
cy.get( className, { timeout: 15000 } ).should( 'be.visible' );
const arr = cy.get( className );
arr.each( () => {
cy.get( className )
Expand All @@ -67,7 +67,7 @@ describe( 'Get Started Site Type Secondary', function () {
.then( ( $element ) => {
const dataSlugText = $element.attr( 'data-slug' );
if ( num >= 2 ) {
cy.wait( 5000 );
cy.wait( 7000 );
}
EventsAPI(
'secondary_type',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const APIList = {

export const EventsAPI = ( events_name, card_val, api_name ) => {
cy.intercept( api_name ).as( 'events' );
cy.wait( '@events', { timeout: 10000 } ).then( ( requestObject ) => {
cy.wait( '@events', { timeout: 15000 } ).then( ( requestObject ) => {
const responseBody = requestObject.request.body;
const responseData1 = responseBody[ 0 ].data;
if ( events_name == 'experience_level' ) {
Expand Down

0 comments on commit 52e72f9

Please sign in to comment.