From eb4c327eff4b14a0974ce11e7d8917f842504663 Mon Sep 17 00:00:00 2001 From: Nuwan Chathuranga Date: Wed, 11 Aug 2021 13:56:45 +0530 Subject: [PATCH] wip new react ui --- .../integration/friends/friends-list.spec.js | 16 ++++++++++++++-- jam-ui/src/layouts/DashboardLayout.js | 4 ++-- 2 files changed, 16 insertions(+), 4 deletions(-) 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 &&