Skip to content

Commit

Permalink
tests: verify quantity of buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikael-R committed May 15, 2022
1 parent 38391a5 commit aa89671
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions cypress/integration/company-questions.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,8 @@ describe('Company questions tests', () => {
cy.url().should('include', '/questions')
})

it('Check quantity of buttons', () => {
const numberOfQuestions = 10
const numberOfButtonsPerQuestion = 7
cy.get('[name="question-button"]').should(
'have.length',
numberOfButtonsPerQuestion * numberOfQuestions
)
it('Check quantity of options', () => {
cy.get('[name="question-button"]').should('have.length', 7)
})

it('Check flow', () => {
Expand Down

1 comment on commit aa89671

@vercel
Copy link

@vercel vercel bot commented on aa89671 May 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.