Skip to content

Commit

Permalink
overview test done
Browse files Browse the repository at this point in the history
  • Loading branch information
tfhuhtal committed Oct 1, 2024
1 parent 7619285 commit a1d6dd0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const Square = ({ color, setQuestionModal, answerObject, chevron = null }) => {
const { backgroundColor, hover } = colors[color] || colors.gray

return (
<div className="square-container">
<div className="square-container" data-cy={`square-${answerObject.faculty}-${answerObject.part.id}`}>
<Card
style={{
...squareStyles,
Expand Down
6 changes: 6 additions & 0 deletions cypress/integration/trackingpage.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,11 @@ describe('Tracking page tests', () => {

cy.get('[data-cy=send-form]').click()
cy.contains('01.01.2000').should('exist')

cy.visit(`/faculty-monitoring`)
cy.contains('Development Area 1:').click()

cy.get(`[data-cy=square-${testFacultyCode}-1]`).click()
cy.contains('01.01.2000').should('exist')
})
})

0 comments on commit a1d6dd0

Please sign in to comment.