Show itemsID in URL #26

Merged
Ghost merged 22 commits from development into master 2021-11-15 19:00:16 -05:00
2 changed files with 19 additions and 19 deletions
Showing only changes of commit 4ab5c864ef - Show all commits

View File

@ -1,23 +1,23 @@
import { Box, Theme, Typography } from '@mui/material' import {Box, Typography} from '@mui/material'
import { makeStyles } from '@mui/styles' import {makeStyles} from '@mui/styles'
const useStyles = makeStyles((theme: Theme) => ({ const useStyles = makeStyles(() => ({
footerHolder: { footerHolder: {
display: 'flex', display: 'flex',
flex: '0 1 3vh', flex: '0 1 3vh',
flexDirection: 'row', flexDirection: 'row',
alignItems: 'center', alignItems: 'center',
justifyContent: 'center', justifyContent: 'center',
padding: '0 10vw 0 10vw' padding: '0 10vw 0 10vw'
} }
})) }))
export const Footer = () => { export const Footer = () => {
const classes = useStyles() const classes = useStyles()
return ( return (
<Box className={classes.footerHolder}> <Box className={classes.footerHolder}>
<Typography>SPT-Aki ©2021 Created by Rev and Shirito</Typography> <Typography id={"footer"}>SPT-Aki ©2021 Created by Rev and Shirito</Typography>
</Box> </Box>
) )
} }

View File

@ -4,7 +4,7 @@ describe('Footer', () => {
it('footer should be visible', () => { it('footer should be visible', () => {
cy.visit('/'); cy.visit('/');
cy.get('.makeStyles-footerHolder-63 > .MuiTypography-root').should('be.visible') cy.get('#footer').should('be.visible')
cy.get('.makeStyles-footerHolder-63 > .MuiTypography-root').should('have.text', 'SPT-Aki ©2021 Created by Rev and Shirito'); cy.get('#footer').should('have.text', 'SPT-Aki ©2021 Created by Rev and Shirito');
}) })
}) })