Run the modal ENTER key propagation test
()
| 81 | |
| 82 | |
| 83 | async def main(): |
| 84 | """Run the modal ENTER key propagation test""" |
| 85 | print("=" * 60) |
| 86 | print("Modal ENTER Key Propagation Test") |
| 87 | print("=" * 60) |
| 88 | |
| 89 | try: |
| 90 | result = await test_grouping_modal_enter_key() |
| 91 | |
| 92 | if result: |
| 93 | print("\n" + "=" * 60) |
| 94 | print("✅ TEST PASSED: ENTER key propagation fix works correctly!") |
| 95 | print("The ENTER key in child modals no longer propagates to parent.") |
| 96 | print("=" * 60) |
| 97 | return 0 |
| 98 | else: |
| 99 | print("\n❌ Test failed") |
| 100 | return 1 |
| 101 | |
| 102 | except Exception as e: |
| 103 | print(f"\n❌ Test failed with error: {e}") |
| 104 | import traceback |
| 105 | traceback.print_exc() |
| 106 | return 1 |
| 107 | |
| 108 | |
| 109 | if __name__ == "__main__": |
no test coverage detected