medium10 pts · first answer countstest-automationtest-design
An if statement inside a test
A test contains: if (cart.items.length > 0) { expect(total).toBe(1180) } else { expect(total).toBe(0) }. What is the main problem?
Discussion 0
Join free to post in the discussion.
Related questions
- A test without assertionsAutomation Test Engineer
- Structure of a good testAutomation Test Engineer
- Boundary value inputsAutomation Test Engineer
- Equivalence partitioningAutomation Test Engineer
- Naming a testAutomation Test Engineer
- Arrange, Act, AssertAutomation Test Engineer
- An upside-down test pyramidAutomation Test Engineer
- Sharing fixtures in pytestAutomation Test Engineer