Skip to content

Commit

Permalink
fix: added little logs to see
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi-bams committed Feb 22, 2024
1 parent 5f9fc57 commit a6c0d9c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions cypress/e2e/admin/signin.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/components/SettingsModal/SettingsView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const SettingsView: React.FC<Props> = ({ onClose }) => {
const SettingsHeader = ({ children }: { children: React.ReactNode }) => (
<StyledHeader>
<Flex direction="row" pt={3}>
<StyledText>{getSettingsLabel()}</StyledText>
<StyledText data-testid="setting-label">{getSettingsLabel()}</StyledText>
{resolveAdminActions()}
</Flex>
{children}
Expand Down

0 comments on commit a6c0d9c

Please sign in to comment.