Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

PRESS0-2200: Update add new post and page launchpads with wb params #1288

Merged
merged 3 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/pages/pages-and-posts/blogPosts.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const BlogPosts = () => {
<a href="edit.php">
{ __( 'View all', 'wp-plugin-bluehost' ) }
</a>
<a href="post-new.php">
<a href="post-new.php?wb-library=patterns&wb-category=text">
<Button>{ __( 'Add New', 'wp-plugin-bluehost' ) }</Button>
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/pages-and-posts/sitePages.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const SitePages = () => {
<a href="edit.php?post_type=page">
{ __( 'View all', 'wp-plugin-bluehost' ) }
</a>
<a href="post-new.php?post_type=page">
<a href="post-new.php?post_type=page&wb-library=patterns&wb-category=features">
<Button onClick>
{ __( 'Add New', 'wp-plugin-bluehost' ) }
</Button>
Expand Down
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="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', '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
Loading