Page MenuHomePhabricator

Browser Test Authentication Failures
Closed, ResolvedPublic8 Estimated Story Points

Description

While attempting to add additional browser tests to PR #69, some odd browser test issues were encountered in CI (which were not encountered locally): For some reason - while running tests on CI - Dusk fails to authenticate the test user, causing test failures. See console logs from test run artifacts:

Tests_Browser_AppTest_testUsersSeeUserGreeting-0.log
[
    {
        "level": "SEVERE",
        "message": "http:\/\/127.0.0.1:8000\/_dusk\/login\/1 - Failed to load resource: the server responded with a status of 500 (Internal Server Error)",
        "source": "network",
        "timestamp": 1629290601741
    }
]
NOTE: As this bug was blocking a different issue, the additional tests, and changes to the github workflow to allow logging failures, were moved to PR #70 to be tackled seperately.

Event Timeline

Silvan_WMDE subscribed.
[2021-09-09 11:18:57] local.ERROR: SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `users` where `id` = 1 limit 1) {"exception":"[object] (Illuminate\\Database\\QueryException(code: 2002): SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `users` where `id` = 1 limit 1) at /home/runner/work/wikidata-mismatch-finder/wikidata-mismatch-finder/vendor/laravel/framework/src/Illuminate/Database/Connection.php:692)

Prio Notes:

  • Might affect API consumers (prevents BDD testing)
  • Might affect End users (prevents BDD testing)
  • Affects development process
karapayneWMDE set the point value for this task to 8.Sep 14 2021, 1:45 PM
Sarai-WMDE renamed this task from Browser Test Authentication Failuers to Browser Test Authentication Failures.Sep 14 2021, 2:01 PM