Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace references to old values in NewfoldRuntime #254

Merged
merged 1 commit into from
Jul 2, 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
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
Loading