devinit / ddw-analyst-ui

The Development Data Warehouse
http://ddw.devinit.org/
GNU General Public License v3.0
2 stars 1 forks source link

500 Internal Server Error when running Cypress test #970

Closed APIYOJENNIFER closed 1 year ago

APIYOJENNIFER commented 1 year ago

A 500 Internal Server Error is thrown when running Cypress test for spec file dataSources.cy.js. This occurs for the test case: deletes a frozen data source.

Steps to reproduce

  1. File: dataSources.cy.js
  2. Test case: deletes a frozen data source
  3. The baseUrl in the cypress.config.ts should point to the staging URL.
  4. Use two click() commands in place of the dblclick() command for the specified test case above. This will be addressed under the #967 ticket.

Replace this: cy.get('[data-testid="frozen-data-delete-button"]').first().dblclick({ force: true });

With this: cy.get('[data-testid="frozen-data-delete-button"]').first().click({ force: true }).click({ force: true });

Screenshot of the error message

Screenshot 2023-08-14 at 12 25 07