Open sooqini opened 11 years ago
I don’t see what definition could be refactored.
The web asserts works with the page contents but the behatch asserts works on variables (these are a copy of phpunit asserts).
What Im saying is steps like iWaitUntilISee and iWaitUntilISeeInTheElement should use the existing WebAssert::pageTextContains and WebAssert::elementTextContains functions rather than recreating the wheel. This way you can override the matching behaviour of I should see and Wait until I see in one place
Looks like behatch uses its own assert functions (assertContains, assertNotContains), would it be possible for it to be refactored to use the WebAssert versions? I have overridden these to do exact matching and need the behatch steps to use the same logic.