Behatch / contexts

Behat extension with most custom helper steps
Other
394 stars 203 forks source link

Using Mink::assertSession #33

Open sooqini opened 11 years ago

sooqini commented 11 years ago

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.

sanpii commented 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).

sooqini commented 11 years ago

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