kobotoolbox / kpi

kpi is the (frontend) server for KoboToolbox. It includes an API for users to access data and manage their forms, question library, sharing settings, create reports, and export data.
https://www.kobotoolbox.org
GNU Affero General Public License v3.0
126 stars 170 forks source link

Fix Cypress tests sufficiently for a proof of concept #4949

Closed jnm closed 1 month ago

jnm commented 1 month ago

Description

Update Cypress tests so that the first test, which logs in and creates a new project, works again.

Notes

The tests were broken by Django upgrades, the switch to django-allauth, removal of valid webpack configuration from the testing environment (#4517), and UI layout changes.

project.spec.js now works, but question.spec.js and delete.spec.js are still broken due to UI changes.

NB: the /api/v2/organizations/…/service_usage/ endpoint currently cannot be served by ./manage.py cypress_testserver; it will log this failure:

django.db.utils.ProgrammingError: relation "logger_xform" does not exist
LINE 1: ...ttachment_storage_bytes"), 0) AS "bytes_sum" FROM "logger_xf...

There's a corresponding error message in the UI, but this is not the cause of any Cypress tests failing.

notion-workspace[bot] commented 1 month ago

Fix Cypress tests sufficiently for a proof of concept