From 4d4fc6526a3646c2d14c83a4b27ddadff1b44ee7 Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Thu, 18 Apr 2024 18:43:56 +0530 Subject: [PATCH] fixing cypress test error --- tests/cypress/integration/pagesAndPosts.cy.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/cypress/integration/pagesAndPosts.cy.js b/tests/cypress/integration/pagesAndPosts.cy.js index e8b7999c4..31b81cff9 100644 --- a/tests/cypress/integration/pagesAndPosts.cy.js +++ b/tests/cypress/integration/pagesAndPosts.cy.js @@ -86,9 +86,7 @@ describe( 'Pages & Posts', function () { ); cy.go( 'back' ); } else { - cy.get( '.wppbh-app-bookings' ) - .findByText( 'Bookings & Appointments' ) - .should( 'not.exist' ); + cy.findByText( 'Bookings & Appointments' ).should( 'not.exist' ); } } ); @@ -109,9 +107,7 @@ describe( 'Pages & Posts', function () { cy.url().should( 'include', 'post-new.php?post_type=product' ); cy.go( 'back' ); } else { - cy.get( '.wppbh-app-products' ) - .findByText( 'Products' ) - .should( 'not.exist' ); + cy.findByText( 'Products' ).should( 'not.exist' ); } } ); } );