diff --git a/jam-ui/cypress/integration/friends/friends-list.spec.js b/jam-ui/cypress/integration/friends/friends-list.spec.js index e7ffccb7d..4bfe18077 100644 --- a/jam-ui/cypress/integration/friends/friends-list.spec.js +++ b/jam-ui/cypress/integration/friends/friends-list.spec.js @@ -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') + }) + }) }) \ No newline at end of file diff --git a/jam-ui/src/layouts/DashboardLayout.js b/jam-ui/src/layouts/DashboardLayout.js index 84c6f915e..0e9be5d55 100644 --- a/jam-ui/src/layouts/DashboardLayout.js +++ b/jam-ui/src/layouts/DashboardLayout.js @@ -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 }) => { {!isKanban &&