Skip to content

Commit

Permalink
Merge pull request #726 from bluehost/update/remove-free-addons-section
Browse files Browse the repository at this point in the history
Remove "Additional Features" section from the app home page.
  • Loading branch information
wpalani authored Oct 11, 2023
2 parents 7b05b53 + f4c9a0c commit a6d2037
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions src/app/pages/home/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Page } from '../../components/page';
import { SectionContainer, SectionContent } from '../../components/section';
import { AccountCard } from './accountCard';
import { FreeAddonsSection } from './freeAddonsSection';
import { HelpCard } from './helpCard';
import './stylesheet.scss';
import { WelcomeSection } from './welcomeSection';
Expand All @@ -10,7 +9,6 @@ const Home = () => {
return (
<Page className="wppbh-home">
<WelcomeSection />
<FreeAddonsSection />
<SectionContainer className="wppbh-account-help-section">
<SectionContent >
<div className="nfd-grid nfd-grid-cols-2 nfd-gap-6">
Expand Down
9 changes: 6 additions & 3 deletions tests/cypress/integration/home.cy.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
// <reference types="Cypress" />

describe('Home Page', function () {
let NewfoldRuntime;

before(() => {
cy.visit('/wp-admin/admin.php?page=' + Cypress.env('pluginId') + '#/home');
cy.window().its('NewfoldRuntime').then(data => {
NewfoldRuntime = data;
});
cy.injectAxe();

});

it('Site Info Exists', () => {
cy
.get('.wppbh-app-site-info').contains('h3', 'bluehost-wordpress-plugin')
.get('.wppbh-app-site-info').contains('h3', NewfoldRuntime.site.title)
.scrollIntoView()
.should('be.visible');
});
Expand All @@ -27,7 +30,7 @@ describe('Home Page', function () {
.should('be.visible');
});

it('Additional Features Section Exists', () => {
it.skip('Additional Features Section Exists', () => {
cy
.get('.nfd-app-section-container').contains('h2', 'Additional Features')
.scrollIntoView()
Expand Down

0 comments on commit a6d2037

Please sign in to comment.