ZupIT / beagle-web-components

Project: Produto - Beagle
Apache License 2.0
0 stars 0 forks source link

fix: Cypress | navigation tests fix #65

Closed igorgiumellizup closed 3 years ago

igorgiumellizup commented 3 years ago

Related issues

https://github.com/ZupIT/beagle-web-components/issues/29

Description

Fixes navigation tests. The problem was in the 'contains' condition to find elements. At a certain point (Scenario 4), it was clicking on "PopToViewInvalidRoute" instead of "PopToView". An utils class was implemented to provide methods to find an element by an exact text, and the whole navigation test was refactored. This class will also be the base for the huge refactoring that will be implemented for issue https://github.com/ZupIT/beagle-web-components/issues/54

Tests are ok

image