From a6c0d9c4038504351cb277187b1d2839955e09bc Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Thu, 22 Feb 2024 20:39:45 +0100 Subject: [PATCH] fix: added little logs to see --- cypress/e2e/admin/signin.cy.ts | 6 ++++++ src/components/SettingsModal/SettingsView/index.tsx | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/admin/signin.cy.ts b/cypress/e2e/admin/signin.cy.ts index 762170706..05256f5e2 100644 --- a/cypress/e2e/admin/signin.cy.ts +++ b/cypress/e2e/admin/signin.cy.ts @@ -8,6 +8,12 @@ describe('Admin Login', () => { let title = `Testing NavFiber` cy.wait(30000) cy.get('div[data-testid="settings-modal"]').click() + cy.get('[data-testid="setting-label"]').should('have.text', 'Settings') + cy.get('[data-testid="setting-label"]').should('have.text', 'Admin Settings') + // .invoke('text') + // .then((value) => { + // console.log(value) + // }) cy.get('#cy-about-title-id').click() cy.get('#cy-about-title-id').type('{selectAll}') cy.get('#cy-about-title-id').type(title) diff --git a/src/components/SettingsModal/SettingsView/index.tsx b/src/components/SettingsModal/SettingsView/index.tsx index 0f2ab6cf2..9c5cb507b 100644 --- a/src/components/SettingsModal/SettingsView/index.tsx +++ b/src/components/SettingsModal/SettingsView/index.tsx @@ -55,7 +55,7 @@ export const SettingsView: React.FC = ({ onClose }) => { const SettingsHeader = ({ children }: { children: React.ReactNode }) => ( - {getSettingsLabel()} + {getSettingsLabel()} {resolveAdminActions()} {children}