wip new react ui

This commit is contained in:
Nuwan Chathuranga 2021-08-11 13:56:45 +05:30 committed by Nuwan
parent 4ee649c7f1
commit eb4c327eff
2 changed files with 16 additions and 4 deletions

View File

@ -3,9 +3,9 @@
import { iteratee } from "lodash"
describe("Friends Index page", () => {
describe('Unauthenticate user', () => {
describe('For unauthenticated user', () => {
beforeEach(() => {
cy.stubAuthenticate()
cy.stubUnauthenticate()
cy.visit('/friends')
})
@ -18,6 +18,18 @@ describe("Friends Index page", () => {
})
describe("For authenticated user", () => {
beforeEach(() => {
cy.stubAuthenticate()
cy.intercept('GET', '/filter', { fixture: 'people' })
cy.visit('/friends')
})
it("should list musicians", () => {
cy.get('[data-testid=peopleListTable]').should('exist')
})
})
})

View File

@ -13,7 +13,7 @@ import Footer from '../components/footer/Footer';
import loadable from '@loadable/component';
import AppContext from '../context/Context';
import ProductProvider from '../components/e-commerce/ProductProvider';
import SidePanelModal from '../components/side-panel/SidePanelModal';
// import SidePanelModal from '../components/side-panel/SidePanelModal';
import { getPageName } from '../helpers/utils';
import { useAuth } from '../context/AuthContext';
@ -48,7 +48,7 @@ const DashboardLayout = ({ location }) => {
</Switch>
{!isKanban && <Footer />}
</div>
<SidePanelModal path={location.pathname} />
{/* <SidePanelModal path={location.pathname} /> */}
</ProductProvider>
</div>
);