Skip to content

Commit

Permalink
chore: Update page and post creation buttons tests with wb parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
0aveRyan committed Sep 3, 2024
1 parent e2ad84a commit 88fa4f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/cypress/integration/pages-and-posts.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});

Expand All @@ -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');
});

Expand Down

0 comments on commit 88fa4f3

Please sign in to comment.