reflex/integration
Masen Furer e138d9dfd0
state.js: set event_processing = false when websocket connects (#3443)
* test_connection_banner: Improve assertions

* Actually assert on the presence or absense of the connection banner
* Update XPATH selector to find the connection toast
* Add event handling while backend down to verify queue functionality
* Bring backend down while an event is running to ensure queue does not get
  blocked (#3404)

* state.js: set event_processing = false when websocket connects

In case an event was pending when the websocket went down, allow further events
to be processed when it comes back up.

Fix #3404

* test_connection_banner: wait for token indicating backend is connected

* test_connection_banner: increase delay time

make the time window longer in which the backend can go down and get stuck in
event_processing=true for better test reliability

* Ensure the redis connection is reset in new backend thread

Redis has an event loop affinity and needs to be attached to the event loop
that the thread is running.

* Reset event_processing on disconnect

* if the socket never comes back up, it still allows client-side events to be
  processed
* on_mount events may start running before the socket is up, so resetting the
  flag on connect may break event determinism (test_event_chain.py)
2024-06-07 13:29:25 -07:00
..
init-test [REF-2764] dep update 0.5.0 (#3245) 2024-05-07 15:15:52 -07:00
shared fix AppHarness reloading (#2916) 2024-03-26 11:09:46 -07:00
__init__.py Client-side storage / State integration (#1629) 2023-08-30 12:43:29 -07:00
conftest.py fix screenshot filenames (#3241) 2024-05-07 19:31:37 -07:00
test_background_task.py fix AppHarness reloading (#2916) 2024-03-26 11:09:46 -07:00
test_call_script.py ruff-format: unify Black with Ruff v0.1 (#2837) 2024-04-23 14:40:06 -07:00
test_client_storage.py Integration testing: Firefox compatibility (#3162) 2024-04-26 13:44:08 -07:00
test_component_state.py add support for lifespan tasks (#3312) 2024-05-22 12:07:03 -07:00
test_computed_vars.py Explicit deps and interval for computed vars (#3231) 2024-05-28 12:27:27 -07:00
test_connection_banner.py state.js: set event_processing = false when websocket connects (#3443) 2024-06-07 13:29:25 -07:00
test_deploy_url.py set config.deploy_url during AppHarness tests (#3359) 2024-05-23 09:23:07 -07:00
test_dynamic_routes.py ruff-format: unify Black with Ruff v0.1 (#2837) 2024-04-23 14:40:06 -07:00
test_event_actions.py Implement throttle and debounce as event actions (#3091) 2024-04-26 17:28:51 -07:00
test_event_chain.py fix AppHarness reloading (#2916) 2024-03-26 11:09:46 -07:00
test_form_submit.py fix AppHarness reloading (#2916) 2024-03-26 11:09:46 -07:00
test_input.py Integration testing: Firefox compatibility (#3162) 2024-04-26 13:44:08 -07:00
test_large_state.py simple pytest benchmark for measuring event <=> state update round trip time (#2489) 2024-01-30 15:55:55 -08:00
test_lifespan.py add support for lifespan tasks (#3312) 2024-05-22 12:07:03 -07:00
test_login_flow.py fix AppHarness reloading (#2916) 2024-03-26 11:09:46 -07:00
test_media.py fix image serializing - REF-1889 (#2550) 2024-02-22 08:13:19 -08:00
test_navigation.py add support for lifespan tasks (#3312) 2024-05-22 12:07:03 -07:00
test_server_side_event.py fix AppHarness reloading (#2916) 2024-03-26 11:09:46 -07:00
test_shared_state.py fix AppHarness reloading (#2916) 2024-03-26 11:09:46 -07:00
test_state_inheritance.py typed mixins and ComponentState (#3196) 2024-05-15 12:07:41 -07:00
test_table.py ruff-format: unify Black with Ruff v0.1 (#2837) 2024-04-23 14:40:06 -07:00
test_tailwind.py [REF-3004] Use relative path to stylesheet for postcss-import compat (#3435) 2024-06-05 10:02:05 -07:00
test_upload.py Refactor upload component and add styled upload component (#3035) 2024-04-24 13:45:22 -07:00
test_urls.py initial attempt at writing test for urls (#2689) 2024-02-29 13:45:57 -08:00
test_var_operations.py fix AppHarness reloading (#2916) 2024-03-26 11:09:46 -07:00
utils.py add support for lifespan tasks (#3312) 2024-05-22 12:07:03 -07:00