From f6e5c04bfb2a7f786feb607a8d3e4af2ae63778b Mon Sep 17 00:00:00 2001 From: manikantakailasa Date: Mon, 1 Jul 2024 10:36:42 +0530 Subject: [PATCH] Replace references to old values in `NewfoldRuntime` --- src/app/pages/home/webContentSection.js | 6 +++--- tests/cypress/integration/home.cy.js | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app/pages/home/webContentSection.js b/src/app/pages/home/webContentSection.js index 09b8f21..3a0d61a 100644 --- a/src/app/pages/home/webContentSection.js +++ b/src/app/pages/home/webContentSection.js @@ -11,7 +11,7 @@ const WebContentSection = () => { {__('Write a new blog post.', 'wp-plugin-web')} @@ -20,7 +20,7 @@ const WebContentSection = () => { {__('Add fresh pages to your website.', 'wp-plugin-web')} @@ -29,7 +29,7 @@ const WebContentSection = () => { {__('Organize existing content into categories.', 'wp-plugin-web')} diff --git a/tests/cypress/integration/home.cy.js b/tests/cypress/integration/home.cy.js index fc97d59..2382bb8 100644 --- a/tests/cypress/integration/home.cy.js +++ b/tests/cypress/integration/home.cy.js @@ -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', () => {