huridocs / uwazi

Uwazi is a web-based, open-source solution for building and sharing document collections
http://www.uwazi.io
MIT License
227 stars 81 forks source link

Supporting files modal not closing. #6963

Open Zasa-san opened 1 week ago

Zasa-san commented 1 week ago

Describe the bug When adding files from 'Add from web' supporting files from the entity sidepanel in the library, the modal will remain open.

To Reproduce Steps to reproduce the behavior:

  1. Go to the library
  2. Create or edit an entity
  3. Add a supporting file from the url
  4. The modal will not close.

Expected behavior Always close the modal after uploading the file, since we don't allow multiple uploads right now on that UI.

Device (please select all that apply)

Browser Firefox

Additional context I would recommend testing this on multiple browsers to make sure the behavior is consistent.

Zasa-san commented 1 week ago

Also, for e2e testing, the modal seems to remain open for regular files as well. I have observed this behavior manually using files at times.

Fixing this should include augmenting cypress/e2e/attachments.cy.ts https://github.com/huridocs/uwazi/pull/6948