mirror of
https://github.com/johndoe6345789/AutoMetabuilder.git
synced 2026-04-24 13:54:59 +00:00
- 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.
23 lines
730 B
Python
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()
|