fix: update remaining test for new Playwright payload structure
Build and Push Docker Image / test (push) Successful in 40s Details
Build and Push Docker Image / build (push) Successful in 1m3s Details

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Matt 2025-12-08 22:25:44 +01:00
parent a8c3a66c77
commit 0869787755
1 changed files with 3 additions and 2 deletions

View File

@ -302,12 +302,13 @@ class TestNextcloudInitialSetupEndpoint:
tenant_id=test_tenant_with_domain.id, request=request, db=db tenant_id=test_tenant_with_domain.id, request=request, db=db
) )
assert task.payload["scenario"] == "nextcloud.initial_setup" assert task.payload["scenario"] == "nextcloud_initial_setup"
inputs = task.payload["inputs"] inputs = task.payload["inputs"]
assert inputs["base_url"] == "https://cloud.example.com" assert inputs["base_url"] == "https://cloud.example.com"
assert inputs["admin_username"] == "myadmin" assert inputs["admin_username"] == "myadmin"
assert inputs["admin_password"] == "mypassword123" assert inputs["admin_password"] == "mypassword123"
assert inputs["allowed_domains"] == ["cloud.example.com"] # allowed_domains should be in options, not inputs
assert task.payload["options"]["allowed_domains"] == ["cloud.example.com"]
async def test_tenant_not_found_returns_404(self, db: AsyncSession): async def test_tenant_not_found_returns_404(self, db: AsyncSession):
"""Non-existent tenant_id returns 404.""" """Non-existent tenant_id returns 404."""