Conversation
…inistic The create page renders different buttons depending on ai_available, so the class asserted strings that only exist with a provider configured — passing on machines whose .env holds AI keys and failing on a clean checkout. Pin the provider at class level, same pattern as test_panel_is_present_when_provider_configured. Also registers offset 210 for this worktree in .env.ports.example. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014jqjexPxbdqwsXXfkM3yah
ganjasan
deployed
to
fix/create-wizard-tests-env - mapsurvey-db PR #109
August 24, 2026 02:51 — with
Render
Active
ganjasan
deployed
to
fix/create-wizard-tests-env - mapsurvey-celery PR #109
August 24, 2026 02:52 — with
Render
Active
ganjasan
temporarily deployed
to
fix/create-wizard-tests-env - mapsurvey PR #109
August 24, 2026 02:52 — with
Render
Destroyed
ganjasan
temporarily deployed
to
fix/create-wizard-tests-env - mapsurvey-celery PR #109
August 31, 2026 08:43 — with
Render
Destroyed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
test_flag_on_renders_wizard_chromeandtest_flag_off_serves_legacy_pagefail on a clean checkout of master and pass only on machines whose.envcarries AI provider credentials. The create page renders two different button sets depending onai_available(ai_client.provider_configured()): with a provider configured the empty-path button carries the strings the tests assert ("Start with an empty survey" / "Create empty"); without one the{% else %}branch renders a single "Create Survey" button. The tests never pinned the provider, so their outcome tracked the developer's environment instead of the code.The wizard itself works correctly in both
MOBILE_EDITOR_NAVstates — this is a test-determinism fix only, no product change.What
@override_settings(AI_PROVIDER='anthropic', ANTHROPIC_API_KEY='sk-test')onCreateSurveyWizardTest— the same patterntest_panel_is_present_when_provider_configuredalready uses.Mapsurvey-wizard-tests) in the.env.ports.exampleregistry.fix-create-wizard-tests-env(backlog fix(analytics): make the biggest error group say what actually broke #148).Testing
./run_tests.sh survey.tests.CreateSurveyWizardTest— 5/5 OK on a checkout with no AI keys in.env(previously 2 failures).🤖 Generated with Claude Code
https://claude.ai/code/session_014jqjexPxbdqwsXXfkM3yah