DarkmiraTour / community-event-manager

Web application with a collection of tools helping people organising community events such as multi-days conference with reminders, CRM and such
GNU General Public License v3.0
21 stars 22 forks source link

Fix acceptance tests #184

Open tdutrion opened 5 years ago

tdutrion commented 5 years ago

Current Behavior

Travis is currently failing on develop

How to reproduce scenario

Nothing to reproduce, just head of to Travis.

Expected behavior

Build goes green

Possible solutions

Not sure yet, details here:

@javascript Scenario: I cancel the delete of slot type "Slot Type 7" # features/slotType.feature:38 Given I am logged in as an admin # FeatureContext::iAmLoggedInAsAnAdmin() Could not open connection: Payload received from webdriver is valid but unexpected json: { "value": { "sessionId": "4530c8d6abd3941f907290a429d51a3b", "capabilities": { "acceptInsecureCerts": false, "browserName": "chrome", "browserVersion": "75.0.3770.80", "chrome": { "chromedriverVersion": "75.0.3770.8 (681f24ea911fe754973dda2fdc6d2a2e159dd300-refs\u002fbranch-heads\u002f3770@{#40})", "userDataDir": "\u002ftmp\u002f.com.google.Chrome.u1HTMj" }, "goog:chromeOptions": { "debuggerAddress": "localhost:36857" }, "networkConnectionEnabled": false, "pageLoadStrategy": "normal", "platformName": "linux", "proxy": { }, "setWindowRect": true, "strictFileInteractability": false, "timeouts": { "implicit": 0, "pageLoad": 300000, "script": 30000 }, "unhandledPromptBehavior": "dismiss and notify", "webdriver.remote.sessionid": "4530c8d6abd3941f907290a429d51a3b" } } } (Behat\Mink\Exception\DriverException) │ ╳ Fatal error: Call to a member function screenshot() on null (Behat\Testwork\Call\Exception\FatalThrowableError) │ └─ @AfterStep # FeatureContext::takeScreenshotAfterFailedStep()

In Selenium2Driver.php line 456:

Call to a member function source() on null

tdutrion commented 5 years ago

https://github.com/elgalu/docker-selenium/issues/328

tdutrion commented 5 years ago

Would be good to find a proper fix, probably by upgrading behat/mink at some point down the line.

cgrandval commented 4 years ago

@darkterreur can you have a look on that issue please

darkterreur commented 4 years ago

Is it still relevant? because despite my tests and new instalation I do not have this error message.