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
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