提交 2302a9d7 编写于 作者: Z zhaoke

Test in jenkins.

上级 be83e358
......@@ -72,7 +72,7 @@ func SelectSite(webpage plwHelper.Webpage) (err error) {
webpage.ScreenShot()
if locator.Count() == 0 {
AddSiteTimes++
if AddSiteTimes > 2 {
if AddSiteTimes > 1 {
return
}
CreateSite(webpage)
......@@ -123,7 +123,7 @@ func ExpandWorspace(webpage plwHelper.Webpage) (err error) {
webpage.Click(".tree-node-title:has-text(\"单元测试工作目录\")")
err = webpage.WaitForSelectorTimeout(".tree-node-item>>div:has-text('1_string_match.php')", 5000)
if err != nil {
if expandTimes > 5 {
if expandTimes > 1 {
expandTimes = 0
return err
}
......
......@@ -5,6 +5,7 @@ import (
constTestHelper "github.com/easysoft/zentaoatf/test/helper/conf"
ztfTestHelper "github.com/easysoft/zentaoatf/test/helper/ztf"
"github.com/easysoft/zentaoatf/test/ui/conf"
plwHelper "github.com/easysoft/zentaoatf/test/ui/helper"
"github.com/ozontech/allure-go/pkg/framework/provider"
"github.com/ozontech/allure-go/pkg/framework/runner"
......@@ -45,6 +46,7 @@ func ScriptsBug(t provider.T) {
webpage, _ := plwHelper.OpenUrl(constTestHelper.ZtfUrl, t)
defer webpage.Close()
ztfTestHelper.SelectSite(webpage)
webpage.WaitForSelector("#siteMenuToggle:has-text('单元测试站点')", playwright.PageWaitForSelectorOptions{Timeout: &conf.Timeout})
ztfTestHelper.ExpandWorspace(webpage)
webpage.Click(`[title="批量选择"]`)
webpage.Click(".tree-node-item:has-text('1_string_match.php')>>.tree-node-check")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册