Toggle navigation
Toggle navigation
This project
Loading...
Sign in
zhouhui.jiang
/
test_cursor
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
zhouhui.jiang
2025-10-13 10:21:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
18fc1987e2759d9bbf3068517bcf720959830715
18fc1987
1 parent
8904c514
解决自动化测试 屏幕尺寸问题
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
tests/browser/base_test.py
tests/browser/base_test.py
View file @
18fc198
...
...
@@ -50,7 +50,7 @@ class BaseBrowserTest:
# 创建浏览器上下文
self
.
context
=
self
.
browser
.
new_context
(
viewport
=
{
'width'
:
1920
,
'height'
:
1080
},
viewport
=
None
,
# 使用全屏模式,自动适应屏幕尺寸
user_agent
=
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36'
)
...
...
Please
register
or
login
to post a comment