From 88fa4f36182919b7de4fe8488ceaaa2335b6a70b Mon Sep 17 00:00:00 2001 From: Dave Ryan Date: Tue, 3 Sep 2024 14:06:03 -0700 Subject: [PATCH] chore: Update page and post creation buttons tests with wb parameters --- tests/cypress/integration/pages-and-posts.cy.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/cypress/integration/pages-and-posts.cy.js b/tests/cypress/integration/pages-and-posts.cy.js index dbc0c5ddf..d5d7d6b9f 100644 --- a/tests/cypress/integration/pages-and-posts.cy.js +++ b/tests/cypress/integration/pages-and-posts.cy.js @@ -33,9 +33,9 @@ describe('Pages & Posts', function () { cy.go('back'); cy.get('.wppbh-app-site-page') - .find('a[href="post-new.php?post_type=page"] Button') + .find('a[href="wp-admin/post-new.php?post_type=page&wb-library=patterns&wb-category=features"] Button') .click(); - cy.url().should('include', 'post-new.php?post_type=page'); + cy.url().should('include', 'wp-admin/post-new.php?post_type=page&wb-library=patterns&wb-category=features'); cy.go('back'); }); @@ -48,9 +48,9 @@ describe('Pages & Posts', function () { cy.go('back'); cy.get('.wppbh-app-blog-posts') - .get('a[href="post-new.php"] Button') + .get('a[href="post-new.php?wb-library=patterns&wb-category=text"] Button') .click(); - cy.url().should('include', 'post-new.php'); + cy.url().should('include', 'post-new.php?wb-library=patterns&wb-category=text'); cy.go('back'); });