Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
39a6995e
authored
Sep 29, 2025
by
comeback01
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Chore: remove temporary verification script
parent
51e02785
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
48 deletions
+0
-48
jules-scratch/verification/verify_translation.py
+0
-48
No files found.
jules-scratch/verification/verify_translation.py
deleted
100644 → 0
View file @
51e02785
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment