Skip to content

Commit

Permalink
Replace references to old values in NewfoldRuntime
Browse files Browse the repository at this point in the history
  • Loading branch information
manikantakailasa committed Jul 1, 2024
1 parent a7ce616 commit f6e5c04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/app/pages/home/webContentSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const WebContentSection = () => {
<ActionField
label={__("Blog", "wp-plugin-web")}
buttonLabel={__("New Post", "wp-plugin-web")}
href={window.NewfoldRuntime.admin_url + 'post-new.php'}
href={window.NewfoldRuntime.adminUrl + 'post-new.php'}
className={"wppw-app-home-blog-action"}
>
{__('Write a new blog post.', 'wp-plugin-web')}
Expand All @@ -20,7 +20,7 @@ const WebContentSection = () => {
<ActionField
label={__("Pages", "wp-plugin-web")}
buttonLabel={__("New Page", "wp-plugin-web")}
href={window.NewfoldRuntime.admin_url + 'post-new.php?post_type=page'}
href={window.NewfoldRuntime.adminUrl + 'post-new.php?post_type=page'}
className={"wppw-app-home-pages-action"}
>
{__('Add fresh pages to your website.', 'wp-plugin-web')}
Expand All @@ -29,7 +29,7 @@ const WebContentSection = () => {
<ActionField
label={__("Categories", "wp-plugin-web")}
buttonLabel={__("Manage Categories", "wp-plugin-web")}
href={window.NewfoldRuntime.admin_url + 'edit-tags.php?taxonomy=category'}
href={window.NewfoldRuntime.adminUrl + 'edit-tags.php?taxonomy=category'}
className={"wppw-app-home-categories-action"}
>
{__('Organize existing content into categories.', 'wp-plugin-web')}
Expand Down
8 changes: 4 additions & 4 deletions tests/cypress/integration/home.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ describe('Home Page', function () {

it('Site Info Exists', () => {
cy.window().then((win) => {
const siteTitle = win.NewfoldRuntime.site.title;
const siteTitle = win.NewfoldRuntime.siteTitle;

cy.get('.wppw-app-site-info').contains('h3', siteTitle)
.scrollIntoView()
.should('be.visible');
})
.scrollIntoView()
.should('be.visible');
})
});

it('Is Accessible', () => {
Expand Down

0 comments on commit f6e5c04

Please sign in to comment.