Показаны сообщения с ярлыком behat. Показать все сообщения
Показаны сообщения с ярлыком behat. Показать все сообщения

понедельник, 25 октября 2021 г.

[behat] chromedriver cannot call send on null fix

 When you have error like this:

Fatal error: Call to a member function waitForLoad() on null (Behat\Testwork\Call\Exception\FatalThrowableError

Add this into your context:

if ($this->getSession()->isStarted() === false) {

            $minkSession->start();

}

четверг, 26 августа 2021 г.

[Symfony] Cannot login at Test environment - fix (in Behat)

When you trying to login in Test env, and it does not show any error (you was returned on login form again), and you does not have anything in logs, except Guard authenticator does not support the request. {"firewall_key":"main","authenticator":"App\\Security\\AppAuthenticator"}, you can try this.

 I removed lines:

 session:

        storage_id: session.storage.mock_file

in config/packages/test/framework.yaml and it worked

воскресенье, 22 октября 2017 г.

[Behat] how to fix 'Can not load cache for a feature "foo.feature"'

remove folders (for me it was v4.4-dev) in `C:\Users\Admin\AppData\Local\Temp\behat_gherkin_cache` directory.

воскресенье, 27 августа 2017 г.

Behat "Parent definition "sylius.behat.page.admin.crud.create" does not exist"

[Symfony\Component\DependencyInjection\Exception\RuntimeException]
  Service "app.behat.page.create_book": Parent definition "sylius.behat.page.admin.crud.create" does not exist.
If you recieve this error, try to move your app.behat.page.create_book service from services.yml to contexts.yml.

воскресенье, 30 июля 2017 г.

Behat no scenarios no steps fix

Remove from your *.feature file : (colon) symbols after Given/When/And.