Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
易企天创
zentaoatf
提交
150e89b0
Z
zentaoatf
项目概览
易企天创
/
zentaoatf
9 个月 前同步成功
通知
11
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
3
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Z
zentaoatf
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
3
Issue
3
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
150e89b0
编写于
9月 26, 2022
作者:
雨
雨爱无痕
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add ui test
上级
0503e460
变更
17
展开全部
隐藏空白更改
内联
并排
Showing
17 changed file
with
295 addition
and
85 deletion
+295
-85
.gitignore
.gitignore
+2
-0
test/cli/cli.sh
test/cli/cli.sh
+8
-2
test/cli/main.go
test/cli/main.go
+0
-4
test/helper/common/test.go
test/helper/common/test.go
+7
-13
test/helper/common/ztf.go
test/helper/common/ztf.go
+14
-2
test/ui/main.go
test/ui/main.go
+5
-1
test/ui/ui_bug_test.go
test/ui/ui_bug_test.go
+2
-2
test/ui/ui_interpreter_test.go
test/ui/ui_interpreter_test.go
+3
-3
test/ui/ui_language_test.go
test/ui/ui_language_test.go
+1
-1
test/ui/ui_log_test.go
test/ui/ui_log_test.go
+2
-2
test/ui/ui_product_test.go
test/ui/ui_product_test.go
+1
-1
test/ui/ui_result_test.go
test/ui/ui_result_test.go
+4
-4
test/ui/ui_run_statistic_test.go
test/ui/ui_run_statistic_test.go
+3
-3
test/ui/ui_run_test.go
test/ui/ui_run_test.go
+8
-8
test/ui/ui_script_test.go
test/ui/ui_script_test.go
+2
-2
test/ui/ui_site_test.go
test/ui/ui_site_test.go
+3
-3
test/ui/ui_workspace_test.go
test/ui/ui_workspace_test.go
+230
-34
未找到文件。
.gitignore
浏览文件 @
150e89b0
...
...
@@ -48,5 +48,7 @@ logs/
test/demo/php/conf
test/demo/php/log
test/demo/php/product1
/test/ui/allure-results/
/test/cli/allure-results/
/test/allure-results/
/test/ui/log/
test/cli/cli.sh
浏览文件 @
150e89b0
#/bin/bash
if
[
!
-d
"/data/"
]
;
then
if
[
!
-d
"zentaoatf"
]
;
then
git clone https://github.com/easysoft/zentaoatf.git
go
env
-w
GOPROXY
=
https://goproxy.cn,direct
cd
zentaoatf
git checkout ztf-42_zhaoke
go mod tidy
||
true
go run github.com/playwright-community/playwright-go/cmd/playwright
install
--with-deps
cd
ui
npm
install
cd
../
else
cd
zentaoatf
git pull
go mod tidy
||
true
fi
cd test
/cli
go run ./main.go
-zentaoVersion
17.6.1
\ No newline at end of file
test/cli/main.go
浏览文件 @
150e89b0
...
...
@@ -29,9 +29,5 @@ func main() {
if
err
!=
nil
{
fmt
.
Println
(
"Build cli fail "
,
err
)
}
// err = commonTestHelper.BuildServer()
// if err != nil {
// fmt.Println("Build server fail ")
// }
commonTestHelper
.
TestCli
()
}
test/helper/common/test.go
浏览文件 @
150e89b0
...
...
@@ -19,11 +19,10 @@ func TestCli() (err error) {
cmdStr
:=
fmt
.
Sprintf
(
`%sztf allure -allureReportDir ./test/cli/allure-results go test %stest/cli -v`
,
RootPath
,
RootPath
)
var
cmd
*
exec
.
Cmd
if
runtime
.
GOOS
==
"windows"
{
cmdStr
=
fmt
.
Sprintf
(
`%sztf.exe allure -allureReportDir .\test\cli\allure-results go test %stest\cli -v -run=CliVersion`
,
RootPath
,
RootPath
)
fmt
.
Println
(
RootPath
,
cmdStr
)
cmd
=
exec
.
Command
(
"cmd"
,
"/C"
,
cmdStr
)
cmdStr
=
fmt
.
Sprintf
(
`%sztf.exe allure -allureReportDir .\test\cli\allure-results go test %stest\cli -v`
,
RootPath
,
RootPath
)
cmd
=
exec
.
Command
(
"cmd"
,
"/C"
,
cmdStr
,
"-uuid"
,
"cli_auto_test"
)
}
else
{
cmd
=
exec
.
Command
(
"/bin/bash"
,
"-c"
,
cmdStr
,
"-uuid"
,
"
uuuuuuuuuuu
"
)
cmd
=
exec
.
Command
(
"/bin/bash"
,
"-c"
,
cmdStr
,
"-uuid"
,
"
cli_auto_test
"
)
}
cmd
.
Dir
=
RootPath
fmt
.
Println
(
cmd
.
String
())
...
...
@@ -67,16 +66,14 @@ func TestCli() (err error) {
return
}
cmd
.
Process
.
Kill
()
execHelper
.
KillProcessByUUID
(
"
uuuuuuuuuuu
"
)
execHelper
.
KillProcessByUUID
(
"
cli_auto_test
"
)
report
,
err
:=
analysisHelper
.
ReadReportByPath
(
strings
.
Replace
(
reportDir
,
"result.txt"
,
"result.json"
,
1
))
if
err
!=
nil
{
return
}
config
:=
commDomain
.
WorkspaceConf
{
Url
:
"http://127.0.0.1:8081/"
,
Password
:
"Test123456."
,
Username
:
"admin"
}
fmt
.
Println
(
report
,
config
)
err
=
zentaoHelper
.
CommitResult
(
report
,
1
,
0
,
config
,
nil
)
fmt
.
Println
(
err
)
return
}
...
...
@@ -84,11 +81,10 @@ func TestUi() (err error) {
cmdStr
:=
fmt
.
Sprintf
(
`%sztf allure -allureReportDir ./test/cli/allure-results go test %stest/ui -v`
,
RootPath
,
RootPath
)
var
cmd
*
exec
.
Cmd
if
runtime
.
GOOS
==
"windows"
{
cmdStr
=
fmt
.
Sprintf
(
`%sztf.exe allure -allureReportDir .\test\cli\allure-results go test %stest\ui -v -run=CliVersion`
,
RootPath
,
RootPath
)
fmt
.
Println
(
RootPath
,
cmdStr
)
cmdStr
=
fmt
.
Sprintf
(
`%sztf.exe allure -allureReportDir .\test\cli\allure-results go test %stest\ui -v`
,
RootPath
,
RootPath
)
cmd
=
exec
.
Command
(
"cmd"
,
"/C"
,
cmdStr
)
}
else
{
cmd
=
exec
.
Command
(
"/bin/bash"
,
"-c"
,
cmdStr
,
"-uuid"
,
"uuuuuuuuuuu"
)
cmd
=
exec
.
Command
(
"/bin/bash"
,
"-c"
,
cmdStr
)
}
cmd
.
Dir
=
RootPath
fmt
.
Println
(
cmd
.
String
())
...
...
@@ -132,15 +128,13 @@ func TestUi() (err error) {
return
}
cmd
.
Process
.
Kill
()
execHelper
.
KillProcessByUUID
(
"u
uuuuuuuuuu
"
)
execHelper
.
KillProcessByUUID
(
"u
i_auto_test
"
)
report
,
err
:=
analysisHelper
.
ReadReportByPath
(
strings
.
Replace
(
reportDir
,
"result.txt"
,
"result.json"
,
1
))
if
err
!=
nil
{
return
}
config
:=
commDomain
.
WorkspaceConf
{
Url
:
"http://127.0.0.1:8081/"
,
Password
:
"Test123456."
,
Username
:
"admin"
}
fmt
.
Println
(
report
,
config
)
err
=
zentaoHelper
.
CommitResult
(
report
,
1
,
0
,
config
,
nil
)
fmt
.
Println
(
err
)
return
}
test/helper/common/ztf.go
浏览文件 @
150e89b0
...
...
@@ -32,10 +32,22 @@ func BuildCli() (err error) {
func
RunServer
()
(
err
error
)
{
ztfPath
:=
GetZtfPath
()
var
cmd
*
exec
.
Cmd
cmd
=
exec
.
Command
(
ztfPath
,
"-P"
,
"8085"
)
cmd
=
exec
.
Command
(
ztfPath
,
"-P"
,
"8085"
,
"-uuid=ui_auto_test"
)
cmd
.
Dir
=
RootPath
fmt
.
Println
(
cmd
.
String
())
_
,
err
=
cmd
.
CombinedOutput
()
err
=
cmd
.
Start
()
if
err
!=
nil
{
return
}
return
}
func
RunUi
()
(
err
error
)
{
var
cmd
*
exec
.
Cmd
cmd
=
exec
.
Command
(
"npm"
,
"run"
,
"serve"
,
"-uuid=ui_auto_test"
)
cmd
.
Dir
=
RootPath
+
FilePthSep
+
"ui"
fmt
.
Println
(
cmd
.
String
())
err
=
cmd
.
Start
()
if
err
!=
nil
{
return
}
...
...
test/ui/main.go
浏览文件 @
150e89b0
...
...
@@ -33,5 +33,9 @@ func main() {
if
err
!=
nil
{
fmt
.
Println
(
"Build server fail "
)
}
commonTestHelper
.
TestCli
()
err
=
commonTestHelper
.
RunUi
()
if
err
!=
nil
{
fmt
.
Println
(
"Build server fail "
)
}
commonTestHelper
.
TestUi
()
}
test/ui/ui_bug_test.go
浏览文件 @
150e89b0
...
...
@@ -28,7 +28,7 @@ func ScriptBug(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
@@ -100,7 +100,7 @@ func ScriptsBug(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
test/ui/ui_interpreter_test.go
浏览文件 @
150e89b0
...
...
@@ -32,7 +32,7 @@ func CreateInterpreter(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
@@ -120,7 +120,7 @@ func EditInterpreter(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
@@ -218,7 +218,7 @@ func DeleteInterpreter(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
test/ui/ui_language_test.go
浏览文件 @
150e89b0
...
...
@@ -32,7 +32,7 @@ func SwitchLanguage(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
test/ui/ui_log_test.go
浏览文件 @
150e89b0
...
...
@@ -30,7 +30,7 @@ func CollapseLog(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
@@ -124,7 +124,7 @@ func FullScreenLog(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
test/ui/ui_product_test.go
浏览文件 @
150e89b0
...
...
@@ -30,7 +30,7 @@ func SwitchProduct(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
test/ui/ui_result_test.go
浏览文件 @
150e89b0
...
...
@@ -31,7 +31,7 @@ func Detail(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
@@ -149,7 +149,7 @@ func SubmitResult(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
@@ -254,7 +254,7 @@ func SubmitBug(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
@@ -349,7 +349,7 @@ func SubmitBugTwoStep(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
test/ui/ui_run_statistic_test.go
浏览文件 @
150e89b0
...
...
@@ -29,7 +29,7 @@ func RunFailStatistic(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
@@ -115,7 +115,7 @@ func RunSuccessStatistic(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
@@ -201,7 +201,7 @@ func RunBugStatistic(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
test/ui/ui_run_test.go
浏览文件 @
150e89b0
...
...
@@ -32,7 +32,7 @@ func RunScript(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
@@ -144,7 +144,7 @@ func RunSelectedScripts(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
@@ -280,7 +280,7 @@ func RunOpenedAndLast(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
@@ -477,7 +477,7 @@ func RunAll(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
@@ -607,7 +607,7 @@ func RunReExecFailCase(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
@@ -730,7 +730,7 @@ func RunReExecAllCase(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
@@ -853,7 +853,7 @@ func RunWorkspace(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
@@ -965,7 +965,7 @@ func RunUnit(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
test/ui/ui_script_test.go
浏览文件 @
150e89b0
...
...
@@ -30,7 +30,7 @@ func SaveScript(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
@@ -138,7 +138,7 @@ func ViewScript(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
test/ui/ui_site_test.go
浏览文件 @
150e89b0
...
...
@@ -32,7 +32,7 @@ func CreateSite(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
@@ -153,7 +153,7 @@ func EditSite(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
@@ -286,7 +286,7 @@ func DeleteSite(t provider.T) {
t
.
Errorf
(
"Create the new page fail: %v"
,
err
)
t
.
FailNow
()
}
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
81
/"
,
playwright
.
PageGotoOptions
{
if
_
,
err
=
page
.
Goto
(
"http://127.0.0.1:80
00
/"
,
playwright
.
PageGotoOptions
{
WaitUntil
:
playwright
.
WaitUntilStateDomcontentloaded
});
err
!=
nil
{
t
.
Errorf
(
"The specific URL is missing: %v"
,
err
)
t
.
FailNow
()
...
...
test/ui/ui_workspace_test.go
浏览文件 @
150e89b0
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录