Skip to content

bugfix/3825-playwright-htmx-dom-detach#4264

Open
Nayana-R-Gowda wants to merge 3 commits intomainfrom
bugfix/3825-playwright-htmx-dom-detach
Open

bugfix/3825-playwright-htmx-dom-detach#4264
Nayana-R-Gowda wants to merge 3 commits intomainfrom
bugfix/3825-playwright-htmx-dom-detach

Conversation

@Nayana-R-Gowda
Copy link
Copy Markdown
Collaborator

@Nayana-R-Gowda Nayana-R-Gowda commented Apr 17, 2026

Signed-off-by: NAYANA.R nayana.r7813@gmail.com
closes #3825

💡 Fix Description

Test 1: test_should_handle_object_parameter_validation

  • ✅ HTMX fix working - no more DOM detachment timeout
  • Test progresses through: search → button click → modal open → form fill
  • Fails at line 179 with KeyError: 'config' (pre-existing issue, unrelated to HTMX)

Test 2: test_clear_filters_functionality

  • ✅ 100% stable - 5/5 consecutive passes
  • Times: 4.81s, 4.47s, 3.89s, 4.50s, 4.38s
  • No more "assert 2 >= 100" errors

Test 1:
TEST_BASE_URL=http://localhost:4444 python -m pytest
tests/playwright/test_api_integration.py::TestAPIIntegration::test_should_handle_object_parameter_validation --browser chromium -v

Test 2:
TEST_BASE_URL=http://localhost:4444 python -m pytest tests/playwright/test_mcp_registry_page.py::TestMCPRegistryPage::test_clear_filters_functionality
--browser chromium -v

Test 2 Stability (5 runs):
for i in {1..5}; do echo "Run $i/5:"; TEST_BASE_URL=http://localhost:4444 python -m pytest
tests/playwright/test_mcp_registry_page.py::TestMCPRegistryPage::test_clear_filters_functionality --browser chromium -v 2>&1 | grep -E "PASSED|FAILED";
done


Quick Verification

cd /Users/nayanar/mcp/mcp-context-forge && TEST_BASE_URL=http://localhost:4444 python -m pytest
tests/playwright/test_mcp_registry_page.py::TestMCPRegistryPage::test_clear_filters_functionality --browser chromium -v

🧪 Verification

Check Command Status
Lint suite make lint pass
Unit tests make test pass

📐 MCP Compliance (if relevant)

  • Matches current MCP spec
  • No breaking change to MCP clients

✅ Checklist

  • Code formatted (make black isort pre-commit)
  • No secrets/credentials committed

Signed-off-by: NAYANA.R <nayana.r7813@gmail.com>
Nayana-R-Gowda and others added 2 commits April 17, 2026 13:19
Signed-off-by: Gabriel Costa <gabrielcg@proton.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG][TESTING]: Flaky Playwright tests — HTMX DOM detachment in tools table and MCP registry filters

2 participants