Skip to content

Team Angie-Shawn-Tanya-Viviane-Vulpes's PR#5

Open
Kitty0123 wants to merge 10 commits intodannyforest:masterfrom
Kitty0123:master
Open

Team Angie-Shawn-Tanya-Viviane-Vulpes's PR#5
Kitty0123 wants to merge 10 commits intodannyforest:masterfrom
Kitty0123:master

Conversation

@Kitty0123
Copy link

No description provided.

Copy link
Owner

@dannyforest dannyforest left a comment

Choose a reason for hiding this comment

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

Analyze: 5/5
Unitaire: 5/5
Intégration: 5/5
E2E: 5/5

Copy link
Owner

Choose a reason for hiding this comment

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

Analyze: 5/5

.should('have.value', choice3)
})
})
it.only('allows a user to edit a question', () => {
Copy link
Owner

Choose a reason for hiding this comment

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

remove .only

it('lets a user delete a question', () => {
cy.visit('http://localhost:4173/edit')
cy.get('.delete-button').eq(0).click()
cy.get('.question-input').eq(1).should('have.value', 'What is 2 + 2?')
Copy link
Owner

Choose a reason for hiding this comment

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

Dangereux comme test. Comment on peut garantir ça a chaque fois si un usager peut modifier les questions?

for (let i = 0; i < +numberOfQuestion; i++) {
cy.get('.choice-button:eq(0)').should('exist')
cy.get('button:eq(0)').click()
cy.wait(300)
Copy link
Owner

Choose a reason for hiding this comment

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

En production, on essaierait de trouver un moyen de pas faire attendre autant.

cy.get('button:eq(0)').click()
cy.wait(300)
}
cy.get('.restart-button').should('exist')
Copy link
Owner

Choose a reason for hiding this comment

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

le should ici n'est pas nécessaire

// Checks if the restart event was emitted
expect(wrapper.emitted()).toHaveProperty('restart')
// Checks if the restart event was emitted once
expect(wrapper.emitted('restart')).toHaveLength(1)
Copy link
Owner

Choose a reason for hiding this comment

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

pas vraiment nécessaire ce test. Je vais le compter pareil, mais celui d'en haut était assez

Copy link
Owner

Choose a reason for hiding this comment

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

2 bons tests unitaire

Copy link
Owner

Choose a reason for hiding this comment

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

cela n'est pas un test d'intégration

Copy link
Owner

Choose a reason for hiding this comment

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

3 bons tests unitaire

Copy link
Owner

Choose a reason for hiding this comment

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

7 bons tests unitaire

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants