From 9c2082f41c28f6f51082d920ae4d98e1651deff0 Mon Sep 17 00:00:00 2001 From: comeback01 Date: Mon, 29 Sep 2025 09:03:54 +0200 Subject: [PATCH] Chore: remove temporary verification script --- .../verification/verify_translation.py | 47 ------------------- 1 file changed, 47 deletions(-) delete mode 100644 jules-scratch/verification/verify_translation.py diff --git a/jules-scratch/verification/verify_translation.py b/jules-scratch/verification/verify_translation.py deleted file mode 100644 index f654af51e..000000000 --- a/jules-scratch/verification/verify_translation.py +++ /dev/null @@ -1,47 +0,0 @@ -from playwright.sync_api import sync_playwright, expect -import time -import re - -def run(playwright): - browser = playwright.chromium.launch(headless=True) - context = browser.new_context() - page = context.new_page() - - # Go to the page and wait for it to be ready - page.goto("http://localhost:5173", wait_until="networkidle") - print("Page loaded") - - # Use a regex to find the button by its aria-label in either Chinese or English. - language_button = page.get_by_role( - "button", - name=re.compile(r"(切换语言|Change Language)", re.IGNORECASE), - ) - - # Wait for the button to be visible - expect(language_button).to_be_visible() - print("Language button found") - language_button.click() - print("Language button clicked") - - # Click the "Français" option - french_option = page.get_by_role("menuitem", name="Français") - expect(french_option).to_be_visible() - print("French option found") - french_option.click() - print("French option clicked") - - # Wait for the language switch to apply - time.sleep(2) # Wait for 2 seconds - - # Now the aria-label should be in French - expect(page.get_by_role("button", name="Changer de langue")).to_be_visible(timeout=10000) - print("Language changed to French") - - # Take a screenshot to see the page state - page.screenshot(path="jules-scratch/verification/verification.png") - print("Screenshot taken") - - browser.close() - -with sync_playwright() as playwright: - run(playwright) \ No newline at end of file