Files
AutoMetabuilder/backend/tests/ui/test_ui_settings.py
johndoe6345789 6ff6813259 Introduce AutoMetabuilder core components and workflow packages:
- Implement core components: CLI argument parsing, environment loading, GitHub service creation, and logging configuration.
- Add support for OpenAI client setup and model resolution.
- Develop SDLC context loader from GitHub and repository files.
- Implement workflow context and engine builders.
- Introduce major workflow packages: `game_tick_loop` and `contextual_iterative_loop`.
- Update localization files with new package descriptions and labels.
- Streamline web navigation by loading items from a dedicated JSON file.
2026-01-10 11:21:55 +00:00

23 lines
730 B
Python

from playwright.sync_api import Page, expect
from .helpers import t, wait_for_nav
def test_update_settings(page: Page, server: str):
page.goto(server)
wait_for_nav(page)
page.click("[data-section='settings']")
page.wait_for_selector("#settings.active")
page.wait_for_timeout(1000)
page.fill("#settings input[name='new_env_key']", "TEST_SETTING")
page.fill("#settings input[name='new_env_value']", "42")
page.click(f"#settings button:has-text('{t('ui.settings.save_all')}')")
page.reload()
wait_for_nav(page)
page.click("[data-section='settings']")
page.wait_for_selector("#settings.active")
expect(page.locator("#settings input[name='env_TEST_SETTING']")).to_be_visible()