playwright tests.

This commit is contained in:
Bryce
2025-08-07 07:28:41 -07:00
parent 35f51c5818
commit 0e9ec9693b
3 changed files with 153 additions and 1 deletions

View File

@@ -197,7 +197,9 @@ def sync_imap_folders():
else:
# Just return the updated folders list
folders = Folder.query.filter_by(user_id=current_user.id).all()
return render_template('partials/folders_list.html', folders=folders)
response=make_response(render_template('partials/folders_list.html', folders=folders))
response.headers['HX-Trigger'] = 'close-modal'
return response
except Exception as e:
logging.exception("Error syncing IMAP folders: %s", e)