Skip to content

Commit

Permalink
fix(tests): fixed web test error
Browse files Browse the repository at this point in the history
  • Loading branch information
cg33 committed Apr 19, 2020
1 parent 04dd074 commit 26c8fd6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/web/web_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ const (
updateNameInput = `//*[@id="pjax-container"]/section[2]/div/div/div[3]/table/tbody/tr[2]/td[3]/div/div[2]/div/form/div/div[1]/div[1]/input`
updateNameSaveBtn = `//*[@id="pjax-container"]/section[2]/div/div/div[3]/table/tbody/tr[2]/td[3]/div/div[2]/div/form/div/div[1]/div[2]/button[1]`
updateGenderBtn = `//*[@id="pjax-container"]/section[2]/div/div/div[3]/table/tbody/tr[2]/td[4]/div/div/span[1]`
opActionDropDown = `//*[@id="pjax-container"]/section[2]/div/div/div[3]/table/tbody/tr[2]/td[10]/div/a`
detailBtn = `//*[@id="pjax-container"]/section[2]/div/div/div[3]/table/tbody/tr[2]/td[10]/div/ul/li[1]/a`
detailBtn = `//*[@id="pjax-container"]/section[2]/div/div/div[3]/table/tbody/tr[2]/td[10]/a`

// Form Page

Expand Down Expand Up @@ -636,7 +635,6 @@ func testPermission(page *Page) {
page.ClickS(page.FindByButton("login"))
page.NavigateTo(url("/info/user"))
page.NoContain("New")
page.Click(opActionDropDown)
page.Click(detailBtn)
page.NoContain("Edit")
}

0 comments on commit 26c8fd6

Please sign in to comment.